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 (
    12668, 16443, 14948, 17087, 16347, 14950, 
    15430, 14945, 12685, 16483
  )

Query time 0.00456

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": 44,
          "filtered": 100,
          "index_condition": "gp.group_id in (12668,16443,14948,17087,16347,14950,15430,14945,12685,16483)"
        }
      },
      {
        "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
20210 18134 70722 12668
20210 18133 70721 12668
20210 18132 70720 12668
20210 18131 70719 12668
20210 18130 70718 12668
20210 4795 70723 12668
20227 18194 70800 12685
20227 4581 70799 12685
22829 26857 79640 14945
22829 27053 79641 14945
22832 26853 79646 14948
22832 27056 79647 14948
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
24137 40754 84125 16347
24138 40754 84128 16347
24137 40774 84125 16347
24138 40774 84130 16347
24137 40773 84125 16347
24138 40773 84129 16347
24137 40775 84126 16347
24138 40775 84128 16347
24137 40776 84126 16347
24138 40776 84129 16347
24137 40777 84126 16347
24138 40777 84130 16347
24137 40778 84127 16347
24138 40778 84128 16347
24137 40779 84127 16347
24138 40779 84129 16347
24137 40780 84127 16347
24138 40780 84130 16347
24191 37881 84291 16443
24191 42358 84766 16443
24191 41144 84292 16443
24191 41145 84293 16443
24225 41423 84401 16483
24225 41459 84402 16483
24225 41460 84403 16483
24225 41461 84404 16483
24836 47652 86606 17087
24836 47685 86607 17087
24836 47686 86608 17087