{
"query_block": {
"select_id": 1,
"nested_loop": [
{
"read_sorted_file": {
"filesort": {
"sort_key": "a.position, a.variant_id",
"table": {
"table_name": "a",
"access_type": "range",
"possible_keys": ["status", "option_id", "option_id_2"],
"key": "option_id",
"key_length": "6",
"used_key_parts": ["option_id", "status"],
"rows": 10,
"filtered": 100,
"index_condition": "a.option_id in (654,653,652) and a.`status` = 'A'"
}
}
}
},
{
"table": {
"table_name": "b",
"access_type": "eq_ref",
"possible_keys": ["PRIMARY"],
"key": "PRIMARY",
"key_length": "9",
"used_key_parts": ["variant_id", "lang_code"],
"ref": ["dev_db.a.variant_id", "const"],
"rows": 1,
"filtered": 100,
"attached_condition": "trigcond(b.lang_code = 'vi')"
}
}
]
}
}
variant_name | variant_id | option_id | position | modifier | modifier_type | weight_modifier | weight_modifier_type | point_modifier | point_modifier_type | status |
---|---|---|---|---|---|---|---|---|---|---|
38mm / 40mm (Apple Watch) | 1289 | 653 | 0 | 0.000 | A | 0.000 | A | 0.000 | A | A |
42mm / 44mm (Apple Watch) | 1290 | 653 | 0 | 0.000 | A | 0.000 | A | 0.000 | A | A |
22mm (tặng kèm 1 cặp chốt thông minh) | 1291 | 653 | 0 | 0.000 | A | 0.000 | A | 0.000 | A | A |
20mm (tặng kèm 1 cặp chốt thông minh) | 1292 | 653 | 0 | 0.000 | A | 0.000 | A | 0.000 | A | A |
Bạc | 1286 | 652 | 1 | 0.000 | A | 0.000 | A | 0.000 | A | A |
Đen | 1293 | 654 | 1 | 0.000 | A | 0.000 | A | 0.000 | A | A |
Đen | 1287 | 652 | 2 | 0.000 | A | 0.000 | A | 0.000 | A | A |
Bạc | 1294 | 654 | 2 | 0.000 | A | 0.000 | A | 0.000 | A | A |
Vàng Hồng - Khoá Bướm | 1288 | 652 | 3 | 0.000 | A | 0.000 | A | 0.000 | A | A |
Vàng Hồng - Khoá Bướm | 3192 | 654 | 3 | 0.000 | A | 0.000 | A | 0.000 | A | A |