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 (
    14273, 14078, 14950, 15430, 13924, 12645, 
    14945, 16483, 14837, 13458, 16438, 
    12669, 16422, 15840, 16488, 14826
  )

Query time 0.00230

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": 61,
          "filtered": 100,
          "index_condition": "gp.group_id in (14273,14078,14950,15430,13924,12645,14945,16483,14837,13458,16438,12669,16422,15840,16488,14826)"
        }
      },
      {
        "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
20170 17915 70581 12645
20170 17914 70580 12645
20170 4865 70582 12645
20211 18139 70728 12669
20211 18138 70727 12669
20211 18137 70726 12669
20211 18136 70725 12669
20211 18135 70724 12669
20211 4793 70729 12669
21066 21109 73560 13458
21066 21108 73559 13458
21066 21107 73558 13458
21066 21106 73557 13458
21066 21105 73556 13458
21066 21104 73555 13458
21066 21103 73554 13458
21066 21102 73553 13458
21066 21101 73552 13458
21066 2449 73561 13458
21592 23026 75512 13924
21592 1542 75511 13924
21757 1266 76075 14078
21757 23502 76076 14078
21972 926 76910 14273
21972 24263 76909 14273
22566 26662 79215 14826
22566 26663 79216 14826
22566 2248 79214 14826
22577 2259 79245 14837
22577 26682 79246 14837
22577 26683 79247 14837
22829 26857 79640 14945
22829 27053 79641 14945
22834 26851 79650 14950
22834 27058 79651 14950
23313 32308 80876 15430
23314 32308 80878 15430
23313 32360 80876 15430
23314 32360 80879 15430
23313 32361 80876 15430
23314 32361 80880 15430
23313 32362 80876 15430
23314 32362 80881 15430
23313 32363 80877 15430
23314 32363 80878 15430
23313 32364 80877 15430
23314 32364 80879 15430
23313 32365 80877 15430
23314 32365 80880 15430
23313 32366 80877 15430
23314 32366 80881 15430
23717 36494 82333 15840
23717 36641 82334 15840
24191 42343 84766 16422
24191 41102 84292 16422
24191 41103 84293 16422
24191 42344 84766 16438
24191 41134 84292 16438
24191 41135 84293 16438
24225 41423 84401 16483
24225 41459 84402 16483
24225 41460 84403 16483
24225 41461 84404 16483
24230 41428 84422 16488
24230 41475 84423 16488
24230 41476 84424 16488
24230 41477 84425 16488