Query time 0.00903
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.011538698,
"filesort": {
"sort_key": "tmall_categories.is_trash, tmall_categories.position, tmall_category_descriptions.category",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "tmall_categories",
"access_type": "range",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["category_id"],
"loops": 1,
"rows": 2,
"cost": 0.004212994,
"filtered": 100,
"index_condition": "tmall_categories.category_id in (166,254)",
"attached_condition": "(tmall_categories.usergroup_ids = '' or find_in_set(0,tmall_categories.usergroup_ids) or find_in_set(1,tmall_categories.usergroup_ids)) and tmall_categories.`status` = 'A' and tmall_categories.storefront_id in (0,1)"
}
},
{
"table": {
"table_name": "tmall_category_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["category_id", "lang_code"],
"ref": ["tmall.tmall_categories.category_id", "const"],
"loops": 2,
"rows": 1,
"cost": 0.003662852,
"filtered": 100,
"attached_condition": "trigcond(tmall_category_descriptions.lang_code = 'en')"
}
},
{
"table": {
"table_name": "tmall_companies",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "4",
"used_key_parts": ["company_id"],
"ref": ["tmall.tmall_categories.company_id"],
"loops": 2,
"rows": 1,
"cost": 0.003662852,
"filtered": 100
}
}
]
}
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
product_count |
ab__lc_catalog_image_control |
company |
| 166 |
0 |
166 |
Electronics |
10 |
A |
0 |
0 |
0 |
none |
|
| 254 |
166 |
166/254 |
Game consoles |
70 |
A |
0 |
0 |
0 |
none |
|