SELECT 
  pfv.feature_id, 
  pfv.product_id, 
  pfv.variant_id, 
  fv.position, 
  fvd.variant 
FROM 
  cscart_product_features_values AS pfv 
  INNER JOIN cscart_product_feature_variants AS fv ON pfv.feature_id = fv.feature_id 
  AND pfv.variant_id = fv.variant_id 
  INNER JOIN cscart_product_feature_variant_descriptions AS fvd ON pfv.variant_id = fvd.variant_id 
  AND fvd.lang_code = 'vi' 
WHERE 
  pfv.feature_id IN (
    23620, 23621, 23618, 23619, 23249, 23250, 
    23624, 23625, 20254, 20297, 23469, 
    23470, 20031, 20298, 20030, 20293, 
    20299, 20027, 20301, 20255, 20253, 
    20300, 20029, 20302
  ) 
  AND pfv.product_id IN (
    35833, 35804, 31966, 35859, 4465, 4362, 
    33625, 5478, 4361, 5479, 4366, 4360, 
    5485, 4358, 4464, 4466, 4359, 5481, 
    4357
  ) 
  AND pfv.lang_code = 'vi'

Query time 0.08713

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "pfv",
          "access_type": "range",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "variant_id",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "product_id",
          "key_length": "3",
          "used_key_parts": ["product_id"],
          "rowid_filter": {
            "range": {
              "key": "fl",
              "used_key_parts": ["feature_id", "lang_code"]
            },
            "rows": 599,
            "selectivity_pct": 0.378625066
          },
          "rows": 113,
          "filtered": 2.673645973,
          "index_condition": "pfv.product_id in (35833,35804,31966,35859,4465,4362,33625,5478,4361,5479,4366,4360,5485,4358,4464,4466,4359,5481,4357)",
          "attached_condition": "pfv.feature_id in (23620,23621,23618,23619,23249,23250,23624,23625,20254,20297,23469,23470,20031,20298,20030,20293,20299,20027,20301,20255,20253,20300,20029,20302) and pfv.lang_code = 'vi'"
        }
      },
      {
        "table": {
          "table_name": "fv",
          "access_type": "eq_ref",
          "possible_keys": ["PRIMARY", "feature_id"],
          "key": "PRIMARY",
          "key_length": "3",
          "used_key_parts": ["variant_id"],
          "ref": ["dev_db.pfv.variant_id"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "fv.feature_id = pfv.feature_id"
        }
      },
      {
        "table": {
          "table_name": "fvd",
          "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": "fvd.lang_code = 'vi'"
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id position variant
20302 4357 71028 0 Đầu tư
20301 4358 71024 0 Đầu tư
20300 4359 71020 0 Đầu tư
20299 4360 71016 0 Người chèo thuyền GIỎI không đến từ VÙNG BIỂN LẶNG SÓNG
20298 4361 71014 0 Đầu tư
20297 4362 71010 0 Đầu tư
20293 4366 70992 0 Người chèo thuyền GIỎI không đến từ VÙNG BIỂN LẶNG SÓNG
20255 4464 70879 0 Người chèo thuyền GIỎI không đến từ VÙNG BIỂN LẶNG SÓNG
20254 4465 70877 0 Người chèo thuyền GIỎI không đến từ VÙNG BIỂN LẶNG SÓNG
20253 4466 70875 0 Người chèo thuyền GIỎI không đến từ VÙNG BIỂN LẶNG SÓNG
20031 5478 70034 0 Làm việc hết mình
20030 5479 70029 0 Mẫu 6
20029 5481 70018 0 Mẫu 1
20027 5485 70007 0 Mẫu 1
23250 31966 80617 1 Tím
23249 31966 80612 1 Size 1
23469 33625 81442 3 Chó bố
23470 33625 81445 1 Xanh lam
23619 35804 81892 1 Yellow
23618 35804 81891 4 Full set of Fish Family
23621 35833 81909 5 Đỏ
23620 35833 81902 5 Mèo mẹ
23625 35859 81922 1 Nâu
23624 35859 81918 2 Mèo cái nằm