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 (
    12572, 15609, 13692, 15739, 15355, 13709, 
    12296, 16996, 12917, 15353, 13693, 
    14195, 17304, 12574
  )

Query time 0.00919

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": 69,
          "filtered": 100,
          "index_condition": "gp.group_id in (12572,15609,13692,15739,15355,13709,12296,16996,12917,15353,13693,14195,17304,12574)"
        }
      },
      {
        "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
19782 15463 68796 12296
19782 15462 68795 12296
19782 6113 68797 12296
20077 16888 70183 12572
20077 16881 70182 12572
20077 16880 70181 12572
20077 16879 70180 12572
20077 16878 70179 12572
20077 16877 70178 12572
20077 16876 70177 12572
20077 16875 70176 12572
20077 5300 70176 12572
20083 17264 70239 12574
20083 17263 70238 12574
20083 17262 70237 12574
20083 17261 70236 12574
20083 17260 70235 12574
20083 17259 70234 12574
20083 17258 70233 12574
20083 5296 70240 12574
20467 18783 71596 12917
20467 18782 71595 12917
20467 18781 71594 12917
20467 18780 71593 12917
20467 18779 71592 12917
20467 18778 71591 12917
20467 3871 71597 12917
21323 22132 74592 13692
21323 22131 74591 13692
21323 1980 74593 13692
21324 22134 74595 13693
21324 22133 74594 13693
21324 1979 74596 13693
21340 22173 74650 13709
21340 22172 74649 13709
21340 1943 74651 13709
21893 1088 76637 14195
21893 24067 76635 14195
21893 24068 76636 14195
23234 31636 80580 15353
23234 31816 80581 15353
23236 31639 80584 15355
23236 31818 80585 15355
23236 31819 80586 15355
23485 33744 81495 15609
23485 49401 81496 15609
23613 35738 81872 15739
23614 35738 81877 15739
23613 35764 81872 15739
23614 35764 81878 15739
23613 35765 81872 15739
23614 35765 81879 15739
23613 35766 81872 15739
23614 35766 81880 15739
23613 35767 81873 15739
23614 35767 81877 15739
23613 35768 81873 15739
23614 35768 81878 15739
23613 35769 81873 15739
23614 35769 81879 15739
23613 35770 81873 15739
23614 35770 81880 15739
23613 35771 81874 15739
23614 35771 81877 15739
23613 35772 81874 15739
23614 35772 81878 15739
23613 35773 81874 15739
23614 35773 81879 15739
23613 35774 81874 15739
23614 35774 81880 15739
23613 35775 81875 15739
23614 35775 81877 15739
23613 35776 81875 15739
23614 35776 81878 15739
23613 35777 81875 15739
23614 35777 81879 15739
23613 35778 81875 15739
23614 35778 81880 15739
23613 35779 81876 15739
23614 35779 81877 15739
23613 35780 81876 15739
23614 35780 81878 15739
23613 35781 81876 15739
23614 35781 81879 15739
23613 35782 81876 15739
23614 35782 81880 15739
24746 49815 87464 16996
24746 49814 87463 16996
24746 47122 86303 16996
24746 47024 86302 16996
25062 49806 87452 17304
25062 41293 87451 17304