Query time 0.00008
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": "range",
"possible_keys": [
"PRIMARY",
"c_status",
"parent",
"id_path",
"p_category_id"
],
"key": "id_path",
"key_length": "767",
"used_key_parts": ["id_path"],
"rowid_filter": {
"range": {
"key": "parent",
"used_key_parts": ["parent_id"]
},
"rows": 14,
"selectivity_pct": 0.524344569
},
"rows": 12,
"filtered": 0.524344563,
"index_condition": "cscart_categories.id_path like '22491/22650/22766/%'",
"attached_condition": "cscart_categories.parent_id = 22766 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.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 |
| 22776 |
22766 |
22491/22650/22766/22776 |
Belts & Suspenders |
0 |
A |
0 |
1 |
handmade-belts-suspenders |
22491/22650/22766 |
| 22778 |
22766 |
22491/22650/22766/22778 |
Bouquets & Corsages |
0 |
A |
0 |
1 |
handmade-bouquets-corsages |
22491/22650/22766 |
| 22774 |
22766 |
22491/22650/22766/22774 |
Costume Accessories |
0 |
A |
0 |
1 |
handmade-costume-accessories |
22491/22650/22766 |
| 22768 |
22766 |
22491/22650/22766/22768 |
Face Masks & Coverings |
0 |
A |
0 |
1 |
handmade-face-masks-coverings |
22491/22650/22766 |
| 22777 |
22766 |
22491/22650/22766/22777 |
Gloves & Mittens |
0 |
A |
0 |
1 |
handmade-gloves-mittens |
22491/22650/22766 |
| 22767 |
22766 |
22491/22650/22766/22767 |
Hair Accessories |
0 |
A |
0 |
1 |
handmade-hair-accessories |
22491/22650/22766 |
| 22779 |
22766 |
22491/22650/22766/22779 |
Hand Fans |
0 |
A |
0 |
1 |
handmade-hand-fans |
22491/22650/22766 |
| 22769 |
22766 |
22491/22650/22766/22769 |
Hats & Caps |
0 |
A |
0 |
1 |
handmade-hats-caps |
22491/22650/22766 |
| 22770 |
22766 |
22491/22650/22766/22770 |
Keychains & Lanyards |
0 |
A |
0 |
1 |
handmade-keychains-lanyards |
22491/22650/22766 |
| 22772 |
22766 |
22491/22650/22766/22772 |
Patches & Pins |
0 |
A |
0 |
1 |
handmade-patches-pins |
22491/22650/22766 |
| 22771 |
22766 |
22491/22650/22766/22771 |
Scarves & Wraps |
0 |
A |
0 |
1 |
handmade-scarves-wraps |
22491/22650/22766 |
| 22773 |
22766 |
22491/22650/22766/22773 |
Suit & Tie Accessories |
0 |
A |
0 |
1 |
handmade-suit-tie-accessories |
22491/22650/22766 |
| 22775 |
22766 |
22491/22650/22766/22775 |
Sunglasses & Eyewear |
0 |
A |
0 |
1 |
handmade-sunglasses-eyewear |
22491/22650/22766 |
| 22780 |
22766 |
22491/22650/22766/22780 |
Umbrellas & Rain Accessories |
0 |
A |
0 |
1 |
handmade-umbrellas-rain-accessories |
22491/22650/22766 |