Query time 0.00086
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "cscart_categories.is_trash, cscart_categories.position, cscart_category_descriptions.category",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "cscart_categories",
"access_type": "ALL",
"possible_keys": ["c_status"],
"rows": 18,
"filtered": 100,
"attached_condition": "cscart_categories.company_id = 1 and (cscart_categories.usergroup_ids = '' or find_in_set(0,cscart_categories.usergroup_ids) or find_in_set(1,cscart_categories.usergroup_ids)) and cscart_categories.`status` = 'A' and cscart_categories.`level` <= 3 and cscart_categories.storefront_id in (0,1)"
}
},
{
"table": {
"table_name": "cscart_category_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["category_id", "lang_code"],
"ref": ["u358358020_main.cscart_categories.category_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_category_descriptions.lang_code = 'en')"
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "dispatch"],
"key": "PRIMARY",
"key_length": "210",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code",
"company_id"
],
"ref": [
"u358358020_main.cscart_categories.category_id",
"const",
"const",
"const",
"const"
],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_seo_names.`type` = 'c' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'en')"
}
}
]
}
}
}
}
Result
category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
280 |
279 |
278/279/280 |
Apple |
10 |
A |
1 |
1 |
apple |
278/279 |
271 |
268 |
268/271 |
Atta |
10 |
A |
1 |
1 |
atta |
268 |
264 |
0 |
264 |
Cold Drinks & Juices |
10 |
A |
1 |
1 |
cold-drinks-juices |
|
276 |
264 |
264/276 |
Soft Drinks |
10 |
A |
1 |
1 |
soft-drinks |
264 |
281 |
279 |
278/279/281 |
Banana |
20 |
A |
1 |
1 |
banana |
278/279 |
272 |
268 |
268/272 |
Rice |
20 |
A |
1 |
1 |
rice |
268 |
265 |
0 |
265 |
Snacks & Munchies |
20 |
A |
1 |
1 |
snacks-munchies |
|
266 |
0 |
266 |
Breakfast & Instant Food |
30 |
A |
1 |
1 |
breakfast-instant-food |
|
273 |
268 |
268/273 |
Dal |
30 |
A |
1 |
1 |
dal |
268 |
274 |
268 |
268/274 |
Besan Sooji & Maida |
40 |
A |
1 |
1 |
besan-sooji-maida |
268 |
267 |
0 |
267 |
Dairy & Bread |
40 |
A |
1 |
1 |
dairy-bread |
|
268 |
0 |
268 |
Atta Rice & Dal |
50 |
A |
1 |
1 |
atta-rice-dal |
|
275 |
268 |
268/275 |
Rajma Chole & Others |
50 |
A |
1 |
1 |
rajma-chole-others |
268 |
269 |
0 |
269 |
Masala Oils & More |
60 |
A |
1 |
1 |
masala-oils-more |
|
270 |
0 |
270 |
Bakery & Biscuits |
70 |
A |
1 |
1 |
bakery-biscuits |
|