{
"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": 8,
"filtered": 100,
"attached_condition": "cscart_tag_links.object_type <=> 'P' and cscart_tag_links.object_id <=> 313 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 | 313 | P | cà phê | A | 1 |
| 68 | 313 | P | cà phê hạt | A | 1 |
| 67 | 313 | P | cà phê hạt cho quán | A | 1 |
| 64 | 313 | P | cà phê pha máy | A | 1 |
| 65 | 313 | P | cà phê pha máy đắng đậm | A | 1 |
| 30 | 313 | P | cà phê robusta | A | 1 |
| 63 | 313 | P | cà phê robusta cho quán | A | 1 |
| 14 | 313 | P | coffee | A | 1 |