Query time 0.00214
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "26.90"
},
"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",
"p_category_id"
],
"key": "PRIMARY",
"used_key_parts": [
"category_id"
],
"key_length": "3",
"rows_examined_per_scan": 23,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`category_id` in (174,372,384,423,453,460,466,467,474,475,554,556,566,572,573,574,575,578,579,587,597,598,655)) and (`softwarepirmam_hewadelivard_cscart_4`.`cscart_categories`.`category_id` <> 264))",
"cost_info": {
"read_cost": "16.06",
"eval_cost": "0.05",
"prefix_cost": "16.11",
"data_read_per_join": "1K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"storefront_id",
"usergroup_ids",
"status",
"product_count",
"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`.`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.12",
"eval_cost": "0.05",
"prefix_cost": "16.27",
"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": 30,
"filtered": "100.00",
"cost_info": {
"read_cost": "7.59",
"eval_cost": "3.04",
"prefix_cost": "26.90",
"data_read_per_join": "51K"
},
"used_columns": [
"name",
"object_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
product_count |
seo_name |
seo_path |
ab__lc_catalog_image_control |
| 467 |
466 |
372/466/467 |
Air Fryers |
10 |
A |
0 |
0 |
38 |
air-fryers |
372/466 |
none |
| 556 |
552 |
372/552/556 |
Coffee Machine |
10 |
A |
0 |
0 |
118 |
coffee-machine |
372/552 |
none |
| 554 |
553 |
250/553/554 |
Coffee Machine |
10 |
A |
0 |
0 |
110 |
coffee-machine |
250/553 |
none |
| 474 |
473 |
577/473/474 |
Hair Dryer |
10 |
A |
0 |
0 |
50 |
hair-dryer |
577/473 |
none |
| 453 |
372 |
372/453 |
TV & Theatre |
10 |
A |
0 |
0 |
140 |
tv-and-theatre |
372 |
none |
| 460 |
384 |
372/384/460 |
Cordless Vacuums |
20 |
A |
0 |
0 |
52 |
cordless-vacuums |
372/384 |
none |
| 573 |
466 |
372/466/573 |
Grillers & Toasters |
20 |
A |
0 |
0 |
88 |
grillers-and-toasters |
372/466 |
none |
| 475 |
473 |
577/473/475 |
Hair Straightener |
20 |
A |
0 |
0 |
43 |
hair-straightener |
577/473 |
none |
| 598 |
384 |
372/384/598 |
Handheld Vacuums |
30 |
A |
0 |
0 |
8 |
handheld-vacuums |
372/384 |
none |
| 372 |
0 |
372 |
Home Appliance |
30 |
A |
0 |
0 |
784 |
home-appliance |
|
none |
| 574 |
466 |
372/466/574 |
Mixers |
30 |
A |
0 |
0 |
144 |
mixers |
372/466 |
none |
| 384 |
372 |
372/384 |
Vacuums |
30 |
A |
0 |
0 |
48 |
vacuums |
372 |
none |
| 575 |
466 |
372/466/575 |
Kettle |
40 |
A |
0 |
0 |
61 |
kettle |
372/466 |
none |
| 572 |
372 |
372/572 |
Major Kitchen Appliances |
50 |
A |
0 |
0 |
54 |
major-kitchen-appliances |
372 |
none |
| 174 |
166 |
166/174 |
TV & Theatre |
50 |
A |
0 |
0 |
140 |
tv-and-video |
166 |
none |
| 597 |
566 |
372/566/597 |
Heaters |
60 |
A |
0 |
0 |
37 |
heaters |
372/566 |
none |
| 579 |
466 |
372/466/579 |
Microwave & Ovens |
60 |
A |
0 |
0 |
44 |
microwave-and-ovens |
372/466 |
none |
| 466 |
372 |
372/466 |
Small Kitchen Appliances |
60 |
A |
0 |
0 |
243 |
kitchen-appliances |
372 |
none |
| 578 |
577 |
577/578 |
Trimmers |
70 |
A |
0 |
0 |
75 |
trimmers |
577 |
none |
| 566 |
372 |
372/566 |
Coolers & Heaters |
90 |
A |
0 |
0 |
39 |
coolers-and-heaters |
372 |
none |
| 655 |
466 |
372/466/655 |
Ice Maker |
90 |
A |
0 |
0 |
5 |
ice-maker |
372/466 |
none |
| 587 |
372 |
372/587 |
Ironing |
100 |
A |
0 |
0 |
53 |
ironing |
372 |
none |
| 423 |
166 |
166/423 |
Accessories |
150 |
A |
0 |
0 |
731 |
accessories |
166 |
none |