Query time 0.00223
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "38.66"
},
"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": 26,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '4271/4805/4909/%')",
"cost_info": {
"read_cost": "37.31",
"eval_cost": "0.10",
"prefix_cost": "37.41",
"data_read_per_join": "3K"
},
"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.52",
"eval_cost": "0.10",
"prefix_cost": "38.03",
"data_read_per_join": "2K"
},
"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.52",
"eval_cost": "0.10",
"prefix_cost": "38.66",
"data_read_per_join": "902"
},
"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 |
9262 |
4982 |
4271/4805/4909/4982/9262 |
Headsets |
0 |
A |
0 |
0 |
95 |
headsets-en |
4271/4805/4909/4982 |
9402 |
4909 |
4271/4805/4909/9402 |
Speakers |
0 |
A |
0 |
0 |
43 |
speakers-en |
4271/4805/4909 |
5128 |
5120 |
4271/4805/4909/5120/5128 |
Headphone Amplifiers |
10 |
A |
0 |
0 |
0 |
headphone-amplifiers |
4271/4805/4909/5120 |
4918 |
4909 |
4271/4805/4909/4918 |
Audio Transmitters |
10 |
A |
0 |
0 |
0 |
audio-transmitters |
4271/4805/4909 |
4932 |
4918 |
4271/4805/4909/4918/4932 |
Bluetooth Transmitters |
10 |
A |
0 |
0 |
5 |
bluetooth-transmitters |
4271/4805/4909/4918 |
5026 |
5021 |
4271/4805/4909/5021/5026 |
Crossovers |
10 |
A |
0 |
0 |
0 |
crossovers |
4271/4805/4909/5021 |
4989 |
4982 |
4271/4805/4909/4982/4989 |
Headphones |
10 |
A |
0 |
0 |
195 |
headphones |
4271/4805/4909/4982 |
4997 |
4982 |
4271/4805/4909/4982/4997 |
Headsets |
20 |
A |
0 |
0 |
2 |
headsets |
4271/4805/4909/4982 |
4953 |
4909 |
4271/4805/4909/4953 |
Channel Strips |
20 |
A |
0 |
0 |
0 |
channel-strips |
4271/4805/4909 |
5035 |
5021 |
4271/4805/4909/5021/5035 |
Effects Processors |
20 |
A |
0 |
0 |
0 |
effects-processors |
4271/4805/4909/5021 |
4938 |
4918 |
4271/4805/4909/4918/4938 |
FM Transmitters |
20 |
A |
0 |
0 |
0 |
fm-transmitters |
4271/4805/4909/4918 |
5137 |
5120 |
4271/4805/4909/5120/5137 |
Power Amplifiers |
20 |
A |
0 |
0 |
0 |
power-amplifiers |
4271/4805/4909/5120 |
4969 |
4909 |
4271/4805/4909/4969 |
Direct Boxes |
30 |
A |
0 |
0 |
0 |
direct-boxes |
4271/4805/4909 |
5044 |
5021 |
4271/4805/4909/5021/5044 |
Equalizers |
30 |
A |
0 |
0 |
0 |
equalizers |
4271/4805/4909/5021 |
5053 |
5021 |
4271/4805/4909/5021/5053 |
Loudspeaker Management Systems |
40 |
A |
0 |
0 |
0 |
loudspeaker-management-systems |
4271/4805/4909/5021 |
4982 |
4909 |
4271/4805/4909/4982 |
Headphones & Headsets |
40 |
A |
0 |
0 |
56 |
headphones-and-headsets |
4271/4805/4909 |
5060 |
5021 |
4271/4805/4909/5021/5060 |
Microphone Preamps |
50 |
A |
0 |
0 |
0 |
microphone-preamps |
4271/4805/4909/5021 |
5003 |
4909 |
4271/4805/4909/5003 |
Microphones |
50 |
A |
0 |
0 |
0 |
microphones |
4271/4805/4909 |
5069 |
5021 |
4271/4805/4909/5021/5069 |
Noise Gates & Compressors |
60 |
A |
0 |
0 |
0 |
noise-gates-and-compressors |
4271/4805/4909/5021 |
5021 |
4909 |
4271/4805/4909/5021 |
Signal Processors |
60 |
A |
0 |
0 |
0 |
signal-processors |
4271/4805/4909 |
5080 |
4909 |
4271/4805/4909/5080 |
Speakers |
70 |
A |
0 |
0 |
9 |
speakers |
4271/4805/4909 |
5074 |
5021 |
4271/4805/4909/5021/5074 |
Phono Preamps |
70 |
A |
0 |
0 |
0 |
phono-preamps |
4271/4805/4909/5021 |
5089 |
4909 |
4271/4805/4909/5089 |
Studio Recording Bundles |
80 |
A |
0 |
0 |
0 |
studio-recording-bundles |
4271/4805/4909 |
5104 |
4909 |
4271/4805/4909/5104 |
Audio & Video Receivers |
90 |
A |
0 |
0 |
0 |
audio-and-video-receivers |
4271/4805/4909 |
5120 |
4909 |
4271/4805/4909/5120 |
Audio Amplifiers |
100 |
A |
0 |
0 |
15 |
audio-amplifiers |
4271/4805/4909 |
5145 |
4909 |
4271/4805/4909/5145 |
Audio Mixers |
110 |
A |
0 |
0 |
0 |
audio-mixers |
4271/4805/4909 |