SELECT 
  pfv.variant_id, 
  pfv.position, 
  pfvd.variant 
FROM 
  cscart_product_feature_variants AS pfv 
  INNER JOIN cscart_product_feature_variant_descriptions AS pfvd ON pfv.variant_id = pfvd.variant_id 
  AND pfvd.lang_code = 'vi' 
WHERE 
  pfv.variant_id IN (
    73924, 73923, 79318, 79319, 86299, 86298, 
    86297, 86300, 87462, 87461, 86301, 
    87464, 87463, 86303, 86302, 87452, 
    87451, 87456, 87455, 87458, 87457, 
    87460, 87459
  )

Query time 0.00267

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "pfv",
          "access_type": "range",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["variant_id"],
          "rows": 23,
          "filtered": 100,
          "index_condition": "pfv.variant_id in (73924,73923,79318,79319,86299,86298,86297,86300,87462,87461,86301,87464,87463,86303,86302,87452,87451,87456,87455,87458,87457,87460,87459)"
        }
      },
      {
        "table": {
          "table_name": "pfvd",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY"],
          "key": "PRIMARY",
          "key_length": "9",
          "used_key_parts": ["variant_id", "lang_code"],
          "ref": ["dev_db.pfv.variant_id", "const"],
          "rows": 1,
          "filtered": 100,
          "index_condition": "pfvd.lang_code = 'vi'"
        }
      }
    ]
  }
}

Result

variant_id position variant
73923 0 Case AirPods
73924 0 Case AirPods Pro
79318 0 Ốp airpod
79319 0 Ốp airpod pro
86297 1 Size S
86298 2 Size M
86299 3 Size L
86300 3 Vàng - Size S
86301 2 Bạc - Size L
86302 1 Vàng (Size S)
86303 2 Bạc (Size S)
87451 0 Size S
87452 0 Size L
87455 0 Size S
87456 0 Size L
87457 0 Size S
87458 0 Size L
87459 0 Size S
87460 0 Size L
87461 4 Vàng - Size L
87462 1 Bạc - Size S
87463 0 Vàng (Size L)
87464 0 Bạc (Size L)