SELECT 
  pfv.feature_id, 
  pfv.product_id, 
  pfv.variant_id, 
  gp.group_id 
FROM 
  cscart_product_features_values AS pfv 
  INNER JOIN cscart_product_variation_group_products AS gp ON pfv.product_id = gp.product_id 
  INNER JOIN cscart_product_variation_group_features AS gpf ON gpf.group_id = gp.group_id 
  AND gpf.feature_id = pfv.feature_id 
WHERE 
  pfv.lang_code = 'vi' 
  AND gp.group_id IN (
    16440, 12644, 13332, 15608, 12657, 13333, 
    13153, 15862, 12655, 12646, 13342, 
    16439, 13346, 12660
  )

Query time 0.00444

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "gp",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "idx_group_id"],
          "key": "idx_group_id",
          "key_length": "3",
          "used_key_parts": ["group_id"],
          "rows": 52,
          "filtered": 100,
          "index_condition": "gp.group_id in (16440,12644,13332,15608,12657,13333,13153,15862,12655,12646,13342,16439,13346,12660)"
        }
      },
      {
        "table": {
          "table_name": "gpf",
          "access_type": "ref",
          "possible_keys": ["PRIMARY", "idx_group_id"],
          "key": "idx_group_id",
          "key_length": "3",
          "used_key_parts": ["group_id"],
          "ref": ["dev_db.gp.group_id"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "pfv",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "idx_product_feature_variant_id",
          "key_length": "12",
          "used_key_parts": ["product_id", "feature_id", "lang_code"],
          "ref": ["dev_db.gp.product_id", "dev_db.gpf.feature_id", "const"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "pfv.lang_code = 'vi'",
          "using_index": true
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
20169 17913 70578 12644
20169 17912 70577 12644
20169 4868 70579 12644
20171 17916 70584 12646
20171 4864 70583 12646
20188 18010 70645 12655
20188 18006 70644 12655
20188 18005 70643 12655
20188 18004 70642 12655
20188 18003 70641 12655
20188 4821 70641 12655
20192 18036 70659 12657
20192 18032 70658 12657
20192 18031 70657 12657
20192 18030 70656 12657
20192 18029 70655 12657
20192 4817 70655 12657
20198 18075 70680 12660
20198 18071 70679 12660
20198 18070 70678 12660
20198 18069 70677 12660
20198 18068 70676 12660
20198 4810 70676 12660
20723 19589 72397 13153
20723 3193 72398 13153
20939 20799 73131 13332
20939 20798 73130 13332
20939 20797 73129 13332
20939 2640 73132 13332
20940 20803 73136 13333
20940 20802 73135 13333
20940 20801 73134 13333
20940 20800 73133 13333
20940 2639 73137 13333
20949 20841 73183 13342
20949 20840 73182 13342
20949 20839 73181 13342
20949 20838 73180 13342
20949 2627 73184 13342
20953 20859 73205 13346
20953 20858 73204 13346
20953 2623 73206 13346
23484 33704 81493 15608
23484 33777 81494 15608
23738 36306 82402 15862
23738 49256 82406 15862
23738 49255 82405 15862
23738 49254 82404 15862
23738 49253 82403 15862
24191 42346 84766 16439
24191 41136 84292 16439
24191 41137 84293 16439
24191 37902 84291 16440
24191 42348 84766 16440
24191 41138 84292 16440
24191 41139 84293 16440