{
"query_block": {
"select_id": 1,
"filesort": {
"sort_key": "cscart_product_feature_variants.position, cscart_product_feature_variant_descriptions.variant",
"temporary_table": {
"nested_loop": [
{
"table": {
"table_name": "cscart_product_feature_variants",
"access_type": "range",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "3",
"used_key_parts": ["variant_id"],
"rows": 5,
"filtered": 100,
"index_condition": "cscart_product_feature_variants.variant_id in (80496,80500,80497,80498,80499)"
}
},
{
"table": {
"table_name": "cscart_product_feature_variant_descriptions",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["variant_id", "lang_code"],
"ref": ["dev_db.cscart_product_feature_variants.variant_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(cscart_product_feature_variant_descriptions.lang_code = 'vi')"
}
}
]
}
}
}
}
variant_id | position | color | variant |
---|---|---|---|
80496 | 10 | #ffffff | Hồ Chí Minh |
80497 | 20 | #ffffff | Hà Nội |
80498 | 30 | #ffffff | Đà Nẵng |
80499 | 40 | #ffffff | Cần Thơ |
80500 | 50 | #ffffff | Khác |