SELECT 
  product_id, 
  group_id 
FROM 
  cscart_product_variation_group_products 
WHERE 
  group_id IN (
    260, 258, 257, 190, 192, 259, 191, 194, 
    195, 255, 256, 140, 125, 139, 126, 128, 
    236, 124, 127, 254, 102, 143, 214, 204, 
    206, 133, 132, 131, 154, 248, 184, 235
  )

Query time 0.00091

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": 167,
      "filtered": "33.33",
      "using_index": true,
      "cost_info": {
        "read_cost": "34.21",
        "eval_cost": "16.70",
        "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 (260,258,257,190,192,259,191,194,195,255,256,140,125,139,126,128,236,124,127,254,102,143,214,204,206,133,132,131,154,248,184,235))"
    }
  }
}

Result

product_id group_id
21 139
31 235
46 236
47 204
48 133
49 132
50 195
51 194
53 140
88 248
91 143
92 131
105 206
126 184
129 192
137 154
138 191
139 190
21567 102
22712 128
22713 125
22714 126
22715 124
22716 127
50989 214
51081 124
51082 124
51083 124
51084 124
51085 124
51086 125
51087 125
51088 125
51089 125
51090 125
51091 126
51092 126
51093 126
51094 126
51095 126
51096 127
51097 127
51098 127
51099 127
51100 127
51101 128
51102 128
51103 128
51104 128
51105 128
51119 131
51120 131
51121 131
51122 131
51123 131
51124 132
51125 133
51126 133
51127 133
51128 133
51129 133
51152 139
51153 139
51154 139
51155 139
51156 140
51157 140
51158 140
51159 140
51160 140
51172 143
51173 143
51174 143
51175 143
51176 143
51221 154
51222 154
51223 154
51224 154
51296 190
51297 190
51298 190
51299 190
51300 190
51301 191
51302 191
51303 191
51304 191
51305 192
51306 192
51307 192
51308 192
51309 192
51315 194
51316 194
51317 194
51318 194
51319 194
51320 195
51321 195
51322 195
51323 195
51324 195
51340 204
51341 204
51342 204
51343 204
51366 235
51367 235
51368 235
51369 235
51370 236
51371 236
51372 236
51373 236
51395 248
51396 248
51397 248
51443 191
51452 236
51453 236
51496 254
51497 255
51498 256
51555 248
51556 248
51564 257
51565 258
51566 259
51567 260
51568 257
51569 257
51570 257
51571 257
51572 257
51573 257
51574 258
51575 258
51576 258
51577 258
51578 259
51579 259
51580 259
51581 259
51582 260
51583 260
51584 260
51585 260
51586 260