Query time 0.00139
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "7.61"
},
"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": 8,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`id_path` like '250/402/%')",
"cost_info": {
"read_cost": "3.84",
"eval_cost": "0.02",
"prefix_cost": "3.86",
"data_read_per_join": "513"
},
"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.04",
"eval_cost": "0.02",
"prefix_cost": "3.92",
"data_read_per_join": "545"
},
"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": 10,
"filtered": "100.00",
"cost_info": {
"read_cost": "2.64",
"eval_cost": "1.06",
"prefix_cost": "7.61",
"data_read_per_join": "17K"
},
"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 |
| 568 |
406 |
250/402/406/568 |
Ethernet Cable |
10 |
A |
0 |
0 |
ethernet-cable |
250/402/406 |
none |
| 412 |
407 |
250/402/407/412 |
Indoor Access Point |
10 |
A |
0 |
0 |
indoor-access-point |
250/402/407 |
none |
| 410 |
405 |
250/402/405/410 |
Managed Switch |
10 |
A |
0 |
0 |
managed-switch |
250/402/405 |
none |
| 404 |
402 |
250/402/404 |
Router |
10 |
A |
0 |
0 |
router |
250/402 |
none |
| 569 |
406 |
250/402/406/569 |
Coaxial Cable |
20 |
A |
0 |
0 |
coaxial-cable |
250/402/406 |
none |
| 413 |
407 |
250/402/407/413 |
Outdoor Access Point |
20 |
A |
0 |
0 |
outdoor-access-point |
250/402/407 |
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 |
| 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 |
| 408 |
402 |
250/402/408 |
Firewall |
50 |
A |
0 |
0 |
firewall |
250/402 |
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 |
| 482 |
402 |
250/402/482 |
Fiber Splicing Machine |
80 |
A |
0 |
0 |
fiber-splicing-machine |
250/402 |
none |
| 565 |
402 |
250/402/565 |
Point to Point |
90 |
A |
0 |
0 |
point-to-point |
250/402 |
none |