Query time 0.00299
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "43.00"
},
"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": 29,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '5372/5495/5630/6918/%')",
"cost_info": {
"read_cost": "41.49",
"eval_cost": "0.12",
"prefix_cost": "41.61",
"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.58",
"eval_cost": "0.12",
"prefix_cost": "42.31",
"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.58",
"eval_cost": "0.12",
"prefix_cost": "43.00",
"data_read_per_join": "1006"
},
"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 |
6937 |
6918 |
5372/5495/5630/6918/6937 |
Bass Drums |
10 |
A |
0 |
0 |
0 |
bass-drums |
5372/5495/5630/6918 |
7208 |
7195 |
5372/5495/5630/6918/5690/7195/7208 |
Bongos |
10 |
A |
0 |
0 |
0 |
bongos |
5372/5495/5630/6918/5690/7195 |
7105 |
5690 |
5372/5495/5630/6918/5690/7105 |
Claves & Castanets |
10 |
A |
0 |
0 |
0 |
claves-and-castanets |
5372/5495/5630/6918/5690 |
5690 |
6918 |
5372/5495/5630/6918/5690 |
Hand Percussion |
10 |
A |
0 |
0 |
0 |
hand-percussion-en |
5372/5495/5630/6918 |
5725 |
7195 |
5372/5495/5630/6918/5690/7195/5725 |
Tablas |
10 |
A |
0 |
0 |
0 |
tablas |
5372/5495/5630/6918/5690/7195 |
7218 |
7195 |
5372/5495/5630/6918/5690/7195/7218 |
Cajons |
20 |
A |
0 |
0 |
0 |
cajons |
5372/5495/5630/6918/5690/7195 |
6954 |
6918 |
5372/5495/5630/6918/6954 |
Cymbals |
20 |
A |
0 |
0 |
0 |
cymbals |
5372/5495/5630/6918 |
7118 |
5690 |
5372/5495/5630/6918/5690/7118 |
Finger & Hand Cymbals |
20 |
A |
0 |
0 |
0 |
finger-and-hand-cymbals |
5372/5495/5630/6918/5690 |
5818 |
6918 |
5372/5495/5630/6918/5818 |
Hi-Hats |
20 |
A |
0 |
0 |
0 |
hi-hats |
5372/5495/5630/6918 |
5749 |
5690 |
5372/5495/5630/6918/5690/5749 |
Musical Blocks |
20 |
A |
0 |
0 |
0 |
musical-blocks |
5372/5495/5630/6918/5690 |
5737 |
7195 |
5372/5495/5630/6918/5690/7195/5737 |
Talking Drums |
20 |
A |
0 |
0 |
0 |
talking-drums |
5372/5495/5630/6918/5690/7195 |
6971 |
6918 |
5372/5495/5630/6918/6971 |
Drum Kits |
30 |
A |
0 |
0 |
0 |
drum-kits |
5372/5495/5630/6918 |
7177 |
5690 |
5372/5495/5630/6918/5690/7177 |
Hand Bells & Chimes |
30 |
A |
0 |
0 |
0 |
hand-bells-and-chimes |
5372/5495/5630/6918/5690 |
7233 |
7195 |
5372/5495/5630/6918/5690/7195/7233 |
Congas |
30 |
A |
0 |
0 |
0 |
congas |
5372/5495/5630/6918/5690/7195 |
5759 |
5690 |
5372/5495/5630/6918/5690/5759 |
Musical Cowbells |
30 |
A |
0 |
0 |
0 |
musical-cowbells |
5372/5495/5630/6918/5690 |
5826 |
6918 |
5372/5495/5630/6918/5826 |
Practice Pads |
30 |
A |
0 |
0 |
0 |
practice-pads |
5372/5495/5630/6918 |
6990 |
6918 |
5372/5495/5630/6918/6990 |
Electronic Drums |
40 |
A |
0 |
0 |
0 |
electronic-drums |
5372/5495/5630/6918 |
7252 |
7195 |
5372/5495/5630/6918/5690/7195/7252 |
Frame Drums |
40 |
A |
0 |
0 |
0 |
frame-drums |
5372/5495/5630/6918/5690/7195 |
7195 |
5690 |
5372/5495/5630/6918/5690/7195 |
Hand Drums |
40 |
A |
0 |
0 |
0 |
hand-drums-en |
5372/5495/5630/6918/5690 |
5765 |
5690 |
5372/5495/5630/6918/5690/5765 |
Musical Scrapers & Ratchets |
40 |
A |
0 |
0 |
0 |
musical-scrapers-and-ratchets |
5372/5495/5630/6918/5690 |
5837 |
6918 |
5372/5495/5630/6918/5837 |
Snare Drums |
40 |
A |
0 |
0 |
0 |
snare-drums |
5372/5495/5630/6918 |
7005 |
6918 |
5372/5495/5630/6918/7005 |
Glockenspiels & Xylophones |
50 |
A |
0 |
0 |
0 |
glockenspiels-and-xylophones |
5372/5495/5630/6918 |
7259 |
7195 |
5372/5495/5630/6918/5690/7195/7259 |
Goblet Drums |
50 |
A |
0 |
0 |
0 |
goblet-drums |
5372/5495/5630/6918/5690/7195 |
5774 |
5690 |
5372/5495/5630/6918/5690/5774 |
Musical Shakers |
50 |
A |
0 |
0 |
0 |
musical-shakers |
5372/5495/5630/6918/5690 |
5850 |
6918 |
5372/5495/5630/6918/5850 |
Tom-Toms |
50 |
A |
0 |
0 |
0 |
tom-toms |
5372/5495/5630/6918 |
7024 |
6918 |
5372/5495/5630/6918/7024 |
Gongs |
60 |
A |
0 |
0 |
0 |
gongs |
5372/5495/5630/6918 |
5786 |
5690 |
5372/5495/5630/6918/5690/5786 |
Musical Triangles |
60 |
A |
0 |
0 |
0 |
musical-triangles |
5372/5495/5630/6918/5690 |
5792 |
5690 |
5372/5495/5630/6918/5690/5792 |
Tambourines |
70 |
A |
0 |
0 |
0 |
tambourines |
5372/5495/5630/6918/5690 |
5801 |
5690 |
5372/5495/5630/6918/5690/5801 |
Vibraslaps |
80 |
A |
0 |
0 |
0 |
vibraslaps |
5372/5495/5630/6918/5690 |