Query time 0.00092
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": "ALL",
"possible_keys": ["PRIMARY", "c_status", "p_category_id"],
"rows": 54,
"filtered": 22.22222137,
"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.category_id in (79,80,81,82,83,84,85,86,87,88,89,90)"
},
"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": ["vietpom_dev.cscart_categories.category_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_category_descriptions.lang_code = 'vi')"
},
"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": [
"vietpom_dev.cscart_categories.category_id",
"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 = 'vi')"
}
}
}
}
}
Result
| category_id |
parent_id |
id_path |
category |
position |
status |
company_id |
product_count |
seo_name |
seo_path |
| 79 |
0 |
79 |
Antiseptics |
20 |
A |
0 |
0 |
top-category |
|
| 80 |
0 |
80 |
Vitamin và TPCN |
30 |
A |
0 |
0 |
vitamin-va-tpcn |
|
| 81 |
0 |
81 |
Hỗ trợ về hô hấp |
40 |
A |
0 |
0 |
h-tr-v-ho-hp |
|
| 82 |
0 |
82 |
Điều trị ung thư |
50 |
A |
0 |
0 |
iu-tr-ung-th |
|
| 83 |
0 |
83 |
Tiêu hoá, dạ dày |
60 |
A |
0 |
0 |
tieu-hoa-d-day |
|
| 84 |
0 |
84 |
Thuốc và kháng sinh |
70 |
A |
0 |
0 |
thuc-va-khang-sinh |
|
| 85 |
0 |
85 |
Điều trị xương khớp |
80 |
A |
0 |
0 |
iu-tr-xng-khp |
|
| 86 |
0 |
86 |
Hỗ trợ tim mạch |
90 |
A |
0 |
0 |
h-tr-tim-mch |
|
| 87 |
0 |
87 |
Nha khoa |
100 |
A |
0 |
0 |
nha-khoa |
|
| 88 |
0 |
88 |
Chăm sóc da |
110 |
A |
0 |
53 |
chm-soc-da |
|
| 89 |
0 |
89 |
Hỗ trợ phụ khoa |
120 |
A |
0 |
0 |
h-tr-ph-khoa |
|
| 90 |
0 |
90 |
Não và thần kinh |
130 |
A |
0 |
0 |
nao-va-thn-kinh |
|