Query time 0.00277
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 '521/%')",
"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 |
| 539 |
538 |
521/538/539 |
NVR |
10 |
A |
0 |
0 |
nvr-ar |
521/538 |
none |
| 535 |
522 |
521/522/535 |
إسطوانية |
10 |
A |
0 |
0 |
bullet-ar |
521/522 |
none |
| 546 |
545 |
521/545/546 |
كابلات الإيثرنت |
10 |
A |
0 |
0 |
ethernet-cables-ar |
521/545 |
none |
| 522 |
521 |
521/522 |
كاميرا CCTV |
10 |
A |
0 |
0 |
cctv-camera-ar |
521 |
none |
| 588 |
534 |
521/534/588 |
مقبض باب ذكي |
10 |
A |
0 |
0 |
smart-door-handle-ar |
521/534 |
none |
| 540 |
538 |
521/538/540 |
DVR |
20 |
A |
0 |
0 |
dvr-ar |
521/538 |
none |
| 590 |
534 |
521/534/590 |
أجهزة الدخول |
20 |
A |
0 |
0 |
access-devices-ar |
521/534 |
none |
| 536 |
522 |
521/522/536 |
القبة |
20 |
A |
0 |
0 |
dome-ar |
521/522 |
none |
| 534 |
521 |
521/534 |
تحكم الدخول |
20 |
A |
0 |
0 |
access-control-ar |
521 |
none |
| 547 |
545 |
521/545/547 |
كابلات كوكسيل |
20 |
A |
0 |
0 |
coaxial-cables-ar |
521/545 |
none |
| 541 |
538 |
521/538/541 |
CCTV تخزين |
30 |
A |
0 |
0 |
cctv-storage-ar |
521/538 |
none |
| 538 |
521 |
521/538 |
CCTV مسجلات |
30 |
A |
0 |
0 |
cctv-recorders-ar |
521 |
none |
| 571 |
545 |
521/545/571 |
POE Adapters |
30 |
A |
0 |
0 |
poe-adapters-ar |
521/545 |
none |
| 591 |
534 |
521/534/591 |
نظام إنتركم بالفيديو |
30 |
A |
0 |
0 |
video-intercom-ar |
521/534 |
none |
| 545 |
521 |
521/545 |
كابلات الشبكة |
40 |
A |
0 |
0 |
network-cables-ar |
521 |
none |
| 537 |
522 |
521/522/537 |
PTZ |
120 |
A |
0 |
0 |
ptz-ar |
521/522 |
none |