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 (
    12779, 15767, 16567, 16564, 15849, 12203, 
    12483, 14385, 16775, 16553, 16566, 
    14851, 14844, 12486, 16563, 16738
  )

Query time 0.00764

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": 62,
          "filtered": 100,
          "index_condition": "gp.group_id in (12779,15767,16567,16564,15849,12203,12483,14385,16775,16553,16566,14851,14844,12486,16563,16738)"
        }
      },
      {
        "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
19675 14974 68417 12203
19675 6481 68418 12203
19981 16529 69835 12483
19981 5599 69836 12483
19984 16536 69845 12486
19984 16535 69844 12486
19984 16534 69843 12486
19984 16533 69842 12486
19984 5596 69846 12486
20322 18383 71079 12779
20322 4287 71080 12779
22102 755 77373 14385
22102 24715 77372 14385
22627 27076 79256 14844
22627 4936 79255 14844
22632 27078 79266 14851
22632 4929 79265 14851
23646 35690 81991 15767
23646 35966 81992 15767
23646 35967 81993 15767
23726 36522 82357 15849
23726 36658 82358 15849
24299 42216 84675 16553
24299 42215 84674 16553
24299 42214 84673 16553
24299 42213 84672 16553
24299 42212 84671 16553
24299 42168 84670 16553
24299 42217 84676 16553
24299 42218 84677 16553
24309 42181 84701 16563
24309 42233 84702 16563
24310 42182 84703 16564
24310 42234 84704 16564
24310 42235 84705 16564
24312 42186 84708 16566
24312 42237 84709 16566
24312 42238 84710 16566
24312 42239 84711 16566
24313 42187 84712 16567
24313 42240 84713 16567
24313 42241 84714 16567
24313 42242 84715 16567
24501 44511 85470 16738
24501 44599 85471 16738
24501 44600 85472 16738
24501 44601 85473 16738
24546 44940 85610 16775
24546 44966 85611 16775
24546 44967 85612 16775