Query time 0.00147
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "34.92"
},
"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": 29,
"rows_produced_per_join": 0,
"filtered": "0.17",
"cost_info": {
"read_cost": "29.00",
"eval_cost": "0.01",
"prefix_cost": "34.80",
"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 '6288/6928/%') 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": "34.86",
"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": "34.92",
"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 |
9387 |
6928 |
6288/6928/9387 |
Dolls, Playsets & Toy Figures |
0 |
A |
0 |
0 |
dolls-playsets-and-toy-figures-en |
6288/6928 |
6975 |
6928 |
6288/6928/6975 |
Activity Toys |
10 |
A |
0 |
0 |
activity-toys |
6288/6928 |
6979 |
6928 |
6288/6928/6979 |
Educational Toys |
20 |
A |
0 |
0 |
educational-toys |
6288/6928 |
7095 |
6928 |
6288/6928/7095 |
Sports Toy Accessories |
30 |
A |
0 |
0 |
sports-toy-accessories |
6288/6928 |
7243 |
6928 |
6288/6928/7243 |
Art & Drawing Toys |
40 |
A |
0 |
0 |
art-and-drawing-toys |
6288/6928 |
7250 |
6928 |
6288/6928/7250 |
Sports Toys |
50 |
A |
0 |
0 |
sports-toys |
6288/6928 |
7291 |
6928 |
6288/6928/7291 |
Executive Toys |
60 |
A |
0 |
0 |
executive-toys |
6288/6928 |
7293 |
6928 |
6288/6928/7293 |
Ball Pit Accessories |
70 |
A |
0 |
0 |
ball-pit-accessories |
6288/6928 |
7334 |
6928 |
6288/6928/7334 |
Ball Pits |
80 |
A |
0 |
0 |
ball-pits |
6288/6928 |
7348 |
6928 |
6288/6928/7348 |
Bath Toys |
90 |
A |
0 |
0 |
bath-toys |
6288/6928 |
7363 |
6928 |
6288/6928/7363 |
Flying Toy Accessories |
100 |
A |
0 |
0 |
flying-toy-accessories |
6288/6928 |
7372 |
6928 |
6288/6928/7372 |
Beach & Sand Toys |
110 |
A |
0 |
0 |
beach-and-sand-toys |
6288/6928 |
7387 |
6928 |
6288/6928/7387 |
Building Toys |
120 |
A |
0 |
0 |
building-toys |
6288/6928 |
7577 |
6928 |
6288/6928/7577 |
Dolls, Playsets & Toy Figures |
130 |
A |
0 |
0 |
dolls-playsets-and-toy-figures |
6288/6928 |
7662 |
6928 |
6288/6928/7662 |
Flying Toys |
140 |
A |
0 |
0 |
flying-toys |
6288/6928 |
7719 |
6928 |
6288/6928/7719 |
Riding Toys |
150 |
A |
0 |
0 |
riding-toys |
6288/6928 |
7727 |
6928 |
6288/6928/7727 |
Musical Toys |
160 |
A |
0 |
0 |
musical-toys |
6288/6928 |
7748 |
6928 |
6288/6928/7748 |
Robotic Toys |
170 |
A |
0 |
0 |
robotic-toys |
6288/6928 |
7766 |
6928 |
6288/6928/7766 |
Play Vehicle Accessories |
180 |
A |
0 |
0 |
play-vehicle-accessories |
6288/6928 |
7797 |
6928 |
6288/6928/7797 |
Play Vehicles |
190 |
A |
0 |
0 |
play-vehicles |
6288/6928 |
7891 |
6928 |
6288/6928/7891 |
Toy Gift Baskets |
200 |
A |
0 |
0 |
toy-gift-baskets |
6288/6928 |
7899 |
6928 |
6288/6928/7899 |
Toy Weapon & Gadget Accessories |
210 |
A |
0 |
0 |
toy-weapon-and-gadget-accessories |
6288/6928 |
7905 |
6928 |
6288/6928/7905 |
Toy Weapons & Gadgets |
220 |
A |
0 |
0 |
toy-weapons-and-gadgets |
6288/6928 |
7911 |
6928 |
6288/6928/7911 |
Visual Toys |
230 |
A |
0 |
0 |
visual-toys |
6288/6928 |
7962 |
6928 |
6288/6928/7962 |
Wind-Up Toys |
240 |
A |
0 |
0 |
wind-up-toys |
6288/6928 |
8053 |
6928 |
6288/6928/8053 |
Pretend Play |
250 |
A |
0 |
0 |
pretend-play |
6288/6928 |
8209 |
6928 |
6288/6928/8209 |
Remote Control Toys |
260 |
A |
0 |
0 |
remote-control-toys |
6288/6928 |
8308 |
6928 |
6288/6928/8308 |
Riding Toy Accessories |
270 |
A |
0 |
0 |
riding-toy-accessories |
6288/6928 |
8324 |
6928 |
6288/6928/8324 |
Remote Control Toy Accessories |
280 |
A |
0 |
0 |
remote-control-toy-accessories |
6288/6928 |