Query time 0.01573
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "95.70"
},
"grouping_operation": {
"using_filesort": false,
"nested_loop": [
{
"table": {
"table_name": "cscart_products_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"link_type",
"pt"
],
"key": "pt",
"used_key_parts": [
"product_id"
],
"key_length": "3",
"rows_examined_per_scan": 106,
"rows_produced_per_join": 106,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "10.90",
"eval_cost": "10.60",
"prefix_cost": "21.50",
"data_read_per_join": "1K"
},
"used_columns": [
"product_id",
"category_id",
"link_type"
],
"attached_condition": "(`nuie_scalesta_net`.`cscart_products_categories`.`product_id` in (95425,95426,95427,95428,95429,95430,95431,95432,95433,95434,95435,95436,95437,95438,95439,95440,95441,95488,95489,95490,95491,95492,95493,95497,95498,95499,95500,95501,95502,95503,95561,95562,95563,95564,95661,95662,95663,95664,95665,95666,95667,95668,95669,95670,95671,95672,95673,95674,95675,95676,95677,95678,95679,95680,95681,95682,95684,95685,95686,95687,95688,95689,95690,95691,95692,95693,95694,95695,95696,95697,95698,95699,95700,95701,95704,95705,95706,95707,95708,95709,95710,95711,95712,95713,95714,95715,95716,95717,95718,95719,95720,95721,95722,95723,95724,95725))"
}
},
{
"table": {
"table_name": "product_position_source",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"product_id"
],
"key_length": "6",
"ref": [
"const",
"nuie_scalesta_net.cscart_products_categories.product_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 106,
"filtered": "100.00",
"cost_info": {
"read_cost": "26.50",
"eval_cost": "10.60",
"prefix_cost": "58.60",
"data_read_per_join": "1K"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
},
{
"table": {
"table_name": "cscart_categories",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"nuie_scalesta_net.cscart_products_categories.category_id"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 5,
"filtered": "5.00",
"cost_info": {
"read_cost": "26.50",
"eval_cost": "0.53",
"prefix_cost": "95.70",
"data_read_per_join": "13K"
},
"used_columns": [
"category_id",
"usergroup_ids",
"status",
"storefront_id"
],
"attached_condition": "((`nuie_scalesta_net`.`cscart_categories`.`storefront_id` in (0,1)) and ((`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`nuie_scalesta_net`.`cscart_categories`.`usergroup_ids`))) and (`nuie_scalesta_net`.`cscart_categories`.`status` in ('A','H')))"
}
}
]
}
}
}
Result
| product_id |
category_ids |
position |
| 95425 |
7222M |
|
| 95426 |
7222M |
|
| 95427 |
7222M |
|
| 95428 |
7222M |
|
| 95429 |
7222M |
|
| 95430 |
7222M |
|
| 95431 |
7222M |
|
| 95432 |
7222M |
|
| 95433 |
7222M |
|
| 95434 |
7253M,7331 |
|
| 95435 |
7253M,7331 |
|
| 95436 |
7253M,7331 |
|
| 95437 |
7253M,7331 |
|
| 95438 |
7253M,7331 |
|
| 95439 |
7253M,7331 |
|
| 95440 |
7253M,7331 |
|
| 95441 |
7253M,7331 |
|
| 95488 |
7222M |
|
| 95489 |
7222M |
|
| 95490 |
7222M |
|
| 95491 |
7222M |
|
| 95492 |
7222M |
|
| 95493 |
7222M |
|
| 95497 |
7222M |
|
| 95498 |
7222M |
|
| 95499 |
7222M |
|
| 95500 |
7222M |
|
| 95501 |
7222M |
|
| 95502 |
7222M |
|
| 95503 |
7222M |
|
| 95561 |
7222M |
|
| 95562 |
7222M |
|
| 95563 |
7222M |
|
| 95564 |
7222M |
|
| 95661 |
7222M |
|
| 95662 |
7222M |
|
| 95663 |
7222M |
|
| 95664 |
7222M |
|
| 95665 |
7222M |
|
| 95666 |
7222M |
|
| 95667 |
7222M |
|
| 95668 |
7222M |
|
| 95669 |
7222M |
|
| 95670 |
7222M |
|
| 95671 |
7222M |
|
| 95672 |
7222M |
|
| 95673 |
7222M |
|
| 95674 |
7222M |
|
| 95675 |
7222M |
|
| 95676 |
7222M |
|
| 95677 |
7222M |
|
| 95678 |
7222M |
|
| 95679 |
7222M |
|
| 95680 |
7222M |
|
| 95681 |
7222M |
|
| 95682 |
7222M |
|
| 95684 |
7222M |
|
| 95685 |
7222M |
|
| 95686 |
7222M |
|
| 95687 |
7222M |
|
| 95688 |
7222M |
|
| 95689 |
7222M |
|
| 95690 |
7222M |
|
| 95691 |
7222M |
|
| 95692 |
7222M |
|
| 95693 |
7222M |
|
| 95694 |
7222M |
|
| 95695 |
7222M |
|
| 95696 |
7222M |
|
| 95697 |
7222M |
|
| 95698 |
7222M |
|
| 95699 |
7222M |
|
| 95700 |
7222M |
|
| 95701 |
7222M |
|
| 95704 |
7253M,7331 |
|
| 95705 |
7253M,7331 |
|
| 95706 |
7254M |
|
| 95707 |
7254M |
|
| 95708 |
7254M |
|
| 95709 |
7254M |
|
| 95710 |
7254M |
|
| 95711 |
7254M |
|
| 95712 |
7254M |
|
| 95713 |
7254M |
|
| 95714 |
7254M |
|
| 95715 |
7254M |
|
| 95716 |
7254M |
|
| 95717 |
7254M |
|
| 95718 |
7254M |
|
| 95719 |
7254M |
|
| 95720 |
7254M |
|
| 95721 |
7254M |
|
| 95722 |
7254M |
|
| 95723 |
7254M |
|
| 95724 |
7254M |
|
| 95725 |
7254M |
|