Query time 0.00090
JSON explain
{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "cscart_categories.is_trash, cscart_categories.position, cscart_category_descriptions.category",
"temporary_table": {
"table": {
"table_name": "cscart_categories",
"access_type": "ref",
"possible_keys": ["c_status", "parent", "id_path"],
"key": "parent",
"key_length": "3",
"used_key_parts": ["parent_id"],
"ref": ["const"],
"rowid_filter": {
"range": {
"key": "id_path",
"used_key_parts": ["id_path"]
},
"rows": 13,
"selectivity_pct": 2.416356877
},
"rows": 13,
"filtered": 2.416356802,
"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.id_path like '4/36/%' 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": ["staging2_wesave_com.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": "ref",
"possible_keys": ["PRIMARY", "dispatch"],
"key": "PRIMARY",
"key_length": "206",
"used_key_parts": ["object_id", "type", "dispatch", "lang_code"],
"ref": [
"staging2_wesave_com.cscart_categories.category_id",
"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 |
262 |
36 |
4/36/262 |
Backpacks |
0 |
A |
0 |
0 |
backpacks |
4/36 |
263 |
36 |
4/36/263 |
Cosmetic & Toiletry Bags |
0 |
A |
0 |
0 |
consoles |
166/254 |
264 |
36 |
4/36/264 |
Diaper Bags |
0 |
A |
0 |
0 |
diaper-bags |
4/36 |
265 |
36 |
4/36/265 |
Duffle Bags |
0 |
A |
0 |
0 |
home-appliance |
2779 |
266 |
36 |
4/36/266 |
Fanny Packs |
0 |
A |
0 |
0 |
headphones |
166 |
267 |
36 |
4/36/267 |
Luggage Straps |
0 |
A |
0 |
0 |
virtual-reality |
166 |
268 |
36 |
4/36/268 |
Luggage Tags |
0 |
A |
0 |
0 |
wireless |
166 |
269 |
36 |
4/36/269 |
Messenger Bags |
0 |
A |
0 |
0 |
speakers |
166/268 |
270 |
36 |
4/36/270 |
Packing Organizers |
0 |
A |
0 |
0 |
health |
2774 |
271 |
36 |
4/36/271 |
Suitcases |
0 |
A |
0 |
0 |
immune-support |
2774 |
272 |
36 |
4/36/272 |
Train Cases |
0 |
A |
0 |
0 |
weight-loss |
2774 |
273 |
36 |
4/36/273 |
Travel Pouches |
0 |
A |
0 |
0 |
travel-pouches |
4/36 |
274 |
36 |
4/36/274 |
Umbrellas |
0 |
A |
0 |
0 |
umbrellas |
4/36 |