Query time 0.00222
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "25.07"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"PRIMARY",
"c_status",
"parent",
"id_path",
"p_category_id"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 27,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`id_path` like '250/%')",
"cost_info": {
"read_cost": "12.36",
"eval_cost": "0.05",
"prefix_cost": "12.41",
"data_read_per_join": "1K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"storefront_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"ab__lc_catalog_image_control"
],
"attached_condition": "(((`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`usergroup_ids` = '') or (0 <> find_in_set(0,`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`usergroup_ids`)) or (0 <> find_in_set(1,`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`usergroup_ids`))) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`status` = 'A') and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`category_id` <> 264) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`parent_id` <> 264) and (`softwarepirmam_hewadelivard_cscart_4`.`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": [
"softwarepirmam_hewadelivard_cscart_4.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.14",
"eval_cost": "0.05",
"prefix_cost": "12.60",
"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": [
"softwarepirmam_hewadelivard_cscart_4.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 66,
"rows_produced_per_join": 35,
"filtered": "100.00",
"cost_info": {
"read_cost": "8.91",
"eval_cost": "3.56",
"prefix_cost": "25.07",
"data_read_per_join": "60K"
},
"used_columns": [
"name",
"object_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
ab__lc_catalog_image_control |
| 440 |
251 |
250/458/251/440 |
Casio |
10 |
A |
0 |
0 |
casio |
250/458/251 |
none |
| 554 |
553 |
250/553/554 |
Coffee Machine |
10 |
A |
0 |
0 |
coffee-machine |
250/553 |
none |
| 385 |
308 |
250/308/385 |
Combo |
10 |
A |
0 |
0 |
combo |
250/308 |
none |
| 441 |
336 |
250/336/441 |
deli |
10 |
A |
0 |
0 |
deli |
250/336 |
none |
| 568 |
406 |
250/402/406/568 |
Ethernet Cable |
10 |
A |
0 |
0 |
ethernet-cable |
250/402/406 |
none |
| 562 |
555 |
250/553/555/562 |
Ground Coffee |
10 |
A |
0 |
0 |
ground-coffee |
250/553/555 |
none |
| 412 |
407 |
250/402/407/412 |
Indoor Access Point |
10 |
A |
0 |
0 |
indoor-access-point |
250/402/407 |
none |
| 393 |
371 |
250/371/393 |
Inkjet Printer |
10 |
A |
0 |
0 |
inkjet-printer |
250/371 |
none |
| 410 |
405 |
250/402/405/410 |
Managed Switch |
10 |
A |
0 |
0 |
managed-switch |
250/402/405 |
none |
| 305 |
458 |
250/458/305 |
Paper |
10 |
A |
0 |
0 |
paper |
250/458 |
none |
| 371 |
250 |
250/371 |
Printer |
10 |
A |
0 |
0 |
printer |
250 |
none |
| 404 |
402 |
250/402/404 |
Router |
10 |
A |
0 |
0 |
router |
250/402 |
none |
| 555 |
553 |
250/553/555 |
Beans & Capsules |
20 |
A |
0 |
0 |
beans-and-capsules |
250/553 |
none |
| 563 |
555 |
250/553/555/563 |
Capsules |
20 |
A |
0 |
0 |
capsules |
250/553/555 |
none |
| 569 |
406 |
250/402/406/569 |
Coaxial Cable |
20 |
A |
0 |
0 |
coaxial-cable |
250/402/406 |
none |
| 442 |
251 |
250/458/251/442 |
CTiFree |
20 |
A |
0 |
0 |
ctifree |
250/458/251 |
none |
| 394 |
371 |
250/371/394 |
Laser Printer |
20 |
A |
0 |
0 |
laser-printer |
250/371 |
none |
| 386 |
308 |
250/308/386 |
Mouse |
20 |
A |
0 |
0 |
mouse |
250/308 |
none |
| 413 |
407 |
250/402/407/413 |
Outdoor Access Point |
20 |
A |
0 |
0 |
outdoor-access-point |
250/402/407 |
none |
| 485 |
458 |
250/458/485 |
Pen |
20 |
A |
0 |
0 |
pen |
250/458 |
none |
| 336 |
250 |
250/336 |
Shredder |
20 |
A |
0 |
0 |
shredder |
250 |
none |
| 405 |
402 |
250/402/405 |
Switch |
20 |
A |
0 |
0 |
switch |
250/402 |
none |
| 411 |
405 |
250/402/405/411 |
Unmanaged Switch |
20 |
A |
0 |
0 |
unmanaged-switch |
250/402/405 |
none |
| 251 |
458 |
250/458/251 |
calculators |
30 |
A |
0 |
0 |
calculators |
250/458 |
none |
| 489 |
371 |
250/371/489 |
Dot Matrix Printers |
30 |
A |
0 |
0 |
dot-matrix-printers |
250/371 |
none |
| 387 |
308 |
250/308/387 |
Keyboard |
30 |
A |
0 |
0 |
keyboard |
250/308 |
none |
| 406 |
402 |
250/402/406 |
Network Cables & POE Adapters |
30 |
A |
0 |
0 |
ethernet-cable |
250/402 |
none |
| 570 |
406 |
250/402/406/570 |
POE Adapters |
30 |
A |
0 |
0 |
poe-adapters |
250/402/406 |
none |
| 407 |
402 |
250/402/407 |
Access Point |
40 |
A |
0 |
0 |
access-point |
250/402 |
none |
| 397 |
371 |
250/371/397 |
Barcode Printers |
40 |
A |
0 |
0 |
barcode-printer |
250/371 |
none |
| 428 |
458 |
250/458/428 |
Desk & WorkSpace Organizer |
40 |
A |
0 |
0 |
desk-organizer |
250/458 |
none |
| 408 |
402 |
250/402/408 |
Firewall |
50 |
A |
0 |
0 |
firewall |
250/402 |
none |
| 398 |
371 |
250/371/398 |
Label Printers |
50 |
A |
0 |
0 |
label-printers |
250/371 |
none |
| 488 |
458 |
250/458/488 |
Stapler |
50 |
A |
0 |
0 |
stapler |
250/458 |
none |
| 395 |
371 |
250/371/395 |
Printer Supplies |
60 |
A |
0 |
0 |
printer-supplies |
250/371 |
none |
| 491 |
458 |
250/458/491 |
Staple remover |
60 |
A |
0 |
0 |
staple-remover |
250/458 |
none |
| 409 |
402 |
250/402/409 |
Wireless Access Controller (WAC) |
60 |
A |
0 |
0 |
wireless-access-controller-wac |
250/402 |
none |
| 439 |
402 |
250/402/439 |
Range Extender |
70 |
A |
0 |
0 |
range-extender |
250/402 |
none |
| 615 |
371 |
250/371/615 |
Thermal Printer |
70 |
A |
0 |
0 |
thermal-printer |
250/371 |
none |
| 482 |
402 |
250/402/482 |
Fiber Splicing Machine |
80 |
A |
0 |
0 |
fiber-splicing-machine |
250/402 |
none |
| 308 |
250 |
250/308 |
Mouse & Keyboard |
80 |
A |
0 |
0 |
mouse-and-keyboard |
250 |
none |
| 565 |
402 |
250/402/565 |
Point to Point |
90 |
A |
0 |
0 |
point-to-point |
250/402 |
none |
| 380 |
250 |
250/380 |
Meeting Room Essentials |
110 |
A |
0 |
0 |
meeting-room-essentials |
250 |
none |
| 400 |
250 |
250/400 |
Office Headsets |
120 |
A |
0 |
0 |
headsets |
250 |
none |
| 401 |
250 |
250/401 |
UPS & Power Units |
130 |
A |
0 |
0 |
ups |
250 |
none |
| 402 |
250 |
250/402 |
Network |
140 |
A |
0 |
0 |
network |
250 |
none |
| 458 |
250 |
250/458 |
Stationary |
150 |
A |
0 |
0 |
stationary |
250 |
none |
| 553 |
250 |
250/553 |
Coffee |
160 |
A |
0 |
0 |
coffee |
250 |
none |