SELECT 
  product_id, 
  group_id 
FROM 
  cscart_product_variation_group_products 
WHERE 
  group_id IN (
    176, 181, 175, 212, 223, 174, 177, 217, 
    170, 211, 173, 216, 219, 167, 166, 210, 
    193, 148, 144, 156, 161, 165, 129, 158, 
    182, 160, 244, 162, 215, 159, 164, 157, 
    130, 229, 145, 141, 220, 213, 155, 147, 
    146, 179, 225, 153, 228, 227, 168, 221, 
    151, 171, 172, 152, 226
  )

Query time 0.00094

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "50.90"
    },
    "table": {
      "table_name": "cscart_product_variation_group_products",
      "access_type": "index",
      "possible_keys": [
        "idx_group_id"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "product_id",
        "group_id"
      ],
      "key_length": "6",
      "rows_examined_per_scan": 501,
      "rows_produced_per_join": 181,
      "filtered": "36.33",
      "using_index": true,
      "cost_info": {
        "read_cost": "32.71",
        "eval_cost": "18.20",
        "prefix_cost": "50.91",
        "data_read_per_join": "2K"
      },
      "used_columns": [
        "product_id",
        "group_id"
      ],
      "attached_condition": "(`test_uchur_k`.`cscart_product_variation_group_products`.`group_id` in (176,181,175,212,223,174,177,217,170,211,173,216,219,167,166,210,193,148,144,156,161,165,129,158,182,160,244,162,215,159,164,157,130,229,145,141,220,213,155,147,146,179,225,153,228,227,168,221,151,171,172,152,226))"
    }
  }
}

Result

product_id group_id
4 217
7 165
8 166
9 168
10 148
12 156
13 179
15 227
16 182
18 181
19 146
20 145
22 176
23 177
27 175
32 161
33 160
34 159
35 158
36 157
52 141
54 193
59 171
60 172
61 225
62 173
84 220
85 221
86 210
89 244
93 144
94 167
95 228
96 229
107 219
108 216
109 155
110 162
111 151
114 215
118 213
119 212
120 211
121 223
123 226
128 130
130 129
131 147
141 174
142 170
144 152
146 153
147 164
51106 129
51107 129
51108 129
51109 129
51110 129
51111 129
51112 129
51113 130
51114 130
51115 130
51116 130
51117 130
51118 130
51161 141
51162 141
51163 141
51164 141
51165 141
51177 144
51178 144
51179 144
51180 144
51181 144
51182 144
51183 145
51184 145
51185 145
51186 145
51187 145
51188 145
51189 146
51190 146
51191 146
51192 146
51193 146
51194 146
51195 147
51196 147
51197 147
51198 147
51199 147
51200 147
51201 147
51210 151
51211 151
51212 151
51213 152
51214 152
51215 152
51216 153
51217 153
51218 153
51219 153
51220 153
51225 155
51226 155
51227 155
51228 155
51229 155
51230 155
51231 155
51232 156
51233 156
51234 156
51235 156
51236 156
51237 156
51238 156
51239 157
51240 157
51241 157
51242 157
51243 157
51244 158
51245 158
51246 158
51247 158
51248 158
51249 159
51250 159
51251 159
51252 159
51253 159
51254 160
51255 160
51256 160
51257 161
51258 161
51259 162
51260 162
51261 162
51262 162
51263 162
51264 162
51265 162
51273 164
51274 164
51275 164
51276 164
51277 164
51278 165
51279 165
51280 165
51281 165
51282 165
51283 166
51284 166
51285 166
51286 166
51287 166
51288 166
51289 166
51290 167
51291 167
51292 167
51293 167
51294 167
51310 193
51311 193
51312 193
51313 193
51314 193
51344 211
51345 212
51346 213
51347 221
51348 223
51350 226
51351 229
51352 229
51390 244
51391 244
51392 244
51393 244
51394 244
51444 152
51445 152
51446 152
51447 152
51448 153
51449 153