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 (
    13452, 14566, 15433, 16289, 13540, 15490, 
    17010, 15976, 17008, 15432, 13035, 
    15391, 13454, 16378, 15712, 15720, 
    17195, 15906, 17189, 16874
  )

Query time 0.00392

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": 116,
          "filtered": 100,
          "index_condition": "gp.group_id in (13452,14566,15433,16289,13540,15490,17010,15976,17008,15432,13035,15391,13454,16378,15712,15720,17195,15906,17189,16874)"
        }
      },
      {
        "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
20602 19278 72052 13035
20602 3530 72053 13035
21060 21087 73533 13452
21060 2455 73532 13452
21062 21089 73537 13454
21062 2453 73536 13454
21152 21508 73980 13540
21152 21507 73979 13540
21152 21506 73978 13540
21152 2296 73981 13540
22289 473 78093 14566
22289 25317 78092 14566
23270 31962 80712 15391
23270 32103 80713 15391
23270 32104 80714 15391
23270 32105 80715 15391
23316 32310 80884 15432
23316 32368 80885 15432
23317 32311 80887 15433
23317 32369 80886 15433
23317 32370 80888 15433
23317 32371 80889 15433
23350 27854 81002 15490
23350 32747 81003 15490
23350 32748 81004 15490
23350 32749 81005 15490
23350 32750 81006 15490
23350 32751 81007 15490
23584 35480 81807 15712
23584 35536 81808 15712
23592 35488 81823 15720
23592 35544 81824 15720
23789 37321 82690 15906
23789 37364 82691 15906
23789 37365 82692 15906
23836 37827 82924 15976
23836 37825 82923 15976
24069 40371 83884 16289
24069 40373 83885 16289
24174 40916 84230 16378
24174 40935 84231 16378
24174 40936 84232 16378
24634 45574 85990 16874
24635 45574 86010 16874
24634 45834 86008 16874
24635 45834 86010 16874
24634 45833 86007 16874
24635 45833 86011 16874
24634 45832 86007 16874
24635 45832 86010 16874
24634 45831 86006 16874
24635 45831 86011 16874
24634 45830 86006 16874
24635 45830 86010 16874
24634 45829 86005 16874
24635 45829 86011 16874
24634 45828 86005 16874
24635 45828 86010 16874
24634 45827 86004 16874
24635 45827 86011 16874
24634 45826 86004 16874
24635 45826 86010 16874
24634 45825 86003 16874
24635 45825 86011 16874
24634 45824 86003 16874
24635 45824 86010 16874
24634 45823 86002 16874
24635 45823 86011 16874
24634 45822 86002 16874
24635 45822 86010 16874
24634 45821 86001 16874
24635 45821 86011 16874
24634 45820 86001 16874
24635 45820 86010 16874
24634 45819 86000 16874
24635 45819 86011 16874
24634 45818 86000 16874
24635 45818 86010 16874
24634 45817 85999 16874
24635 45817 86011 16874
24634 45816 85999 16874
24635 45816 86010 16874
24634 45835 86008 16874
24635 45835 86011 16874
24634 45836 86009 16874
24635 45836 86010 16874
24634 45837 86009 16874
24635 45837 86011 16874
24634 45838 85990 16874
24635 45838 86011 16874
24634 45839 85991 16874
24635 45839 86010 16874
24634 45840 85991 16874
24635 45840 86011 16874
24634 45841 85992 16874
24635 45841 86010 16874
24634 45842 85992 16874
24635 45842 86011 16874
24634 45843 85993 16874
24635 45843 86010 16874
24634 45844 85993 16874
24635 45844 86011 16874
24634 45845 85994 16874
24635 45845 86010 16874
24634 45846 85994 16874
24635 45846 86011 16874
24634 45847 85995 16874
24635 45847 86010 16874
24634 45848 85995 16874
24635 45848 86011 16874
24634 45849 85996 16874
24635 45849 86010 16874
24634 45850 85996 16874
24635 45850 86011 16874
24634 45851 85997 16874
24635 45851 86010 16874
24634 45852 85997 16874
24635 45852 86011 16874
24634 45853 85998 16874
24635 45853 86010 16874
24634 45854 85998 16874
24635 45854 86011 16874
24759 47172 86337 17008
24759 3658 86336 17008
24759 47174 86336 17010
24759 3661 86337 17010
24934 48677 86938 17189
24934 48699 86939 17189
24934 48700 86940 17189
24934 48701 86941 17189
24940 48683 86962 17195
24940 48719 86963 17195
24940 48720 86964 17195
24940 48721 86965 17195