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 (
    12745, 15831, 12739, 12879, 13594, 14069, 
    15890, 12460, 12446, 15066, 12550, 
    15422, 12746, 14682, 12548
  )

Query time 0.01085

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": 38,
          "filtered": 100,
          "index_condition": "gp.group_id in (12745,15831,12739,12879,13594,14069,15890,12460,12446,15066,12550,15422,12746,14682,12548)"
        }
      },
      {
        "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
19944 16416 69685 12446
19944 5743 69686 12446
19958 16466 69749 12460
19958 16465 69748 12460
19958 5726 69750 12460
20052 16844 70122 12548
20052 5414 70123 12548
20054 16846 70126 12550
20054 5405 70127 12550
20281 18297 70956 12739
20281 18296 70955 12739
20281 4379 70957 12739
20287 18309 70974 12745
20287 18308 70973 12745
20287 4373 70975 12745
20288 18311 70977 12746
20288 18310 70976 12746
20288 4372 70978 12746
20427 18706 71483 12879
20427 3995 71484 12879
21211 21747 74204 13594
21211 21746 74203 13594
21211 2171 74205 13594
21748 23481 76046 14069
21748 1287 76045 14069
22420 26134 78653 14682
22420 26133 78652 14682
22420 285 78654 14682
22921 28227 79922 15066
22921 28226 79921 15066
22921 28162 79920 15066
23304 32287 80848 15422
23304 32286 80847 15422
23708 36464 82260 15831
23708 36577 82261 15831
23771 37107 82560 15890
23772 37107 82562 15890
23771 37105 82559 15890
23772 37105 82562 15890
23771 16847 82559 15890
23772 16847 82561 15890
23771 37106 82560 15890
23772 37106 82561 15890