Query time 0.00085
JSON explain
{
"query_block": {
"select_id": 1,
"cost": 0.00774709,
"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": "770",
"used_key_parts": ["id_path", "category_id"],
"loops": 1,
"rows": 1,
"cost": 0.00424968,
"filtered": 81.8181839,
"index_condition": "cscart_categories.id_path like '460/461/%' and cscart_categories.category_id <> 264 and cscart_categories.category_id in (167,165,166,168,169,170,171,172,177,178,179,181,182,174,193,196,197,198,199,200,201,203,204,208,209,210,211,212,213,214,215,217,218,219,220,221,222,223,224,225,227,228,229,230,231,232,241,242,243,244,269,270,271,287,288,289,304,305,450,454,455,456,457,458,459,460,461,475,478,479,481,498,500,501,527,528,529,530,535,536,537)",
"attached_condition": "cscart_categories.parent_id = 461 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.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": ["u985510652_ecartify.cscart_categories.category_id", "const"],
"loops": 1,
"rows": 1,
"cost": 0.00171364,
"filtered": 100,
"attached_condition": "trigcond(cscart_category_descriptions.lang_code = 'zh')"
}
},
{
"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": [
"u985510652_ecartify.cscart_categories.category_id",
"const",
"const",
"const"
],
"loops": 1,
"rows": 1,
"cost": 0.00178377,
"filtered": 100,
"attached_condition": "trigcond(cscart_seo_names.`type` = 'c' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'en')"
}
}
]
}
}
}
}