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 (
    13747, 17080, 15564, 16669, 17091, 17225, 
    17089, 17119, 15670, 15746, 12712, 
    12755
  )

Query time 0.01034

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": 88,
          "filtered": 100,
          "index_condition": "gp.group_id in (13747,17080,15564,16669,17091,17225,17089,17119,15670,15746,12712,12755)"
        }
      },
      {
        "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
20254 18244 70876 12712
20254 4465 70877 12712
20297 18334 71009 12755
20297 18333 71008 12755
20297 18332 71007 12755
20297 4362 71010 12755
21387 22404 74805 13747
21387 1893 74806 13747
23432 33312 81269 15564
23432 33315 81270 15564
23538 35192 81685 15670
23538 35254 81686 15670
23624 35732 81917 15746
23625 35732 81922 15746
23624 35855 81917 15746
23625 35855 81923 15746
23624 35856 81917 15746
23625 35856 81924 15746
23624 35857 81917 15746
23625 35857 81925 15746
23624 35858 81917 15746
23625 35858 81926 15746
23624 35859 81918 15746
23625 35859 81922 15746
23624 35860 81918 15746
23625 35860 81923 15746
23624 35861 81918 15746
23625 35861 81924 15746
23624 35862 81918 15746
23625 35862 81925 15746
23624 35863 81918 15746
23625 35863 81926 15746
23624 35864 81919 15746
23625 35864 81922 15746
23624 35865 81919 15746
23625 35865 81923 15746
23624 35866 81919 15746
23625 35866 81924 15746
23624 35867 81919 15746
23625 35867 81925 15746
23624 35868 81919 15746
23625 35868 81926 15746
23624 35869 81920 15746
23625 35869 81922 15746
23624 35870 81920 15746
23625 35870 81923 15746
23624 35871 81920 15746
23625 35871 81924 15746
23624 35872 81920 15746
23625 35872 81925 15746
23624 35873 81920 15746
23625 35873 81926 15746
23624 35874 81921 15746
23625 35874 81922 15746
23624 35875 81921 15746
23625 35875 81923 15746
23624 35876 81921 15746
23625 35876 81924 15746
23624 35877 81921 15746
23625 35877 81925 15746
23624 35878 81921 15746
23625 35878 81926 15746
24444 43825 85255 16669
24444 43839 85256 16669
24444 43840 85257 16669
24830 47595 86590 17080
24830 47631 86591 17080
24836 47654 86606 17089
24836 47689 86607 17089
24836 47690 86608 17089
24836 47656 86606 17091
24836 47693 86607 17091
24836 47694 86608 17091
24865 47927 86706 17119
24866 47927 86711 17119
24865 47982 86706 17119
24866 47982 86712 17119
24865 47983 86706 17119
24866 47983 86713 17119
24865 47984 86706 17119
24866 47984 86714 17119
24865 47985 86706 17119
24866 47985 86715 17119
24865 47986 86707 17119
24866 47986 86711 17119
24865 47987 86707 17119
24866 47987 86712 17119
24865 47988 86707 17119
24866 47988 86713 17119
24865 47989 86707 17119
24866 47989 86714 17119
24865 47990 86707 17119
24866 47990 86715 17119
24865 47991 86708 17119
24866 47991 86711 17119
24865 47992 86708 17119
24866 47992 86712 17119
24865 47993 86708 17119
24866 47993 86713 17119
24865 47994 86708 17119
24866 47994 86714 17119
24865 47995 86708 17119
24866 47995 86715 17119
24865 47996 86709 17119
24866 47996 86711 17119
24865 47997 86709 17119
24866 47997 86712 17119
24865 47998 86709 17119
24866 47998 86713 17119
24865 47999 86709 17119
24866 47999 86714 17119
24865 48000 86709 17119
24866 48000 86715 17119
24865 48001 86710 17119
24866 48001 86711 17119
24865 48002 86710 17119
24866 48002 86712 17119
24865 48003 86710 17119
24866 48003 86713 17119
24865 48004 86710 17119
24866 48004 86714 17119
24865 48005 86710 17119
24866 48005 86715 17119
24980 48998 87124 17225
24980 48999 87125 17225