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 (
    17140, 15578, 15053, 15710, 12877, 15711, 
    12298, 14544
  )

Query time 0.00757

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": 66,
          "filtered": 100,
          "index_condition": "gp.group_id in (17140,15578,15053,15710,12877,15711,12298,14544)"
        }
      },
      {
        "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
19784 15465 68801 12298
19784 6087 68800 12298
20425 18703 71478 12877
20425 18702 71477 12877
20425 4016 71479 12877
22264 506 78009 14544
22264 25227 78012 14544
22264 25228 78010 14544
22264 25229 78011 14544
22907 28199 79883 15053
22907 28200 79884 15053
22907 28127 79882 15053
23451 859 81357 15578
23451 33530 81362 15578
23451 33529 81361 15578
23451 33528 81360 15578
23451 33527 81359 15578
23451 33526 81358 15578
23580 862 81799 15710
23581 862 81801 15710
23580 35372 81799 15710
23581 35372 81802 15710
23580 35374 81800 15710
23581 35374 81802 15710
23580 35373 81800 15710
23581 35373 81801 15710
23582 860 81803 15711
23583 860 81805 15711
23582 35375 81803 15711
23583 35375 81806 15711
23582 35376 81804 15711
23583 35376 81805 15711
23582 35377 81804 15711
23583 35377 81806 15711
24889 48184 86828 17140
24890 48184 86837 17140
24889 48185 86828 17140
24890 48185 86838 17140
24889 48183 86827 17140
24890 48183 86839 17140
24889 48182 86827 17140
24890 48182 86838 17140
24889 48181 86836 17140
24890 48181 86839 17140
24889 48180 86836 17140
24890 48180 86838 17140
24889 48179 86836 17140
24890 48179 86837 17140
24889 48151 86827 17140
24890 48151 86837 17140
24889 48186 86828 17140
24890 48186 86839 17140
24889 48187 86829 17140
24890 48187 86837 17140
24889 48188 86829 17140
24890 48188 86838 17140
24889 48189 86829 17140
24890 48189 86839 17140
24889 48190 86830 17140
24890 48190 86837 17140
24889 48191 86830 17140
24890 48191 86838 17140
24889 48192 86830 17140
24890 48192 86839 17140
24889 48193 86831 17140
24890 48193 86837 17140
24889 48194 86831 17140
24890 48194 86838 17140
24889 48195 86831 17140
24890 48195 86839 17140
24889 48196 86832 17140
24890 48196 86837 17140
24889 48197 86832 17140
24890 48197 86838 17140
24889 48198 86832 17140
24890 48198 86839 17140
24889 48199 86833 17140
24890 48199 86837 17140
24889 48200 86833 17140
24890 48200 86838 17140
24889 48201 86833 17140
24890 48201 86839 17140
24889 48202 86834 17140
24890 48202 86837 17140
24889 48203 86834 17140
24890 48203 86838 17140
24889 48204 86834 17140
24890 48204 86839 17140
24889 48205 86835 17140
24890 48205 86837 17140
24889 48206 86835 17140
24890 48206 86838 17140
24889 48207 86835 17140
24890 48207 86839 17140