Query time 0.00544
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "134.76"
},
"grouping_operation": {
"using_temporary_table": true,
"using_filesort": true,
"cost_info": {
"sort_cost": "9.64"
},
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ALL",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"rows_examined_per_scan": 208,
"rows_produced_per_join": 8,
"filtered": "4.00",
"cost_info": {
"read_cost": "20.72",
"eval_cost": "0.83",
"prefix_cost": "21.55",
"data_read_per_join": "21K"
},
"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')))"
}
},
{
"table": {
"table_name": "cscart_products_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"link_type",
"pt"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"ref": [
"nuie_scalesta_net.cscart_categories.category_id"
],
"rows_examined_per_scan": 117,
"rows_produced_per_join": 9,
"filtered": "0.99",
"cost_info": {
"read_cost": "2.33",
"eval_cost": "0.96",
"prefix_cost": "121.75",
"data_read_per_join": "154"
},
"used_columns": [
"product_id",
"category_id",
"link_type"
],
"attached_condition": "(`nuie_scalesta_net`.`cscart_products_categories`.`product_id` in (93003,93004,93005,93006,93007,93008,93009,93010,93011,93012,93013,93014,93015,93282,93283,93284,93285,93286,93287,93288,93289,93290,93291,93294,93338,93339,93341,93342,93343,93344,93345,93346,93347,93348,93349,93350,93351,93352,93353,93354,93355,93356,93357,93358,93750,93751,93752,93753,93754,93755,93756,93757,93758,93759,93760,93761,93762,93763,93764,93765,93766,93767,93768,93769,93770,93771,93772,93773,93774,93775,93776,93777,93778,93779,93780,93790,93791,93825,93826,93827,93828,93829,93842,93843,93844,93845,93848,93849,93868,93869,93870,93871,93886,93887,93888,93889))"
}
},
{
"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": 9,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.41",
"eval_cost": "0.96",
"prefix_cost": "125.12",
"data_read_per_join": "154"
},
"used_columns": [
"product_id",
"category_id",
"position"
]
}
}
]
}
}
}
Result
| product_id |
category_ids |
position |
| 93003 |
7208M,7241,7309,7346 |
|
| 93004 |
7208M,7241,7309,7346 |
|
| 93005 |
7208M,7241,7309,7346 |
|
| 93006 |
7208M,7241,7309,7346 |
|
| 93007 |
7208M,7241,7309,7346 |
|
| 93008 |
7208M,7241,7309,7346 |
|
| 93009 |
7208M,7241,7309,7346 |
|
| 93010 |
7208M,7241,7309,7346 |
|
| 93011 |
7208M,7241,7309,7346 |
|
| 93012 |
7208M,7241,7309,7346 |
|
| 93013 |
7208M,7241,7309,7346 |
|
| 93014 |
7208M,7241,7309,7346 |
|
| 93015 |
7208M,7241,7309,7346 |
|
| 93282 |
7219M,7313,7338 |
|
| 93283 |
7157M,7341,7342,7343 |
|
| 93284 |
7219M,7313,7338 |
|
| 93285 |
7157M,7341,7342,7343 |
|
| 93286 |
7219M,7313,7338 |
|
| 93287 |
7157M,7341,7342,7343 |
|
| 93288 |
7219M,7313,7338 |
|
| 93289 |
7157M,7341,7342,7343 |
|
| 93290 |
7219M,7313,7338 |
|
| 93291 |
7157M,7341,7342,7343 |
|
| 93294 |
7219M,7313,7338 |
|
| 93338 |
7219M,7313,7338 |
|
| 93339 |
7219M,7313,7338 |
|
| 93341 |
7208M,7241,7309,7346 |
|
| 93342 |
7208M,7241,7309,7346 |
|
| 93343 |
7208M,7241,7309,7346 |
|
| 93344 |
7208M,7241,7309,7346 |
|
| 93345 |
7208M,7241,7309,7346 |
|
| 93346 |
7208M,7241,7309,7346 |
|
| 93347 |
7208M,7241,7309,7346 |
|
| 93348 |
7208M,7241,7309,7346 |
|
| 93349 |
7208M,7241,7309,7346 |
|
| 93350 |
7208M,7241,7309,7346 |
|
| 93351 |
7208M,7241,7309,7346 |
|
| 93352 |
7208M,7241,7309,7346 |
|
| 93353 |
7208M,7241,7309,7346 |
|
| 93354 |
7208M,7241,7309,7346 |
|
| 93355 |
7208M,7241,7309,7346 |
|
| 93356 |
7167M,7183,7283 |
|
| 93357 |
7167M,7183,7283 |
|
| 93358 |
7167M,7183,7283 |
|
| 93750 |
7208M,7241,7309,7346 |
|
| 93751 |
7208M,7241,7309,7346 |
|
| 93752 |
7208M,7241,7309,7346 |
|
| 93753 |
7194M |
|
| 93754 |
7194M |
|
| 93755 |
7194M |
|
| 93756 |
7194M |
|
| 93757 |
7194M |
|
| 93758 |
7194M |
|
| 93759 |
7194M |
|
| 93760 |
7194M |
|
| 93761 |
7194M |
|
| 93762 |
7194M |
|
| 93763 |
7194M |
|
| 93764 |
7194M |
|
| 93765 |
7194M |
|
| 93766 |
7194M |
|
| 93767 |
7194M |
|
| 93768 |
7194M |
|
| 93769 |
7194M |
|
| 93770 |
7194M |
|
| 93771 |
7194M |
|
| 93772 |
7194M |
|
| 93773 |
7194M |
|
| 93774 |
7194M |
|
| 93775 |
7194M |
|
| 93776 |
7194M |
|
| 93777 |
7194M |
|
| 93778 |
7194M |
|
| 93779 |
7194M |
|
| 93780 |
7194M |
|
| 93790 |
7263M |
|
| 93791 |
7263M |
|
| 93825 |
7194M |
|
| 93826 |
7194M |
|
| 93827 |
7194M |
|
| 93828 |
7194M |
|
| 93829 |
7194M |
|
| 93842 |
7263M |
|
| 93843 |
7263M |
|
| 93844 |
7263M |
|
| 93845 |
7263M |
|
| 93848 |
7208M,7241,7309,7346 |
|
| 93849 |
7208M,7241,7309,7346 |
|
| 93868 |
7225M,7226 |
|
| 93869 |
7225M,7226 |
|
| 93870 |
7225M,7226 |
|
| 93871 |
7225M,7226 |
|
| 93886 |
7208M,7241,7309,7346 |
|
| 93887 |
7208M,7241,7309,7346 |
|
| 93888 |
7208M,7241,7309,7346 |
|
| 93889 |
7208M,7241,7309,7346 |
|