Query time 0.00272
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "29.97"
},
"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": 20,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '4271/4805/4910/%')",
"cost_info": {
"read_cost": "28.93",
"eval_cost": "0.08",
"prefix_cost": "29.01",
"data_read_per_join": "2K"
},
"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.40",
"eval_cost": "0.08",
"prefix_cost": "29.49",
"data_read_per_join": "1K"
},
"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.40",
"eval_cost": "0.08",
"prefix_cost": "29.97",
"data_read_per_join": "694"
},
"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 |
9435 |
9434 |
4271/4805/4910/9434/9435 |
MP3 Player & Mobile Phone Accessory Sets |
0 |
A |
0 |
0 |
295 |
mp3-player-and-mobile-phone-accessory-sets |
4271/4805/4910/9434 |
9434 |
4910 |
4271/4805/4910/9434 |
MP3 Player Accessories |
0 |
A |
0 |
0 |
1 |
mp3-player-accessories-en |
4271/4805/4910 |
4926 |
4910 |
4271/4805/4910/4926 |
Audio & Video Receiver Accessories |
10 |
A |
0 |
0 |
0 |
audio-and-video-receiver-accessories |
4271/4805/4910 |
4948 |
4937 |
4271/4805/4910/4937/4948 |
Headphone Cushions & Tips |
10 |
A |
0 |
0 |
0 |
headphone-cushions-and-tips |
4271/4805/4910/4937 |
4965 |
4955 |
4271/4805/4910/4955/4965 |
Karaoke Chips |
10 |
A |
0 |
0 |
0 |
karaoke-chips |
4271/4805/4910/4955 |
4986 |
4979 |
4271/4805/4910/4979/4986 |
MP3 Player & Mobile Phone Accessory Sets |
10 |
A |
0 |
0 |
0 |
mp3-player-and-mobile-phone-accessory-sets |
4271/4805/4910/4979 |
5049 |
5037 |
4271/4805/4910/5037/5049 |
Speaker Bags, Covers & Cases |
10 |
A |
0 |
0 |
0 |
speaker-bags-covers-and-cases |
4271/4805/4910/5037 |
4937 |
4910 |
4271/4805/4910/4937 |
Headphone & Headset Accessories |
20 |
A |
0 |
0 |
62 |
headphone-and-headset-accessories |
4271/4805/4910 |
4996 |
4979 |
4271/4805/4910/4979/4996 |
MP3 Player Cases |
20 |
A |
0 |
0 |
0 |
mp3-player-cases |
4271/4805/4910/4979 |
5063 |
5037 |
4271/4805/4910/5037/5063 |
Speaker Components & Kits |
20 |
A |
0 |
0 |
12 |
speaker-components-and-kits |
4271/4805/4910/5037 |
4955 |
4910 |
4271/4805/4910/4955 |
Karaoke System Accessories |
30 |
A |
0 |
0 |
0 |
karaoke-system-accessories |
4271/4805/4910 |
5071 |
5037 |
4271/4805/4910/5037/5071 |
Speaker Stand Bags |
30 |
A |
0 |
0 |
0 |
speaker-stand-bags |
4271/4805/4910/5037 |
4979 |
4910 |
4271/4805/4910/4979 |
MP3 Player Accessories |
40 |
A |
0 |
0 |
0 |
mp3-player-accessories |
4271/4805/4910 |
5078 |
5037 |
4271/4805/4910/5037/5078 |
Speaker Stands & Mounts |
40 |
A |
0 |
0 |
0 |
speaker-stands-and-mounts |
4271/4805/4910/5037 |
5007 |
4910 |
4271/4805/4910/5007 |
Microphone Accessories |
50 |
A |
0 |
0 |
10 |
microphone-accessories |
4271/4805/4910 |
5081 |
5037 |
4271/4805/4910/5037/5081 |
Tactile Transducers |
50 |
A |
0 |
0 |
0 |
tactile-transducers |
4271/4805/4910/5037 |
5019 |
4910 |
4271/4805/4910/5019 |
Microphone Stands |
60 |
A |
0 |
0 |
0 |
microphone-stands |
4271/4805/4910 |
5027 |
4910 |
4271/4805/4910/5027 |
Satellite Radio Accessories |
70 |
A |
0 |
0 |
0 |
satellite-radio-accessories |
4271/4805/4910 |
5037 |
4910 |
4271/4805/4910/5037 |
Speaker Accessories |
80 |
A |
0 |
0 |
0 |
speaker-accessories |
4271/4805/4910 |
5086 |
4910 |
4271/4805/4910/5086 |
Turntable Accessories |
90 |
A |
0 |
0 |
0 |
turntable-accessories |
4271/4805/4910 |