Query time 0.00340
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "67.62"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"c_status",
"id_path"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 46,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '2910/2912/%')",
"cost_info": {
"read_cost": "65.23",
"eval_cost": "0.18",
"prefix_cost": "65.41",
"data_read_per_join": "5K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"product_count",
"position",
"is_trash",
"storefront_id"
],
"attached_condition": "(((`webmarco`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`webmarco`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`webmarco`.`cscart_categories`.`usergroup_ids`)) and (`webmarco`.`cscart_categories`.`status` = 'A') and (`webmarco`.`cscart_categories`.`storefront_id` in (0,1)))"
}
},
{
"table": {
"table_name": "cscart_category_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"lang_code"
],
"key_length": "9",
"ref": [
"webmarco.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.92",
"eval_cost": "0.18",
"prefix_cost": "66.51",
"data_read_per_join": "3K"
},
"used_columns": [
"category_id",
"lang_code",
"category"
]
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code"
],
"key_length": "206",
"ref": [
"webmarco.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.92",
"eval_cost": "0.18",
"prefix_cost": "67.62",
"data_read_per_join": "1K"
},
"used_columns": [
"name",
"object_id",
"company_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
product_count |
seo_name |
seo_path |
9477 |
9476 |
2910/2912/9476/9477 |
Irons & Ironing Systems |
0 |
A |
0 |
0 |
61 |
irons-and-ironing-systems |
2910/2912/9476 |
9476 |
2912 |
2910/2912/9476 |
Laundry Appliances |
0 |
A |
0 |
0 |
0 |
laundry-appliances-en-2 |
2910/2912 |
9489 |
2912 |
2910/2912/9489 |
Vacuums |
0 |
A |
0 |
0 |
8 |
vacuums-en-2 |
2910/2912 |
2922 |
2917 |
2910/2912/2917/2922 |
Air Conditioners |
10 |
A |
0 |
0 |
44 |
air-conditioners |
2910/2912/2917 |
3020 |
3016 |
2910/2912/3016/3020 |
Carpet Shampooers |
10 |
A |
0 |
0 |
0 |
carpet-shampooers |
2910/2912/3016 |
2958 |
2954 |
2910/2912/2917/2954/2958 |
Ceiling Fans |
10 |
A |
0 |
0 |
0 |
ceiling-fans |
2910/2912/2917/2954 |
2917 |
2912 |
2910/2912/2917 |
Climate Control Appliances |
10 |
A |
0 |
0 |
286 |
climate-control-appliances |
2910/2912 |
3055 |
3046 |
2910/2912/3046/3055 |
Dryers |
10 |
A |
0 |
0 |
0 |
dryers-en |
2910/2912/3046 |
2928 |
2917 |
2910/2912/2917/2928 |
Air Purifiers |
20 |
A |
0 |
0 |
10 |
air-purifiers |
2910/2912/2917 |
2963 |
2954 |
2910/2912/2917/2954/2963 |
Desk & Pedestal Fans |
20 |
A |
0 |
0 |
0 |
desk-and-pedestal-fans |
2910/2912/2917/2954 |
3023 |
3016 |
2910/2912/3016/3023 |
Carpet Steamers |
20 |
A |
0 |
0 |
0 |
carpet-steamers |
2910/2912/3016 |
3012 |
2912 |
2910/2912/3012 |
Floor & Carpet Dryers |
20 |
A |
0 |
0 |
0 |
floor-and-carpet-dryers |
2910/2912 |
3056 |
3046 |
2910/2912/3046/3056 |
Garment Steamers |
20 |
A |
0 |
0 |
0 |
garment-steamers-en |
2910/2912/3046 |
2964 |
2954 |
2910/2912/2917/2954/2964 |
Powered Hand Fans & Misters |
30 |
A |
0 |
0 |
0 |
powered-hand-fans-and-misters |
2910/2912/2917/2954 |
2934 |
2917 |
2910/2912/2917/2934 |
Dehumidifiers |
30 |
A |
0 |
0 |
0 |
dehumidifiers |
2910/2912/2917 |
3016 |
2912 |
2910/2912/3016 |
Floor & Steam Cleaners |
30 |
A |
0 |
0 |
53 |
floor-and-steam-cleaners |
2910/2912 |
3027 |
3016 |
2910/2912/3016/3027 |
Floor Scrubbers |
30 |
A |
0 |
0 |
0 |
floor-scrubbers |
2910/2912/3016 |
3057 |
3046 |
2910/2912/3046/3057 |
Irons & Ironing Systems |
30 |
A |
0 |
0 |
8 |
irons-and-ironing-systems-en |
2910/2912/3046 |
2941 |
2917 |
2910/2912/2917/2941 |
Duct Heaters |
40 |
A |
0 |
0 |
5 |
duct-heaters |
2910/2912/2917 |
2968 |
2954 |
2910/2912/2917/2954/2968 |
Ventilation Fans |
40 |
A |
0 |
0 |
32 |
ventilation-fans |
2910/2912/2917/2954 |
3033 |
2912 |
2910/2912/3033 |
Floor Polishers & Buffers |
40 |
A |
0 |
0 |
0 |
floor-polishers-and-buffers |
2910/2912 |
3058 |
3046 |
2910/2912/3046/3058 |
Laundry Combo Units |
40 |
A |
0 |
0 |
0 |
laundry-combo-units-en |
2910/2912/3046 |
3030 |
3016 |
2910/2912/3016/3030 |
Steam Mops |
40 |
A |
0 |
0 |
0 |
steam-mops |
2910/2912/3016 |
2969 |
2954 |
2910/2912/2917/2954/2969 |
Wall Mount Fans |
50 |
A |
0 |
0 |
0 |
wall-mount-fans |
2910/2912/2917/2954 |
2949 |
2917 |
2910/2912/2917/2949 |
Evaporative Coolers |
50 |
A |
0 |
0 |
1 |
evaporative-coolers |
2910/2912/2917 |
3043 |
2912 |
2910/2912/3043 |
Futon Dryers |
50 |
A |
0 |
0 |
0 |
futon-dryers |
2910/2912 |
3059 |
3046 |
2910/2912/3046/3059 |
Steam Presses |
50 |
A |
0 |
0 |
0 |
steam-presses-en |
2910/2912/3046 |
2954 |
2917 |
2910/2912/2917/2954 |
Fans |
60 |
A |
0 |
0 |
0 |
fans |
2910/2912/2917 |
3044 |
2912 |
2910/2912/3044 |
Garage Door Keypads & Remotes |
60 |
A |
0 |
0 |
0 |
garage-door-keypads-and-remotes-en |
2910/2912 |
3060 |
3046 |
2910/2912/3046/3060 |
Washing Machines |
60 |
A |
0 |
0 |
6 |
washing-machines-en |
2910/2912/3046 |
2973 |
2917 |
2910/2912/2917/2973 |
Furnaces & Boilers |
70 |
A |
0 |
0 |
0 |
furnaces-and-boilers |
2910/2912/2917 |
3045 |
2912 |
2910/2912/3045 |
Garage Door Openers |
70 |
A |
0 |
0 |
0 |
garage-door-openers-en |
2910/2912 |
2980 |
2917 |
2910/2912/2917/2980 |
Heating Radiators |
80 |
A |
0 |
0 |
0 |
heating-radiators |
2910/2912/2917 |
3046 |
2912 |
2910/2912/3046 |
Laundry Appliances |
80 |
A |
0 |
0 |
0 |
laundry-appliances-en |
2910/2912 |
3047 |
2912 |
2910/2912/3047 |
Ultrasonic Cleaners |
90 |
A |
0 |
0 |
0 |
ultrasonic-cleaners-en |
2910/2912 |
2985 |
2917 |
2910/2912/2917/2985 |
Humidifiers |
90 |
A |
0 |
0 |
1 |
humidifiers |
2910/2912/2917 |
2987 |
2917 |
2910/2912/2917/2987 |
Outdoor Misting Systems |
100 |
A |
0 |
0 |
0 |
outdoor-misting-systems |
2910/2912/2917 |
3048 |
2912 |
2910/2912/3048 |
Vacuums |
100 |
A |
0 |
0 |
4 |
vacuums-en |
2910/2912 |
3049 |
2912 |
2910/2912/3049 |
Wallpaper Steamers |
110 |
A |
0 |
0 |
1 |
wallpaper-steamers-en |
2910/2912 |
3001 |
2917 |
2910/2912/2917/3001 |
Patio Heaters |
110 |
A |
0 |
0 |
0 |
patio-heaters |
2910/2912/2917 |
3008 |
2917 |
2910/2912/2917/3008 |
Space Heaters |
120 |
A |
0 |
0 |
0 |
space-heaters |
2910/2912/2917 |
3050 |
2912 |
2910/2912/3050 |
Water Heaters |
120 |
A |
0 |
0 |
0 |
water-heaters-en |
2910/2912 |