SELECT 
  product_id, 
  group_id 
FROM 
  cscart_product_variation_group_products 
WHERE 
  group_id IN (
    159, 244, 215, 164, 157, 130, 229, 145, 
    141, 220, 155, 213, 146, 147, 153, 179, 
    225, 228, 227, 168, 221, 151, 171, 152, 
    226, 172
  )

Query time 0.00063

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "52.41"
    },
    "table": {
      "table_name": "cscart_product_variation_group_products",
      "access_type": "range",
      "possible_keys": [
        "idx_group_id"
      ],
      "key": "idx_group_id",
      "used_key_parts": [
        "group_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 102,
      "rows_produced_per_join": 102,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_product_variation_group_products`.`group_id` in (159,244,215,164,157,130,229,145,141,220,155,213,146,147,153,179,225,228,227,168,221,151,171,152,226,172))",
      "cost_info": {
        "read_cost": "42.21",
        "eval_cost": "10.20",
        "prefix_cost": "52.41",
        "data_read_per_join": "1K"
      },
      "used_columns": [
        "product_id",
        "group_id"
      ]
    }
  }
}

Result

product_id group_id
128 130
51118 130
51117 130
51116 130
51115 130
51114 130
51113 130
51165 141
51164 141
51163 141
51162 141
51161 141
52 141
51183 145
20 145
51188 145
51187 145
51186 145
51185 145
51184 145
51194 146
51193 146
51192 146
51191 146
51190 146
51189 146
19 146
51201 147
51200 147
51199 147
51198 147
51197 147
51196 147
51195 147
131 147
51211 151
51210 151
111 151
51212 151
144 152
51215 152
51214 152
51213 152
51444 152
51445 152
51446 152
51447 152
51220 153
51219 153
51218 153
51217 153
51216 153
146 153
51448 153
51449 153
51231 155
51230 155
51229 155
51228 155
51227 155
51226 155
51225 155
109 155
51243 157
51242 157
51241 157
51240 157
51239 157
36 157
51253 159
51252 159
51251 159
51250 159
51249 159
34 159
51273 164
147 164
51277 164
51276 164
51275 164
51274 164
9 168
59 171
60 172
13 179
51346 213
118 213
114 215
84 220
51347 221
85 221
61 225
51350 226
123 226
15 227
95 228
51352 229
51351 229
96 229
89 244
51390 244
51391 244
51392 244
51393 244
51394 244