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 (
    12721, 17120, 16971, 14572, 16834, 17006, 
    14048, 17007, 14841, 15659, 16794, 
    15661, 17305
  )

Query time 0.02381

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": 114,
          "filtered": 100,
          "index_condition": "gp.group_id in (12721,17120,16971,14572,16834,17006,14048,17007,14841,15659,16794,15661,17305)"
        }
      },
      {
        "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
20263 18264 70905 12721
20263 18263 70904 12721
20263 18262 70903 12721
20263 4437 70906 12721
21727 1323 75974 14048
21727 23426 75969 14048
21727 23427 75970 14048
21727 23428 75971 14048
21727 23429 75972 14048
21727 40464 75973 14048
22298 464 78147 14572
22298 25549 78144 14572
22298 25550 78145 14572
22298 25551 78146 14572
22626 6193 79251 14841
22626 27262 79252 14841
23526 35166 81655 15659
23526 35233 81656 15659
23528 35169 81660 15661
23528 35236 81661 15661
23528 35237 81662 15661
24568 44945 85749 16794
24569 44945 85757 16794
24568 45138 85749 16794
24569 45138 85758 16794
24568 45139 85749 16794
24569 45139 85759 16794
24568 45140 85750 16794
24569 45140 85757 16794
24568 45141 85750 16794
24569 45141 85758 16794
24568 45142 85750 16794
24569 45142 85759 16794
24568 45143 85751 16794
24569 45143 85757 16794
24568 45144 85751 16794
24569 45144 85758 16794
24568 45145 85751 16794
24569 45145 85759 16794
24568 45146 85752 16794
24569 45146 85757 16794
24568 45147 85752 16794
24569 45147 85758 16794
24568 45148 85752 16794
24569 45148 85759 16794
24568 45149 85753 16794
24569 45149 85757 16794
24568 45150 85753 16794
24569 45150 85758 16794
24568 45151 85753 16794
24569 45151 85759 16794
24568 45152 85754 16794
24569 45152 85757 16794
24568 45153 85754 16794
24569 45153 85758 16794
24568 45154 85754 16794
24569 45154 85759 16794
24568 45155 85755 16794
24569 45155 85757 16794
24568 45156 85755 16794
24569 45156 85758 16794
24568 45157 85755 16794
24569 45157 85759 16794
24568 45158 85756 16794
24569 45158 85757 16794
24568 45159 85756 16794
24569 45159 85758 16794
24568 45160 85756 16794
24569 45160 85759 16794
24606 45449 85875 16834
24606 45448 85874 16834
24606 45447 85873 16834
24606 45446 85872 16834
24606 45359 85863 16834
24606 45450 85876 16834
24606 45451 85877 16834
24606 45452 85878 16834
24606 45453 85879 16834
24606 45454 85880 16834
24606 45455 85881 16834
24606 45456 85882 16834
24606 45457 85864 16834
24606 45458 85865 16834
24606 45459 85866 16834
24606 45460 85867 16834
24606 45461 85868 16834
24606 45462 85869 16834
24606 45463 85870 16834
24606 45464 85871 16834
24727 46990 86261 16971
24727 46989 86260 16971
24727 46988 86259 16971
24727 46987 86258 16971
24727 46986 86257 16971
24727 46982 86256 16971
24757 47170 86333 17006
24757 47169 86332 17006
24757 47163 86331 17006
24758 47171 86335 17007
24758 47162 86334 17007
24867 47974 86716 17120
24867 48006 86717 17120
24867 48007 86718 17120
24867 48008 86719 17120
24867 48009 86720 17120
24867 48010 86721 17120
24867 48011 86722 17120
24867 48012 86723 17120
24867 48013 86724 17120
25064 49807 87456 17305
25064 41292 87455 17305