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 (
    13709, 16103, 16100, 16099, 14681, 14757, 
    17004, 12729, 12324, 12725, 13778, 
    13343, 12726, 12724, 16098, 13341, 
    12728, 14396, 16101, 13602, 13784, 
    13777, 13344
  )

Query time 0.00234

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": 68,
          "filtered": 100,
          "index_condition": "gp.group_id in (13709,16103,16100,16099,14681,14757,17004,12729,12324,12725,13778,13343,12726,12724,16098,13341,12728,14396,16101,13602,13784,13777,13344)"
        }
      },
      {
        "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
19814 15613 68905 12324
19814 6049 68906 12324
20266 18270 70914 12724
20266 18269 70915 12724
20266 4394 70913 12724
20267 18271 70917 12725
20267 4393 70916 12725
20268 18272 70919 12726
20268 4392 70918 12726
20270 18274 70923 12728
20270 4390 70922 12728
20271 18277 70926 12729
20271 18276 70925 12729
20271 18275 70927 12729
20271 4389 70924 12729
20948 20837 73178 13341
20948 20836 73177 13341
20948 20835 73176 13341
20948 20834 73175 13341
20948 20833 73174 13341
20948 20832 73173 13341
20948 20831 73172 13341
20948 20830 73171 13341
20948 2628 73179 13341
20950 20844 73187 13343
20950 20843 73186 13343
20950 20842 73185 13343
20950 2626 73188 13343
20951 20849 73193 13344
20951 20848 73192 13344
20951 20847 73191 13344
20951 20846 73190 13344
20951 20845 73189 13344
20951 2625 73194 13344
21220 21764 74226 13602
21220 2148 74227 13602
21340 22173 74650 13709
21340 22172 74649 13709
21340 1943 74651 13709
21418 22512 74936 13777
21418 22511 74935 13777
21418 22510 74934 13777
21418 1852 74937 13777
21419 22513 74938 13778
21419 1850 74939 13778
21425 22533 74964 13784
21425 22532 74963 13784
21425 22531 74962 13784
21425 22530 74961 13784
21425 1840 74965 13784
22113 33159 77416 14396
22113 732 77418 14396
22419 26132 78650 14681
22419 286 78651 14681
22504 157 78994 14757
22504 26466 78991 14757
22504 26467 78992 14757
22504 26468 78993 14757
23922 38141 83203 16098
23922 38326 83204 16098
23923 38145 83205 16099
23923 38327 83206 16099
23924 38146 83207 16100
23924 38328 83208 16100
23924 38329 83209 16100
23925 38147 83210 16101
23925 38330 83211 16101
23927 38152 83214 16103
23927 38332 83215 16103
24754 47152 86327 17004
24754 47148 86326 17004
24754 48212 86840 17004
24754 48213 86841 17004