Query time 0.00240
JSON explain
{
"query_block": {
"select_id": 1,
"cost_info": {
"query_cost": "38.66"
},
"ordering_operation": {
"using_temporary_table": true,
"using_filesort": true,
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "range",
"possible_keys": [
"c_status",
"id_path"
],
"key": "id_path",
"used_key_parts": [
"id_path"
],
"key_length": "767",
"rows_examined_per_scan": 26,
"rows_produced_per_join": 0,
"filtered": "2.00",
"index_condition": "(`webmarco`.`cscart_categories`.`id_path` like '4001/4003/4525/4857/%')",
"cost_info": {
"read_cost": "37.31",
"eval_cost": "0.10",
"prefix_cost": "37.41",
"data_read_per_join": "3K"
},
"used_columns": [
"category_id",
"parent_id",
"id_path",
"company_id",
"usergroup_ids",
"status",
"product_count",
"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`.`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.52",
"eval_cost": "0.10",
"prefix_cost": "38.03",
"data_read_per_join": "2K"
},
"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.52",
"eval_cost": "0.10",
"prefix_cost": "38.66",
"data_read_per_join": "902"
},
"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 |
product_count |
seo_name |
seo_path |
10630 |
4857 |
4001/4003/4525/4857/10630 |
Body Pouder |
0 |
A |
0 |
0 |
1 |
body-pouder |
4001/4003/4525/4857 |
4882 |
4857 |
4001/4003/4525/4857/4882 |
Acne Treatments & Kits |
10 |
A |
0 |
0 |
2 |
acne-treatments-and-kits |
4001/4003/4525/4857 |
5438 |
5401 |
4001/4003/4525/4857/5401/5438 |
Astringents |
10 |
A |
0 |
0 |
0 |
astringents |
4001/4003/4525/4857/5401 |
5332 |
5315 |
4001/4003/4525/4857/5315/5332 |
Lip Balms |
10 |
A |
0 |
0 |
7 |
lip-balms |
4001/4003/4525/4857/5315 |
5477 |
5322 |
4001/4003/4525/4857/5322/5477 |
Self Tanner |
10 |
A |
0 |
0 |
2 |
self-tanner |
4001/4003/4525/4857/5322 |
5531 |
5322 |
4001/4003/4525/4857/5322/5531 |
Tanning Oil & Lotion |
10 |
A |
0 |
0 |
20 |
tanning-oil-and-lotion |
4001/4003/4525/4857/5322 |
5218 |
4857 |
4001/4003/4525/4857/5218 |
Anti-Aging Skin Care Kits |
20 |
A |
0 |
0 |
268 |
anti-aging-skin-care-kits |
4001/4003/4525/4857 |
5346 |
5315 |
4001/4003/4525/4857/5315/5346 |
Medicated Lip Treatments |
20 |
A |
0 |
0 |
1 |
medicated-lip-treatments |
4001/4003/4525/4857/5315 |
5472 |
5401 |
4001/4003/4525/4857/5401/5472 |
Toners |
20 |
A |
0 |
0 |
14 |
toners |
4001/4003/4525/4857/5401 |
5238 |
4857 |
4001/4003/4525/4857/5238 |
Body Oil |
30 |
A |
0 |
0 |
37 |
body-oil |
4001/4003/4525/4857 |
5255 |
4857 |
4001/4003/4525/4857/5255 |
Body Powder |
40 |
A |
0 |
0 |
5 |
body-powder |
4001/4003/4525/4857 |
5268 |
4857 |
4001/4003/4525/4857/5268 |
Compressed Skin Care Mask Sheets |
50 |
A |
0 |
0 |
11 |
compressed-skin-care-mask-sheets |
4001/4003/4525/4857 |
5280 |
4857 |
4001/4003/4525/4857/5280 |
Facial Cleansers |
60 |
A |
0 |
0 |
51 |
facial-cleansers |
4001/4003/4525/4857 |
5292 |
4857 |
4001/4003/4525/4857/5292 |
Facial Cleansing Kits |
70 |
A |
0 |
0 |
14 |
facial-cleansing-kits |
4001/4003/4525/4857 |
5303 |
4857 |
4001/4003/4525/4857/5303 |
Facial Pore Strips |
80 |
A |
0 |
0 |
3 |
facial-pore-strips |
4001/4003/4525/4857 |
5315 |
4857 |
4001/4003/4525/4857/5315 |
Lip Balms & Treatments |
90 |
A |
0 |
0 |
7 |
lip-balms-and-treatments |
4001/4003/4525/4857 |
5322 |
4857 |
4001/4003/4525/4857/5322 |
Tanning Products |
100 |
A |
0 |
0 |
1 |
tanning-products |
4001/4003/4525/4857 |
5366 |
4857 |
4001/4003/4525/4857/5366 |
Lotion & Moisturizer |
110 |
A |
0 |
0 |
226 |
lotion-and-moisturizer |
4001/4003/4525/4857 |
5401 |
4857 |
4001/4003/4525/4857/5401 |
Toners & Astringents |
120 |
A |
0 |
0 |
1 |
toners-and-astringents |
4001/4003/4525/4857 |
5404 |
4857 |
4001/4003/4525/4857/5404 |
Makeup Removers |
130 |
A |
0 |
0 |
13 |
makeup-removers |
4001/4003/4525/4857 |
5416 |
4857 |
4001/4003/4525/4857/5416 |
Petroleum Jelly |
140 |
A |
0 |
0 |
1 |
petroleum-jelly |
4001/4003/4525/4857 |
5427 |
4857 |
4001/4003/4525/4857/5427 |
Skin Care Masks & Peels |
150 |
A |
0 |
0 |
35 |
skin-care-masks-and-peels |
4001/4003/4525/4857 |
5445 |
4857 |
4001/4003/4525/4857/5445 |
Skin Insect Repellent |
160 |
A |
0 |
0 |
5 |
skin-insect-repellent |
4001/4003/4525/4857 |
5454 |
4857 |
4001/4003/4525/4857/5454 |
Sunscreen |
170 |
A |
0 |
0 |
24 |
sunscreen |
4001/4003/4525/4857 |
5485 |
4857 |
4001/4003/4525/4857/5485 |
Wart Removers |
190 |
A |
0 |
0 |
0 |
wart-removers |
4001/4003/4525/4857 |
10171 |
4857 |
4001/4003/4525/4857/10171 |
Cream |
200 |
A |
0 |
0 |
35 |
cream |
4001/4003/4525/4857 |