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 (
    19747, 19746, 23184, 24842, 21339, 21346, 
    24913, 24568, 24569, 24552, 24551, 
    21326, 24566, 24567, 23527, 23531, 
    23533, 21157, 23530, 23529
  ) 
  AND pfv.product_id IN (
    15322, 6274, 30368, 47828, 1945, 22263, 
    48503, 44946, 44943, 1977, 44944, 35167, 
    35174, 35176, 2291, 35172, 35171
  ) 
  AND pfv.lang_code = 'vi'

Query time 0.09624

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": 407,
            "selectivity_pct": 0.257262775
          },
          "rows": 88,
          "filtered": 1.993507862,
          "index_condition": "pfv.product_id in (15322,6274,30368,47828,1945,22263,48503,44946,44943,1977,44944,35167,35174,35176,2291,35172,35171)",
          "attached_condition": "pfv.feature_id in (19747,19746,23184,24842,21339,21346,24913,24568,24569,24552,24551,21326,24566,24567,23527,23531,23533,21157,23530,23529) 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
21339 1945 74648 0 Cô gái đọc sách
21326 1977 74602 0 Túi Zip
21157 2291 73997 0 Gói lẻ ướp thường
19746 6274 68676 0 150ml
19747 15322 68680 0 500ml
21346 22263 74681 0 Be
23184 30368 80381 2 Nourishing & Healing
23527 35167 81657 1 Bông tai
23529 35171 81663 1 Bông tai
23530 35172 81665 1 Set 1
23531 35174 81667 1 Dây chuyền
23533 35176 81672 1 Dây dài 12-15cm
24551 44943 85626 1 Trắng
24552 44943 85634 1 Size S
24567 44944 85746 1 Size S
24566 44944 85738 1 Trắng
24569 44946 85757 1 Size S
24568 44946 85749 1 Trắng
24842 47828 86637 1 10ml
24913 48503 86882 0 size S