{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "cscart_tags.tag",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "cscart_tag_links",
"access_type": "ref",
"possible_keys": ["PRIMARY", "tag_id", "ids"],
"key": "PRIMARY",
"key_length": "6",
"used_key_parts": ["object_type", "object_id"],
"ref": ["const", "const"],
"rows": 7,
"filtered": 100,
"attached_condition": "cscart_tag_links.object_type <=> 'P' and cscart_tag_links.object_id <=> 310 and cscart_tag_links.object_type = 'P'",
"using_index": true
}
},
{
"table": {
"table_name": "cscart_tags",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["tag_id"],
"ref": ["demov2026.cscart_tag_links.tag_id"],
"rows": 1,
"filtered": 100,
"attached_condition": "cscart_tags.`status` = 'A'"
}
}
]
}
}
}
}
| tag_id | object_id | object_type | tag | status | popularity |
|---|---|---|---|---|---|
| 11 | 310 | P | cà phê | A | 1 |
| 62 | 310 | P | cà phê arabica | A | 1 |
| 58 | 310 | P | cà phê arabica pha máy cho quán | A | 1 |
| 61 | 310 | P | cà phê espresso cho quán | A | 1 |
| 60 | 310 | P | cà phê sỉ cho quán | A | 1 |
| 59 | 310 | P | cà phê specialty horeca | A | 1 |
| 14 | 310 | P | coffee | A | 1 |