Query time 0.00245
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "24.12"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ref",
"possible_keys": [
"c_status",
"parent",
"id_path"
],
"key": "parent",
"used_key_parts": [
"parent_id"
],
"key_length": "3",
"ref": [
"const"
],
"rows_examined_per_scan": 20,
"rows_produced_per_join": 0,
"filtered": "0.25",
"cost_info": {
"read_cost": "20.00",
"eval_cost": "0.01",
"prefix_cost": "24.00",
"data_read_per_join": "303"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"position",
"is_trash",
"storefront_id"
],
"attached_condition": "(((`webmarco`.`cscart_categories`.`usergroup_ids` = '') or find_in_set(0,`webmarco`.`cscart_categories`.`usergroup_ids`) or find_in_set(1,`webmarco`.`cscart_categories`.`usergroup_ids`)) and (`webmarco`.`cscart_categories`.`status` = 'A') and (`webmarco`.`cscart_categories`.`id_path` like '4001/4003/4525/4857/%') and (`webmarco`.`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": [
"webmarco.cscart_categories.category_id",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.05",
"eval_cost": "0.01",
"prefix_cost": "24.06",
"data_read_per_join": "208"
},
"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": [
"webmarco.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows_examined_per_scan": 1,
"rows_produced_per_join": 0,
"filtered": "100.00",
"cost_info": {
"read_cost": "0.05",
"eval_cost": "0.01",
"prefix_cost": "24.12",
"data_read_per_join": "86"
},
"used_columns": [
"name",
"object_id",
"company_id",
"type",
"dispatch",
"path",
"lang_code"
]
}
}
]
}
}
}
Result
category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
10630 |
4857 |
4001/4003/4525/4857/10630 |
Body Pouder |
0 |
A |
0 |
0 |
body-pouder |
4001/4003/4525/4857 |
4882 |
4857 |
4001/4003/4525/4857/4882 |
Acne Treatments & Kits |
10 |
A |
0 |
0 |
acne-treatments-and-kits |
4001/4003/4525/4857 |
5218 |
4857 |
4001/4003/4525/4857/5218 |
Anti-Aging Skin Care Kits |
20 |
A |
0 |
0 |
anti-aging-skin-care-kits |
4001/4003/4525/4857 |
5238 |
4857 |
4001/4003/4525/4857/5238 |
Body Oil |
30 |
A |
0 |
0 |
body-oil |
4001/4003/4525/4857 |
5255 |
4857 |
4001/4003/4525/4857/5255 |
Body Powder |
40 |
A |
0 |
0 |
body-powder |
4001/4003/4525/4857 |
5268 |
4857 |
4001/4003/4525/4857/5268 |
Compressed Skin Care Mask Sheets |
50 |
A |
0 |
0 |
compressed-skin-care-mask-sheets |
4001/4003/4525/4857 |
5280 |
4857 |
4001/4003/4525/4857/5280 |
Facial Cleansers |
60 |
A |
0 |
0 |
facial-cleansers |
4001/4003/4525/4857 |
5292 |
4857 |
4001/4003/4525/4857/5292 |
Facial Cleansing Kits |
70 |
A |
0 |
0 |
facial-cleansing-kits |
4001/4003/4525/4857 |
5303 |
4857 |
4001/4003/4525/4857/5303 |
Facial Pore Strips |
80 |
A |
0 |
0 |
facial-pore-strips |
4001/4003/4525/4857 |
5315 |
4857 |
4001/4003/4525/4857/5315 |
Lip Balms & Treatments |
90 |
A |
0 |
0 |
lip-balms-and-treatments |
4001/4003/4525/4857 |
5322 |
4857 |
4001/4003/4525/4857/5322 |
Tanning Products |
100 |
A |
0 |
0 |
tanning-products |
4001/4003/4525/4857 |
5366 |
4857 |
4001/4003/4525/4857/5366 |
Lotion & Moisturizer |
110 |
A |
0 |
0 |
lotion-and-moisturizer |
4001/4003/4525/4857 |
5401 |
4857 |
4001/4003/4525/4857/5401 |
Toners & Astringents |
120 |
A |
0 |
0 |
toners-and-astringents |
4001/4003/4525/4857 |
5404 |
4857 |
4001/4003/4525/4857/5404 |
Makeup Removers |
130 |
A |
0 |
0 |
makeup-removers |
4001/4003/4525/4857 |
5416 |
4857 |
4001/4003/4525/4857/5416 |
Petroleum Jelly |
140 |
A |
0 |
0 |
petroleum-jelly |
4001/4003/4525/4857 |
5427 |
4857 |
4001/4003/4525/4857/5427 |
Skin Care Masks & Peels |
150 |
A |
0 |
0 |
skin-care-masks-and-peels |
4001/4003/4525/4857 |
5445 |
4857 |
4001/4003/4525/4857/5445 |
Skin Insect Repellent |
160 |
A |
0 |
0 |
skin-insect-repellent |
4001/4003/4525/4857 |
5454 |
4857 |
4001/4003/4525/4857/5454 |
Sunscreen |
170 |
A |
0 |
0 |
sunscreen |
4001/4003/4525/4857 |
5485 |
4857 |
4001/4003/4525/4857/5485 |
Wart Removers |
190 |
A |
0 |
0 |
wart-removers |
4001/4003/4525/4857 |
10171 |
4857 |
4001/4003/4525/4857/10171 |
Cream |
200 |
A |
0 |
0 |
cream |
4001/4003/4525/4857 |