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 (
    12575, 12920, 12919, 17090, 15656, 12918, 
    13908, 15564, 15352, 13125, 12916, 
    14769
  )

Query time 0.00594

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 (12575,12920,12919,17090,15656,12918,13908,15564,15352,13125,12916,14769)"
        }
      },
      {
        "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
20084 17273 70249 12575
20084 17272 70248 12575
20084 17271 70247 12575
20084 17270 70246 12575
20084 17269 70245 12575
20084 17268 70244 12575
20084 17267 70243 12575
20084 17266 70242 12575
20084 17265 70241 12575
20084 5294 70250 12575
20466 18777 71589 12916
20466 18776 71588 12916
20466 18775 71587 12916
20466 18774 71586 12916
20466 18773 71585 12916
20466 3872 71590 12916
20468 18787 71601 12918
20468 18786 71600 12918
20468 18785 71599 12918
20468 18784 71598 12918
20468 3870 71602 12918
20469 18795 71610 12919
20469 18794 71609 12919
20469 18793 71608 12919
20469 18792 71607 12919
20469 18791 71606 12919
20469 18790 71605 12919
20469 18789 71604 12919
20469 18788 71603 12919
20469 3869 71611 12919
20470 18799 71616 12920
20470 18798 71614 12920
20470 18797 71613 12920
20470 18796 71612 12920
20470 3868 71615 12920
20695 19557 72337 13125
20695 19556 72336 13125
20695 3286 72338 13125
21575 22989 75462 13908
21575 1582 75461 13908
22516 113 79032 14769
22516 26495 79033 14769
23233 31815 80579 15352
23233 31633 80578 15352
23432 33312 81269 15564
23432 33315 81270 15564
23521 34555 81643 15656
23521 34648 81644 15656
24836 47655 86606 17090
24836 47691 86607 17090
24836 47692 86608 17090