Query time 0.00050
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.07230076,
"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": ["PRIMARY", "c_status", "parent", "p_category_id"],
"loops": 1,
"rows": 99,
"cost": 0.0269918,
"filtered": 16.16161537,
"attached_condition": "(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.category_id <> 264 and cscart_categories.parent_id <> 264 and cscart_categories.storefront_id in (0,1) and cscart_categories.category_id in (166,177,179,223,224,287,288,289,304,305,219,495,498,203,500,501)"
}
},
{
"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": ["u985510652_ecartify.cscart_categories.category_id", "const"],
"loops": 16,
"rows": 1,
"cost": 0.01676864,
"filtered": 100,
"attached_condition": "trigcond(cscart_category_descriptions.lang_code = 'en')"
}
},
{
"table": {
"table_name": "cscart_seo_names",
"access_type": "ref",
"possible_keys": ["PRIMARY", "dispatch"],
"key": "PRIMARY",
"key_length": "206",
"used_key_parts": ["object_id", "type", "dispatch", "lang_code"],
"ref": [
"u985510652_ecartify.cscart_categories.category_id",
"const",
"const",
"const"
],
"loops": 16,
"rows": 1,
"cost": 0.02854032,
"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 |
| 501 |
0 |
501 |
Beauty & Health |
0 |
A |
0 |
0 |
beauty-and-health |
|
| 289 |
288 |
287/288/289 |
DRESSES |
0 |
A |
0 |
0 |
dresses |
287/288 |
| 495 |
219 |
219/495 |
Fiction |
0 |
A |
0 |
0 |
fiction |
219 |
| 500 |
203 |
203/500 |
Fitness |
0 |
A |
0 |
0 |
fitness |
203 |
| 304 |
287 |
287/304 |
Men |
0 |
A |
0 |
0 |
men |
287 |
| 498 |
219 |
219/498 |
Non-Fiction |
0 |
A |
0 |
0 |
non-fiction |
219 |
| 305 |
304 |
287/304/305 |
T-Shirts |
0 |
A |
0 |
0 |
t-shirts |
287/304 |
| 288 |
287 |
287/288 |
Women |
0 |
A |
0 |
0 |
women |
287 |
| 287 |
0 |
287 |
Fashion |
4 |
A |
0 |
0 |
fashion |
|
| 166 |
0 |
166 |
Best Electronics |
5 |
A |
0 |
0 |
best-electronics-tech |
|
| 223 |
0 |
223 |
Apparel |
6 |
A |
0 |
0 |
apparel |
|
| 224 |
223 |
223/224 |
Men's Clothing |
10 |
A |
0 |
0 |
mens-clothing |
223 |
| 179 |
177 |
166/177/179 |
MP3 Players |
30 |
A |
0 |
0 |
mp3-players |
166/177 |
| 177 |
166 |
166/177 |
MP3 Players |
50 |
A |
0 |
0 |
mp3-players |
166 |