Query time 0.00006
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": 21,
"filtered": 0.749063671,
"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 '20163/20164/%' 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 |
| 20165 |
20164 |
20163/20164/20165 |
Bath Caddies |
0 |
A |
0 |
1 |
bath-caddies |
20163/20164 |
| 20166 |
20164 |
20163/20164/20166 |
Bath Mats & Rugs |
0 |
A |
0 |
1 |
bath-mats-rugs |
20163/20164 |
| 20167 |
20164 |
20163/20164/20167 |
Bath Pillows |
0 |
A |
0 |
1 |
bath-pillows |
20163/20164 |
| 20168 |
20164 |
20163/20164/20168 |
Bathroom Accessory Mounts |
0 |
A |
0 |
1 |
bathroom-accessory-mounts |
20163/20164 |
| 20169 |
20164 |
20163/20164/20169 |
Bathroom Accessory Sets |
0 |
A |
0 |
1 |
bathroom-accessory-sets |
20163/20164 |
| 20170 |
20164 |
20163/20164/20170 |
Facial Tissue Holders |
0 |
A |
0 |
1 |
facial-tissue-holders |
20163/20164 |
| 20171 |
20164 |
20163/20164/20171 |
Hand Dryer Accessories |
0 |
A |
0 |
1 |
hand-dryer-accessories |
20163/20164 |
| 20172 |
20164 |
20163/20164/20172 |
Hand Dryers |
0 |
A |
0 |
1 |
hand-dryers |
20163/20164 |
| 20173 |
20164 |
20163/20164/20173 |
Medicine Cabinets |
0 |
A |
0 |
1 |
medicine-cabinets |
20163/20164 |
| 20174 |
20164 |
20163/20164/20174 |
Robe Hooks |
0 |
A |
0 |
1 |
robe-hooks |
20163/20164 |
| 20175 |
20164 |
20163/20164/20175 |
Safety Grab Bars |
0 |
A |
0 |
1 |
safety-grab-bars |
20163/20164 |
| 20176 |
20164 |
20163/20164/20176 |
Shower Curtain Rings |
0 |
A |
0 |
1 |
shower-curtain-rings |
20163/20164 |
| 20177 |
20164 |
20163/20164/20177 |
Shower Curtains |
0 |
A |
0 |
1 |
shower-curtains |
20163/20164 |
| 20178 |
20164 |
20163/20164/20178 |
Shower Rods |
0 |
A |
0 |
1 |
shower-rods |
20163/20164 |
| 20179 |
20164 |
20163/20164/20179 |
Soap & Lotion Dispensers |
0 |
A |
0 |
1 |
soap-lotion-dispensers |
20163/20164 |
| 20180 |
20164 |
20163/20164/20180 |
Soap Dishes & Holders |
0 |
A |
0 |
1 |
soap-dishes-holders |
20163/20164 |
| 20181 |
20164 |
20163/20164/20181 |
Toilet Brush Replacement Heads |
0 |
A |
0 |
1 |
toilet-brush-replacement-heads |
20163/20164 |
| 20182 |
20164 |
20163/20164/20182 |
Toilet Brushes & Holders |
0 |
A |
0 |
1 |
toilet-brushes-holders |
20163/20164 |
| 20183 |
20164 |
20163/20164/20183 |
Toilet Paper Holders |
0 |
A |
0 |
1 |
toilet-paper-holders |
20163/20164 |
| 20184 |
20164 |
20163/20164/20184 |
Toothbrush Holders |
0 |
A |
0 |
1 |
toothbrush-holders |
20163/20164 |
| 20185 |
20164 |
20163/20164/20185 |
Towel Racks & Holders |
0 |
A |
0 |
1 |
towel-racks-holders |
20163/20164 |