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 (
    12146, 16347, 13974, 14078, 14364, 16872, 
    13924, 16433, 12645, 12623
  )

Query time 0.00389

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 (12146,16347,13974,14078,14364,16872,13924,16433,12645,12623)"
        }
      },
      {
        "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
19615 14804 68212 12146
19615 6604 68211 12146
20148 17849 70493 12623
20148 4938 70494 12623
20170 17915 70581 12645
20170 17914 70580 12645
20170 4865 70582 12645
21592 23026 75512 13924
21592 1542 75511 13924
21646 1436 75701 13974
21646 23204 75697 13974
21646 23205 75698 13974
21646 23206 75699 13974
21646 23207 75700 13974
21757 1266 76075 14078
21757 23502 76076 14078
22081 798 77289 14364
22081 24652 77288 14364
22081 24653 77290 14364
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 37886 84291 16433
24191 42359 84766 16433
24191 41124 84292 16433
24191 41125 84293 16433
24634 45573 85990 16872
24634 45778 85999 16872
24634 45779 86000 16872
24634 45780 86001 16872
24634 45781 86002 16872
24634 45782 86003 16872
24634 45783 86004 16872
24634 45784 86005 16872
24634 45785 86006 16872
24634 45786 86007 16872
24634 45787 86008 16872
24634 45788 86009 16872
24634 45789 85991 16872
24634 45790 85992 16872
24634 45791 85993 16872
24634 45792 85994 16872
24634 45793 85995 16872
24634 45794 85996 16872
24634 45795 85997 16872
24634 45796 85998 16872