Query time 0.02432
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "104.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": 116,
"rows_produced_per_join": 116,
"filtered": "100.00",
"using_index": true,
"cost_info": {
"read_cost": "11.90",
"eval_cost": "11.60",
"prefix_cost": "23.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 (91905,91906,91907,91908,91909,91910,91911,84268,89735,91904,89435,82417,86852,91921,91922,91923,91924,91925,91926,91927,91929,91930,91931,91932,91933,91934,91935,89433,89434,89441,82399,86848,82414,86855,84265,89432,89731,89439,82396,86851,89440,82416,86853,89431,84263,84267,83088,89124,89128,89160,89551,82343,91290,84264,91913,91914,91915,91916,91917,91918,91919,82332,86814,86844,89101,89729,89734,91286,82415,86854,90093,90103,90112,89438,82398,86849,89730,91293,82340,82341,82346,86389,86391,89430,83115,83125,83134,89123,89127,89159,89550,83087,89437,91289,84262,84266))"
}
},
{
"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": 116,
"filtered": "100.00",
"cost_info": {
"read_cost": "29.00",
"eval_cost": "11.60",
"prefix_cost": "64.10",
"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": "29.00",
"eval_cost": "0.58",
"prefix_cost": "104.70",
"data_read_per_join": "15K"
},
"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 |
| 82332 |
7147M |
|
| 82340 |
7145M |
|
| 82341 |
7145M |
|
| 82343 |
7145M |
|
| 82346 |
7145M |
|
| 82396 |
7145M |
|
| 82398 |
7146M |
|
| 82399 |
7147M |
|
| 82414 |
7145M |
|
| 82415 |
7146M |
|
| 82416 |
7146M |
|
| 82417 |
7147M |
|
| 83087 |
7145M |
|
| 83088 |
7147M |
|
| 83115 |
7147M |
|
| 83125 |
7147M |
|
| 83134 |
7147M |
|
| 84262 |
7146M |
|
| 84263 |
7145M |
|
| 84264 |
7145M |
|
| 84265 |
7147M |
|
| 84266 |
7146M |
|
| 84267 |
7145M |
|
| 84268 |
7143,7144,7147M |
0 |
| 86389 |
7145M |
|
| 86391 |
7145M |
|
| 86814 |
7147M |
|
| 86844 |
7147M |
|
| 86848 |
7147M |
|
| 86849 |
7145M |
|
| 86851 |
7145M |
|
| 86852 |
7147M |
|
| 86853 |
7145M |
|
| 86854 |
7146M |
|
| 86855 |
7145M |
|
| 89101 |
7147M |
|
| 89123 |
7145M |
|
| 89124 |
7147M |
|
| 89127 |
7145M |
|
| 89128 |
7147M |
|
| 89159 |
7145M |
|
| 89160 |
7147M |
|
| 89430 |
7145M |
|
| 89431 |
7147M |
|
| 89432 |
7145M |
|
| 89433 |
7147M |
|
| 89434 |
7145M |
|
| 89435 |
7147M |
|
| 89437 |
7145M |
|
| 89438 |
7146M |
|
| 89439 |
7145M |
|
| 89440 |
7146M |
|
| 89441 |
7145M |
|
| 89550 |
7145M |
|
| 89551 |
7147M |
|
| 89729 |
7145M |
|
| 89730 |
7145M |
|
| 89731 |
7147M |
|
| 89734 |
7145M |
|
| 89735 |
7143,7144,7147M |
0 |
| 90093 |
7147M |
|
| 90103 |
7147M |
|
| 90112 |
7147M |
|
| 91286 |
7147M |
|
| 91289 |
7145M |
|
| 91290 |
7147M |
|
| 91293 |
7145M |
|
| 91904 |
7143M,7144,7147 |
0 |
| 91905 |
7143M,7144,7147 |
0 |
| 91906 |
7143M,7144,7147 |
0 |
| 91907 |
7143M,7144,7147 |
0 |
| 91908 |
7143M,7144,7147 |
0 |
| 91909 |
7143M,7144,7147 |
0 |
| 91910 |
7143M,7144,7147 |
0 |
| 91911 |
7143M,7144,7147 |
0 |
| 91913 |
7146M |
|
| 91914 |
7146M |
|
| 91915 |
7146M |
|
| 91916 |
7146M |
|
| 91917 |
7146M |
|
| 91918 |
7146M |
|
| 91919 |
7146M |
|
| 91921 |
7146M |
|
| 91922 |
7146M |
|
| 91923 |
7146M |
|
| 91924 |
7146M |
|
| 91925 |
7146M |
|
| 91926 |
7146M |
|
| 91927 |
7146M |
|
| 91929 |
7145M |
|
| 91930 |
7145M |
|
| 91931 |
7145M |
|
| 91932 |
7145M |
|
| 91933 |
7145M |
|
| 91934 |
7145M |
|
| 91935 |
7145M |
|