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 (
    16945, 16930, 17262, 17260, 17258, 16946, 
    15862, 15855, 17253, 17252, 17249, 
    17248, 17247, 17246, 17242, 17241
  )

Query time 0.00719

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": 73,
          "filtered": 100,
          "index_condition": "gp.group_id in (16945,16930,17262,17260,17258,16946,15862,15855,17253,17252,17249,17248,17247,17246,17242,17241)"
        }
      },
      {
        "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
23731 36296 82376 15855
23731 49250 82378 15855
23731 49251 82379 15855
23731 49252 82380 15855
23731 49249 82377 15855
23738 36306 82402 15862
23738 49256 82406 15862
23738 49255 82405 15862
23738 49254 82404 15862
23738 49253 82403 15862
24703 46748 86164 16930
24703 49306 86163 16930
24703 49305 87193 16930
24703 49307 86162 16930
24717 49308 86218 16945
24717 46818 86219 16945
24717 49309 86220 16945
24717 49265 86218 16946
24717 49266 86219 16946
24717 49263 86220 16946
24717 49267 87235 16946
24996 49164 87185 17241
24996 49174 87189 17241
24996 49173 87188 17241
24996 49172 87187 17241
24996 49171 87186 17241
24997 46690 87190 17242
24997 49169 87191 17242
24997 49170 87192 17242
24717 49659 86220 17246
24717 49186 86219 17246
24717 49658 86218 17246
24717 49660 87235 17246
20545 3638 71871 17247
20545 49192 71868 17247
20545 49194 71870 17247
20545 49193 71869 17247
23110 49203 87216 17248
23110 49202 87215 17248
23110 49201 87214 17248
23110 49200 80109 17248
23110 49199 80108 17248
25006 49219 87221 17249
25006 49220 87222 17249
25006 49221 87223 17249
21894 49225 76639 17252
21894 49227 76641 17252
21894 49228 76642 17252
21894 49229 76643 17252
21894 49226 76640 17252
25008 49230 87232 17253
25008 49323 87233 17253
25015 49300 87262 17258
25015 49302 87262 17260
25015 49304 87262 17262
25015 49390 87263 17262