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": {
"table": {
"table_name": "cscart_categories",
"access_type": "ref",
"possible_keys": ["c_status", "parent", "id_path"],
"key": "parent",
"key_length": "3",
"used_key_parts": ["parent_id"],
"ref": ["const"],
"rowid_filter": {
"range": {
"key": "id_path",
"used_key_parts": ["id_path"]
},
"rows": 5,
"selectivity_pct": 15.625
},
"rows": 5,
"filtered": 15.625,
"attached_condition": "cscart_categories.company_id = 1 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.id_path like '255/%' 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": ["markins_test.cscart_categories.category_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_category_descriptions.lang_code = 'ja')"
},
"table": {
"table_name": "cscart_seo_names",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY", "dispatch"],
"key": "PRIMARY",
"key_length": "210",
"used_key_parts": [
"object_id",
"type",
"dispatch",
"lang_code",
"company_id"
],
"ref": [
"markins_test.cscart_categories.category_id",
"const",
"const",
"const",
"const"
],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_seo_names.`type` = 'c' and cscart_seo_names.dispatch = '' and cscart_seo_names.lang_code = 'ja')"
}
}
}
}
}
Result
category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
storefront_id |
seo_name |
seo_path |
287 |
255 |
255/287 |
Q3i シリーズ トラベラー |
10 |
A |
1 |
1 |
q3itr |
255 |
288 |
255 |
255/288 |
Q3i シリーズ |
20 |
A |
1 |
1 |
q3i |
255 |
289 |
255 |
255/289 |
Q10i シリーズ |
30 |
A |
1 |
1 |
q10i |
255 |
290 |
255 |
255/290 |
Q20i シリーズ |
40 |
A |
1 |
1 |
q20i |
255 |