SELECT 
  b.variant_name, 
  a.* 
FROM 
  cscart_product_option_variants AS a 
  LEFT JOIN cscart_product_option_variants_descriptions AS b ON b.variant_id = a.variant_id 
  AND b.lang_code = 'vi' 
WHERE 
  1 
  AND a.option_id IN (
    1155, 1324, 1566, 1384, 1399, 1398, 1506, 
    1153
  ) 
  AND a.status = 'A' 
ORDER BY 
  a.position, 
  a.variant_id

Query time 0.00425

JSON explain

{
  "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": 20,
              "filtered": 100,
              "index_condition": "a.option_id in (1155,1324,1566,1384,1399,1398,1506,1153) 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')"
        }
      }
    ]
  }
}

Result

variant_name variant_id option_id position modifier modifier_type weight_modifier weight_modifier_type point_modifier point_modifier_type status
3745 1398 0 0.000 A 0.000 A 0.000 A A
3747 1399 0 0.000 A 0.000 A 0.000 A A
Hộp quà ghi tên (MIỄN PHÍ) 3948 1506 0 0.000 A 0.000 A 0.000 A A
4066 1566 0 0.000 A 0.000 A 0.000 A A
Đen 2800 1153 1 0.000 A 0.000 A 0.000 A A
Nâu 2805 1155 1 0.000 A 0.000 A 0.000 A A
Ví kèm dây đeo da sáp 3548 1324 1 335000.000 A 0.000 A 0.000 A A
Chữ ký 3701 1384 1 0.000 A 0.000 A 0.000 A A
3744 1398 1 40000.000 A 0.000 A 0.000 A A
3746 1399 1 0.000 A 0.000 A 0.000 A A
4065 1566 1 0.000 A 0.000 A 0.000 A A
Nâu 2801 1153 2 0.000 A 0.000 A 0.000 A A
Đen 2806 1155 2 0.000 A 0.000 A 0.000 A A
Ví kèm dây đeo da veg 3549 1324 2 60000.000 A 0.000 A 0.000 A A
In hoa nét mảnh 3702 1384 2 0.000 A 0.000 A 0.000 A A
Trắng 2802 1153 3 0.000 A 0.000 A 0.000 A A
Không kèm dây 3550 1324 3 0.000 A 0.000 A 0.000 A A
In hoa nét đậm 3703 1384 3 0.000 A 0.000 A 0.000 A A
Viết tay 3704 1384 4 0.000 A 0.000 A 0.000 A A
Viết thường 3705 1384 5 0.000 A 0.000 A 0.000 A A