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 (
    16939, 16940, 17045, 17168, 17042, 17038, 
    17033, 17171, 17170, 17173, 17167
  )

Query time 0.01050

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": 55,
          "filtered": 100,
          "index_condition": "gp.group_id in (16939,16940,17045,17168,17042,17038,17033,17171,17170,17173,17167)"
        }
      },
      {
        "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
24715 46727 86210 16939
24715 46805 86212 16939
24715 46806 86213 16939
24715 46804 86211 16939
24716 46807 86215 16940
24716 46808 86216 16940
24716 46726 86214 16940
24716 46809 86217 16940
24783 47344 86458 17033
24784 47344 86462 17033
24783 47268 86458 17033
24784 47268 86461 17033
24783 47351 86460 17033
24784 47351 86463 17033
24783 47350 86460 17033
24784 47350 86462 17033
24783 47349 86460 17033
24784 47349 86461 17033
24783 47348 86459 17033
24784 47348 86463 17033
24783 47347 86459 17033
24784 47347 86462 17033
24783 47346 86459 17033
24784 47346 86461 17033
24783 47345 86458 17033
24784 47345 86463 17033
24789 47407 86486 17038
24789 47406 86485 17038
24789 47390 86484 17038
24793 47429 86495 17042
24793 47412 86494 17042
24793 47430 86496 17042
24796 47434 86503 17045
24796 47415 86502 17045
24911 48507 86879 17167
24911 48501 86878 17167
24912 48502 86880 17168
24912 48508 86881 17168
24914 48504 86884 17170
24914 48510 86885 17170
24915 48505 86886 17171
24915 48511 86887 17171
24915 48512 86888 17171
24917 48515 86891 17173
24918 48515 86894 17173
24917 48500 86891 17173
24918 48500 86893 17173
24917 48516 86892 17173
24918 48516 86893 17173
24917 48517 86892 17173
24918 48517 86894 17173