Query time 0.00007
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": "ref",
"possible_keys": [
"PRIMARY",
"c_status",
"parent",
"id_path",
"p_category_id"
],
"key": "parent",
"key_length": "3",
"used_key_parts": ["parent_id"],
"ref": ["const"],
"rows": 14,
"filtered": 2.359550476,
"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 '22491/23094/%' and cscart_categories.category_id <> 1 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": ["ebonza_cscart_test.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": [
"ebonza_cscart_test.cscart_categories.category_id",
"const",
"const",
"const"
],
"rows": 16,
"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 |
| 23161 |
23094 |
22491/23094/23161 |
Beekeeping |
0 |
A |
0 |
1 |
handmade-beekeeping |
22491/23094 |
| 23135 |
23094 |
22491/23094/23135 |
Pet Bedding |
0 |
A |
0 |
1 |
handmade-pet-bedding |
22491/23094 |
| 23140 |
23094 |
22491/23094/23140 |
Pet Carriers & Houses |
0 |
A |
0 |
1 |
handmade-pet-carriers-houses |
22491/23094 |
| 23095 |
23094 |
22491/23094/23095 |
Pet Clothing, Accessories & Shoes |
0 |
A |
0 |
1 |
handmade-pet-clothing-accessories-shoes |
22491/23094 |
| 23110 |
23094 |
22491/23094/23110 |
Pet Collars & Leashes |
0 |
A |
0 |
1 |
handmade-pet-collars-leashes |
22491/23094 |
| 23122 |
23094 |
22491/23094/23122 |
Pet Feeding |
0 |
A |
0 |
1 |
handmade-pet-feeding |
22491/23094 |
| 23128 |
23094 |
22491/23094/23128 |
Pet Furniture |
0 |
A |
0 |
1 |
handmade-pet-furniture |
22491/23094 |
| 23162 |
23094 |
22491/23094/23162 |
Pet Gates & Fences |
0 |
A |
0 |
1 |
handmade-pet-gates-fences |
22491/23094 |
| 23149 |
23094 |
22491/23094/23149 |
Pet Health & Wellness |
0 |
A |
0 |
1 |
handmade-pet-health-wellness |
22491/23094 |
| 23156 |
23094 |
22491/23094/23156 |
Pet Storage |
0 |
A |
0 |
1 |
handmade-pet-storage |
22491/23094 |
| 23117 |
23094 |
22491/23094/23117 |
Pet Toys |
0 |
A |
0 |
1 |
handmade-pet-toys |
22491/23094 |
| 23116 |
23094 |
22491/23094/23116 |
Riding & Farm Animals Accessories |
0 |
A |
0 |
1 |
handmade-riding-farm-animals-accessories |
22491/23094 |
| 23157 |
23094 |
22491/23094/23157 |
Training |
0 |
A |
0 |
1 |
handmade-training |
22491/23094 |
| 23113 |
23094 |
22491/23094/23113 |
Urns & Memorials |
0 |
A |
0 |
1 |
handmade-urns-memorials |
22491/23094 |