Query time 0.00145
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "25.32"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ref",
"possible_keys": [
"c_status",
"parent",
"id_path"
],
"key": "parent",
"used_key_parts": [
"parent_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 21,
"rows_produced_per_join": 0,
"filtered": "0.24",
"cost_info": {
"read_cost": "21.00",
"eval_cost": "0.01",
"prefix_cost": "25.20",
"data_read_per_join": "303"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"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`.`id_path` like '2910/2913/%') 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.05",
"eval_cost": "0.01",
"prefix_cost": "25.26",
"data_read_per_join": "208"
},
"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.05",
"eval_cost": "0.01",
"prefix_cost": "25.32",
"data_read_per_join": "86"
},
"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 |
seo_name |
seo_path |
2918 |
2913 |
2910/2913/2918 |
Bath Caddies |
10 |
A |
0 |
0 |
bath-caddies |
2910/2913 |
2923 |
2913 |
2910/2913/2923 |
Bath Mats & Rugs |
20 |
A |
0 |
0 |
bath-mats-and-rugs |
2910/2913 |
2927 |
2913 |
2910/2913/2927 |
Bath Pillows |
30 |
A |
0 |
0 |
bath-pillows |
2910/2913 |
2932 |
2913 |
2910/2913/2932 |
Bathroom Accessory Mounts |
40 |
A |
0 |
0 |
bathroom-accessory-mounts |
2910/2913 |
2937 |
2913 |
2910/2913/2937 |
Bathroom Accessory Sets |
50 |
A |
0 |
0 |
bathroom-accessory-sets |
2910/2913 |
2939 |
2913 |
2910/2913/2939 |
Facial Tissue Holders |
60 |
A |
0 |
0 |
facial-tissue-holders |
2910/2913 |
2943 |
2913 |
2910/2913/2943 |
Hand Dryer Accessories |
70 |
A |
0 |
0 |
hand-dryer-accessories |
2910/2913 |
2946 |
2913 |
2910/2913/2946 |
Hand Dryers |
80 |
A |
0 |
0 |
hand-dryers |
2910/2913 |
2950 |
2913 |
2910/2913/2950 |
Medicine Cabinets |
90 |
A |
0 |
0 |
medicine-cabinets |
2910/2913 |
2955 |
2913 |
2910/2913/2955 |
Robe Hooks |
100 |
A |
0 |
0 |
robe-hooks |
2910/2913 |
2959 |
2913 |
2910/2913/2959 |
Safety Grab Bars |
110 |
A |
0 |
0 |
safety-grab-bars |
2910/2913 |
2962 |
2913 |
2910/2913/2962 |
Shower Curtain Rings |
120 |
A |
0 |
0 |
shower-curtain-rings |
2910/2913 |
2965 |
2913 |
2910/2913/2965 |
Shower Curtains |
130 |
A |
0 |
0 |
shower-curtains |
2910/2913 |
2974 |
2913 |
2910/2913/2974 |
Shower Rods |
140 |
A |
0 |
0 |
shower-rods |
2910/2913 |
2979 |
2913 |
2910/2913/2979 |
Soap & Lotion Dispensers |
150 |
A |
0 |
0 |
soap-and-lotion-dispensers |
2910/2913 |
2986 |
2913 |
2910/2913/2986 |
Soap Dishes & Holders |
160 |
A |
0 |
0 |
soap-dishes-and-holders |
2910/2913 |
2991 |
2913 |
2910/2913/2991 |
Toilet Brush Replacement Heads |
170 |
A |
0 |
0 |
toilet-brush-replacement-heads |
2910/2913 |
2997 |
2913 |
2910/2913/2997 |
Toilet Brushes & Holders |
180 |
A |
0 |
0 |
toilet-brushes-and-holders |
2910/2913 |
3000 |
2913 |
2910/2913/3000 |
Toilet Paper Holders |
190 |
A |
0 |
0 |
toilet-paper-holders |
2910/2913 |
3003 |
2913 |
2910/2913/3003 |
Toothbrush Holders |
200 |
A |
0 |
0 |
toothbrush-holders |
2910/2913 |
3009 |
2913 |
2910/2913/3009 |
Towel Racks & Holders |
210 |
A |
0 |
0 |
towel-racks-and-holders |
2910/2913 |