Query time 0.00137
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "9.01"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ref",
"possible_keys": [
"PRIMARY",
"c_status",
"parent",
"p_category_id"
],
"key": "parent",
"used_key_parts": [
"parent_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 11,
"rows_produced_per_join": 0,
"filtered": "2.00",
"cost_info": {
"read_cost": "2.75",
"eval_cost": "0.02",
"prefix_cost": "3.85",
"data_read_per_join": "705"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"storefront_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"ab__fn_category_status",
"ab__fn_label_color",
"ab__fn_label_background",
"ab__fn_use_origin_image",
"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`.`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.06",
"eval_cost": "0.02",
"prefix_cost": "3.93",
"data_read_per_join": "749"
},
"used_columns": [
"category_id",
"lang_code",
"category",
"ab__fn_label_text",
"ab__fn_label_show"
]
}
},
{
"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": 14,
"filtered": "100.00",
"cost_info": {
"read_cost": "3.63",
"eval_cost": "1.45",
"prefix_cost": "9.01",
"data_read_per_join": "24K"
},
"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 |
ab__fn_category_status |
ab__fn_label_color |
ab__fn_label_background |
ab__fn_use_origin_image |
ab__fn_label_text |
ab__fn_label_show |
| 166 |
0 |
166 |
Electronics |
10 |
A |
0 |
0 |
electronics |
|
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 245 |
0 |
245 |
Gaming |
20 |
A |
0 |
0 |
video-games |
|
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 372 |
0 |
372 |
Home Appliance |
30 |
A |
0 |
0 |
home-appliance |
|
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 250 |
0 |
250 |
Office Supplies |
40 |
A |
0 |
0 |
office-supplies |
|
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 219 |
0 |
219 |
Books |
50 |
A |
0 |
0 |
books |
|
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 521 |
0 |
521 |
CCTV & Access Control |
100 |
A |
0 |
0 |
cctv-and-access-control |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 228 |
0 |
228 |
Music Instruments |
110 |
A |
0 |
0 |
music-instruments |
|
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 558 |
0 |
558 |
Games & Toys |
120 |
A |
0 |
0 |
games-and-toys |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 577 |
0 |
577 |
Beauty & Self Care |
130 |
A |
0 |
0 |
beauty-and-self-care |
|
none |
N |
#ffffff |
#222222 |
N |
|
N |
| 658 |
0 |
658 |
Bags |
140 |
A |
0 |
0 |
bags |
|
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 661 |
0 |
661 |
Physical Watches |
150 |
A |
0 |
0 |
physical-watches |
|
none |
Y |
#ffffff |
#333333 |
N |
|
Y |
| 664 |
0 |
664 |
Glasses |
160 |
A |
0 |
0 |
glasses |
|
none |
Y |
#ffffff |
#333333 |
N |
|
Y |