Query time 0.00771
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "140.45"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "q_categories",
"access_type": "ALL",
"possible_keys": [
"PRIMARY",
"c_status",
"p_category_id"
],
"rows_examined_per_scan": 598,
"rows_produced_per_join": 2,
"filtered": "0.41",
"cost_info": {
"read_cost": "134.04",
"eval_cost": "0.49",
"prefix_cost": "134.53",
"data_read_per_join": "6K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"level",
"usergroup_ids",
"status",
"position",
"is_trash",
"ab__lc_catalog_image_control"
],
"attached_condition": "(((`portal`.`q_categories`.`usergroup_ids` = '') or find_in_set(0,`portal`.`q_categories`.`usergroup_ids`) or find_in_set(1,`portal`.`q_categories`.`usergroup_ids`)) and (`portal`.`q_categories`.`status` = 'A') and (`portal`.`q_categories`.`level` <= 3) and (`portal`.`q_categories`.`category_id` in (12,13,38,42,50,77,79,6,159,167,168,177,184,185,190,191,192,193,194,195,196,199,200,201,202,204,206,207,248,278,279,282,299,301,360,382,383,385,386,401,402,412,413,415,418,419,420,422,423,424,425,427,428,429,438,439,442,454,455,469,470,475,512,513,544,548,551,552,554,555,556,560,561,562)))"
}
},
{
"table": {
"table_name": "q_category_descriptions",
"access_type": "eq_ref",
"possible_keys": [
"PRIMARY"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id",
"lang_code"
],
"key_length": "9",
"ref": [
"portal.q_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.47",
"eval_cost": "0.49",
"prefix_cost": "137.49",
"data_read_per_join": "7K"
},
"used_columns": [
"category_id",
"lang_code",
"category"
]
}
},
{
"table": {
"table_name": "q_seo_names",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"dispatch"
],
"key": "PRIMARY",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code"
],
"key_length": "206",
"ref": [
"portal.q_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 2,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.47",
"eval_cost": "0.49",
"prefix_cost": "140.45",
"data_read_per_join": "4K"
},
"used_columns": [
"name",
"object_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
category_id |
parent_id |
id_path |
category |
position |
status |
seo_name |
seo_path |
ab__lc_catalog_image_control |
301 |
0 |
301 |
Products |
0 |
A |
products |
|
none |
551 |
190 |
190/551 |
Tablets |
5 |
A |
tablets |
190 |
none |
191 |
190 |
190/191 |
Cover Cases |
10 |
A |
cases |
190 |
none |
413 |
412 |
299/412/413 |
Camera Accessories |
10 |
A |
camera-accessories |
299/412 |
none |
470 |
469 |
207/469/470 |
Camping & Hiking |
10 |
A |
camping-and-hiking |
207/469 |
none |
439 |
438 |
6/438/439 |
Dining & Entertaining |
10 |
A |
dining-and-entertaining |
6/438 |
none |
423 |
422 |
299/422/423 |
Gaming Accessories |
10 |
A |
gaming-accessories |
299/422 |
none |
418 |
191 |
190/191/418 |
Mobile Cover Case |
10 |
A |
mobile-cover-case |
190/191 |
none |
185 |
184 |
6/184/185 |
Power Tools |
10 |
A |
power-tools |
6/184 |
none |
382 |
299 |
299/382 |
Speakers |
10 |
A |
speakers |
299 |
none |
13 |
12 |
12/13 |
Womens Fashion |
10 |
A |
womens-fashion |
12 |
none |
192 |
190 |
190/192 |
Screen Protectors |
20 |
A |
screen-protectors |
190 |
none |
402 |
383 |
299/383/402 |
Cables, Adapters & Connectors |
20 |
A |
cables-adapters-and-connectors |
299/383 |
none |
383 |
299 |
299/383 |
Computer & Laptop Accessories |
20 |
A |
computer-and-laptop-accessories |
299 |
none |
159 |
6 |
6/159 |
Decor |
20 |
A |
decor |
6 |
none |
6 |
0 |
6 |
Home & Decor |
20 |
A |
home-and-decor |
|
none |
50 |
12 |
12/50 |
Mens Fashion |
20 |
A |
mens-fashion |
12 |
none |
427 |
425 |
6/425/427 |
Smoking Accessories |
20 |
A |
smoking-accessories |
6/425 |
none |
419 |
191 |
190/191/419 |
Tablet Cover Case |
20 |
A |
tablet-cover-case |
190/191 |
none |
193 |
190 |
190/193 |
Chargers & Power Adapters |
30 |
A |
chargers-and-power-adapters |
190 |
none |
38 |
13 |
12/13/38 |
Bags |
30 |
A |
women-bags |
12/13 |
none |
77 |
50 |
12/50/77 |
Bags |
30 |
A |
bags |
12/50 |
none |
12 |
0 |
12 |
Fashion |
30 |
A |
fashion |
|
none |
454 |
438 |
6/438/454 |
Kitchen Utensils & Gadgets |
30 |
A |
kitchen-gadgets |
6/438 |
none |
512 |
383 |
299/383/512 |
Laptop Bags |
30 |
A |
laptop-bags |
299/383 |
none |
415 |
412 |
299/412/415 |
Lenses |
30 |
A |
lenses |
299/412 |
none |
385 |
299 |
299/385 |
Routers |
30 |
A |
routers |
299 |
none |
168 |
6 |
6/168 |
Small Appliances |
30 |
A |
small-appliances |
6 |
none |
194 |
190 |
190/194 |
Batteries & Power Banks |
40 |
A |
batteries-and-powerbanks |
190 |
none |
278 |
248 |
248/278 |
Gear |
40 |
A |
gear |
248 |
none |
560 |
383 |
299/383/560 |
Keyboard & Mouse |
40 |
A |
keyboard-mouse |
299/383 |
none |
548 |
544 |
248/544/548 |
Kids Water Bottles |
40 |
A |
kids-water-bottles |
248/544 |
none |
190 |
0 |
190 |
Mobiles & Tablets |
40 |
A |
mobiles-tablets |
|
none |
184 |
6 |
6/184 |
Tools & Home Improvement |
40 |
A |
tools-and-home |
6 |
none |
195 |
190 |
190/195 |
Mounts & Stands |
50 |
A |
mounts-and-stands |
190 |
none |
555 |
12 |
12/555 |
Bags & Luggage |
50 |
A |
bags-and-luggage |
12 |
none |
561 |
383 |
299/383/561 |
Laptop Cover Case |
50 |
A |
laptop-cover-case |
299/383 |
none |
207 |
0 |
207 |
Sport & Fitness |
50 |
A |
sport-fitness |
|
none |
196 |
190 |
190/196 |
Selfie Sticks & Tripods |
60 |
A |
selfie-sticks-and-tripods |
190 |
none |
248 |
0 |
248 |
Kids Corner |
60 |
A |
kids-corner |
|
none |
562 |
383 |
299/383/562 |
Screen Protector |
60 |
A |
screen-protector |
299/383 |
none |
360 |
6 |
6/360 |
Table Covers |
60 |
A |
table-covers |
6 |
none |
299 |
0 |
299 |
Electronics |
70 |
A |
electronics |
|
none |
401 |
299 |
299/401 |
Recording & Studio Equipment |
70 |
A |
recording-and-studio-equipment |
299 |
none |
412 |
299 |
299/412 |
Camera, Photo & Video |
80 |
A |
camera-photo-and-video |
299 |
none |
167 |
159 |
6/159/167 |
Lighting |
80 |
A |
lighting |
6/159 |
none |
425 |
6 |
6/425 |
Outdoor |
80 |
A |
outdoor |
6 |
none |
199 |
190 |
190/199 |
Car Accessories |
90 |
A |
car-accessories |
190 |
none |
177 |
168 |
6/168/177 |
Coffee Machines |
90 |
A |
coffee-machines |
6/168 |
none |
438 |
6 |
6/438 |
Kitchen & Dining |
90 |
A |
kitchen-dining |
6 |
none |
544 |
248 |
248/544 |
School & Stationery |
90 |
A |
school-and-stationery |
248 |
none |
200 |
190 |
190/200 |
Corded Headsets |
100 |
A |
corded-headsets |
190 |
none |
422 |
299 |
299/422 |
Video Games & Accessories |
100 |
A |
video-games-accessories |
299 |
none |
201 |
190 |
190/201 |
Bluetooth Headsets |
110 |
A |
bluetooth-headsets |
190 |
none |
202 |
190 |
190/202 |
Cables & Connectors |
120 |
A |
selfie-sticks-and-tripods-en |
190 |
none |
552 |
299 |
299/552 |
Telephones & Accessories |
120 |
A |
telephones-and-accessories |
299 |
none |
554 |
299 |
299/554 |
GPS & Tracker |
130 |
A |
gps-and-tracker |
299 |
none |
204 |
190 |
190/204 |
Smart Watch Accessories |
140 |
A |
smart-watch-accessories |
190 |
none |
206 |
190 |
190/206 |
Smart Watches |
150 |
A |
smart-watches |
190 |
none |
386 |
190 |
190/386 |
Headset |
160 |
A |
headset |
190 |
none |
420 |
190 |
190/420 |
Keyboard |
170 |
A |
keyboard |
190 |
none |
424 |
190 |
190/424 |
Bluetooth Speakers |
180 |
A |
bluetooth-speakers |
190 |
none |
469 |
207 |
207/469 |
Outdoor Recreation |
180 |
A |
outdoor-recreation |
207 |
none |
513 |
207 |
207/513 |
Exercise & Fitness Accessories |
190 |
A |
exercise-and-fitness-accessories |
207 |
none |
428 |
190 |
190/428 |
Mobile Holders & Stands |
190 |
A |
mobile-holders-and-stands |
190 |
none |
429 |
190 |
190/429 |
Mobile Tools & Accessories |
200 |
A |
mobile-tools-and-accessories |
190 |
none |
556 |
190 |
190/556 |
Tablet Accessories |
210 |
A |
tablet-accessories |
190 |
none |