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 (
    12264, 13713, 14077, 15744, 13695, 13543, 
    13544, 14765, 12721, 16834, 17006, 
    14048, 17007
  )

Query time 0.00529

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": 95,
          "filtered": 100,
          "index_condition": "gp.group_id in (12264,13713,14077,15744,13695,13543,13544,14765,12721,16834,17006,14048,17007)"
        }
      },
      {
        "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
19746 15320 68677 12264
19746 15319 68678 12264
19746 6274 68676 12264
20263 18264 70905 12721
20263 18263 70904 12721
20263 18262 70903 12721
20263 4437 70906 12721
21157 21546 73999 13543
21157 21545 73998 13543
21157 21544 74000 13543
21157 2291 73997 13543
21158 21548 74002 13544
21158 21547 74001 13544
21158 2288 74003 13544
21326 22138 74601 13695
21326 22137 74600 13695
21326 1977 74602 13695
21346 22267 74685 13713
21346 22266 74684 13713
21346 22265 74683 13713
21346 22264 74682 13713
21346 22263 74681 13713
21346 1939 74686 13713
21727 1323 75974 14048
21727 23426 75969 14048
21727 23427 75970 14048
21727 23428 75971 14048
21727 23429 75972 14048
21727 40464 75973 14048
21756 23501 76073 14077
21756 1267 76074 14077
22512 118 79019 14765
22512 26485 79018 14765
23620 35730 81898 15744
23621 35730 81905 15744
23620 35810 81898 15744
23621 35810 81906 15744
23620 35811 81898 15744
23621 35811 81907 15744
23620 35812 81898 15744
23621 35812 81908 15744
23620 35813 81898 15744
23621 35813 81909 15744
23620 35814 81899 15744
23621 35814 81905 15744
23620 35815 81899 15744
23621 35815 81906 15744
23620 35816 81899 15744
23621 35816 81907 15744
23620 35817 81899 15744
23621 35817 81908 15744
23620 35818 81899 15744
23621 35818 81909 15744
23620 35819 81900 15744
23621 35819 81905 15744
23620 35820 81900 15744
23621 35820 81906 15744
23620 35821 81900 15744
23621 35821 81907 15744
23620 35822 81900 15744
23621 35822 81908 15744
23620 35823 81900 15744
23621 35823 81909 15744
23620 35824 81901 15744
23621 35824 81905 15744
23620 35825 81901 15744
23621 35825 81906 15744
23620 35826 81901 15744
23621 35826 81907 15744
23620 35827 81901 15744
23621 35827 81908 15744
23620 35828 81901 15744
23621 35828 81909 15744
23620 35829 81902 15744
23621 35829 81905 15744
23620 35830 81902 15744
23621 35830 81906 15744
23620 35831 81902 15744
23621 35831 81907 15744
23620 35832 81902 15744
23621 35832 81908 15744
23620 35833 81902 15744
23621 35833 81909 15744
23620 35834 81903 15744
23621 35834 81905 15744
23620 35835 81903 15744
23621 35835 81906 15744
23620 35836 81903 15744
23621 35836 81907 15744
23620 35837 81903 15744
23621 35837 81908 15744
23620 35838 81903 15744
23621 35838 81909 15744
23620 35839 81904 15744
23621 35839 81905 15744
23620 35840 81904 15744
23621 35840 81906 15744
23620 35841 81904 15744
23621 35841 81907 15744
23620 35842 81904 15744
23621 35842 81908 15744
23620 35843 81904 15744
23621 35843 81909 15744
24606 45449 85875 16834
24606 45448 85874 16834
24606 45447 85873 16834
24606 45446 85872 16834
24606 45359 85863 16834
24606 45450 85876 16834
24606 45451 85877 16834
24606 45452 85878 16834
24606 45453 85879 16834
24606 45454 85880 16834
24606 45455 85881 16834
24606 45456 85882 16834
24606 45457 85864 16834
24606 45458 85865 16834
24606 45459 85866 16834
24606 45460 85867 16834
24606 45461 85868 16834
24606 45462 85869 16834
24606 45463 85870 16834
24606 45464 85871 16834
24757 47170 86333 17006
24757 47169 86332 17006
24757 47163 86331 17006
24758 47171 86335 17007
24758 47162 86334 17007