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 (
    16763, 17122, 16761, 17230, 17232, 17313
  )

Query time 0.01689

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": 108,
          "filtered": 100,
          "index_condition": "gp.group_id in (16763,17122,16761,17230,17232,17313)"
        }
      },
      {
        "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
24525 44771 85550 16761
24525 44795 85551 16761
24527 44773 85554 16763
24527 44797 85555 16763
24870 47936 86732 17122
24870 48028 86735 17122
24870 48027 86734 17122
24870 48026 86733 17122
24986 49004 87144 17230
24987 49004 87149 17230
24986 49032 87144 17230
24987 49032 87158 17230
24986 49033 87144 17230
24987 49033 87159 17230
24986 49034 87144 17230
24987 49034 87150 17230
24986 49035 87144 17230
24987 49035 87151 17230
24986 49036 87144 17230
24987 49036 87152 17230
24986 49037 87144 17230
24987 49037 87153 17230
24986 49038 87144 17230
24987 49038 87154 17230
24986 49039 87144 17230
24987 49039 87155 17230
24986 49040 87144 17230
24987 49040 87156 17230
24986 49041 87144 17230
24987 49041 87157 17230
24986 49042 87145 17230
24987 49042 87158 17230
24986 49043 87145 17230
24987 49043 87159 17230
24986 49044 87145 17230
24987 49044 87149 17230
24986 49045 87145 17230
24987 49045 87150 17230
24986 49046 87145 17230
24987 49046 87151 17230
24986 49047 87145 17230
24987 49047 87152 17230
24986 49048 87145 17230
24987 49048 87153 17230
24986 49049 87145 17230
24987 49049 87154 17230
24986 49050 87145 17230
24987 49050 87155 17230
24986 49051 87145 17230
24987 49051 87156 17230
24986 49052 87145 17230
24987 49052 87157 17230
24986 49053 87146 17230
24987 49053 87158 17230
24986 49054 87146 17230
24987 49054 87159 17230
24986 49055 87146 17230
24987 49055 87149 17230
24986 49056 87146 17230
24987 49056 87150 17230
24986 49057 87146 17230
24987 49057 87151 17230
24986 49058 87146 17230
24987 49058 87152 17230
24986 49059 87146 17230
24987 49059 87153 17230
24986 49060 87146 17230
24987 49060 87154 17230
24986 49061 87146 17230
24987 49061 87155 17230
24986 49062 87146 17230
24987 49062 87156 17230
24986 49063 87146 17230
24987 49063 87157 17230
24986 49064 87147 17230
24987 49064 87158 17230
24986 49065 87147 17230
24987 49065 87159 17230
24986 49066 87147 17230
24987 49066 87149 17230
24986 49067 87147 17230
24987 49067 87150 17230
24986 49068 87147 17230
24987 49068 87151 17230
24986 49069 87147 17230
24987 49069 87152 17230
24986 49070 87147 17230
24987 49070 87153 17230
24986 49071 87147 17230
24987 49071 87154 17230
24986 49072 87147 17230
24987 49072 87155 17230
24986 49073 87147 17230
24987 49073 87156 17230
24986 49074 87147 17230
24987 49074 87157 17230
24986 49075 87148 17230
24987 49075 87158 17230
24986 49076 87148 17230
24987 49076 87159 17230
24986 49077 87148 17230
24987 49077 87149 17230
24986 49078 87148 17230
24987 49078 87150 17230
24986 49079 87148 17230
24987 49079 87151 17230
24986 49080 87148 17230
24987 49080 87152 17230
24986 49081 87148 17230
24987 49081 87153 17230
24986 49082 87148 17230
24987 49082 87154 17230
24986 49083 87148 17230
24987 49083 87155 17230
24986 49084 87148 17230
24987 49084 87156 17230
24986 49085 87148 17230
24987 49085 87157 17230
24989 49015 87164 17232
24990 49015 87166 17232
24989 49089 87164 17232
24990 49089 87167 17232
24989 49090 87164 17232
24990 49090 87168 17232
24989 49091 87164 17232
24990 49091 87169 17232
24989 49092 87165 17232
24990 49092 87166 17232
24989 49093 87165 17232
24990 49093 87167 17232
24989 49094 87165 17232
24990 49094 87168 17232
24989 49095 87165 17232
24990 49095 87169 17232
25072 49848 87479 17313
25072 49849 87480 17313