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 (
    15873, 14377, 12801, 15145, 14734, 12429, 
    12245, 14712, 13237, 13535, 13697, 
    16953, 12679
  )

Query time 0.00918

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": 47,
          "filtered": 100,
          "index_condition": "gp.group_id in (15873,14377,12801,15145,14734,12429,12245,14712,13237,13535,13697,16953,12679)"
        }
      },
      {
        "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
19723 15222 68596 12245
19723 15221 68595 12245
19723 15220 68594 12245
19723 15219 68593 12245
19723 15218 68592 12245
19723 6361 68597 12245
19723 48798 87019 12245
19723 48799 87020 12245
19927 16379 69631 12429
19927 16378 69630 12429
19927 16377 69629 12429
19927 5829 69632 12429
20221 18160 70759 12679
20221 4644 70760 12679
20344 18481 71199 12801
20344 18480 71198 12801
20344 18479 71197 12801
20344 18478 71196 12801
20344 4239 71200 12801
20836 20553 72794 13237
20836 3004 72795 13237
21147 21490 73957 13535
21147 21489 73956 13535
21147 21488 73955 13535
21147 21487 73954 13535
21147 2302 73958 13535
21328 22144 74609 13697
21328 22143 74608 13697
21328 22142 74607 13697
21328 1974 74610 13697
22094 775 77339 14377
22094 24690 77342 14377
22094 24691 77340 14377
22094 24692 77341 14377
22458 26324 78803 14712
22458 26323 78802 14712
22458 26322 78801 14712
22458 223 78804 14712
22480 26404 78905 14734
22480 198 78909 14734
22480 26405 78906 14734
22480 26406 78907 14734
22480 26407 78908 14734
23110 49198 87216 15145
23110 2304 80108 15145
23110 49195 80109 15145
23110 49197 87215 15145
23110 49196 87214 15145
23752 72 82440 15873
23752 36746 82441 15873
24723 46840 86236 16953
24723 46839 86235 16953
24723 46838 86234 16953
24723 46715 86233 16953