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 (
    16349, 12786, 12787, 17017, 16370, 16500, 
    16454, 16351, 15644, 12777
  )

Query time 0.00205

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": 54,
          "filtered": 100,
          "index_condition": "gp.group_id in (16349,12786,12787,17017,16370,16500,16454,16351,15644,12777)"
        }
      },
      {
        "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
20320 18381 71075 12777
20320 4303 71076 12777
20329 18421 71124 12786
20329 18420 71123 12786
20329 18419 71122 12786
20329 18418 71121 12786
20329 18417 71120 12786
20329 18416 71119 12786
20329 18415 71118 12786
20329 4268 71125 12786
20330 18428 71132 12787
20330 18427 71131 12787
20330 18426 71130 12787
20330 18425 71129 12787
20330 18424 71128 12787
20330 18423 71127 12787
20330 18422 71126 12787
20330 4267 71133 12787
23512 33721 81601 15644
23512 34036 81610 15644
23512 34037 81611 15644
23512 34038 81612 15644
23512 34039 81613 15644
23512 34040 81614 15644
23512 34041 81615 15644
23512 34042 81616 15644
23512 34043 81617 15644
23512 34044 81602 15644
23512 34045 81603 15644
23512 34046 81604 15644
23512 34047 81605 15644
23512 34048 81606 15644
23512 34049 81607 15644
23512 34050 81608 15644
23512 34051 81609 15644
24141 40807 84144 16349
24141 40813 84145 16349
24141 40814 84146 16349
24143 40810 84150 16351
24143 40817 84151 16351
24166 40893 84207 16370
24166 40895 84208 16370
24199 41203 84318 16454
24199 41224 84319 16454
24199 41225 84320 16454
24199 41226 84321 16454
24242 41596 84473 16500
24242 41616 84474 16500
24767 47283 86384 17017
24767 47282 86383 17017
24767 47274 86381 17017
24767 47281 86382 17017