SELECT 
  product_id, 
  group_id 
FROM 
  cscart_product_variation_group_products 
WHERE 
  group_id IN (
    154, 248, 184, 235, 233, 187, 253, 138, 
    189, 243, 134, 234, 142, 137, 150, 188, 
    183, 35, 186, 185, 149, 205, 136, 135, 
    123, 122, 180, 208, 224, 207, 218
  )

Query time 0.00055

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "55.91"
    },
    "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": 107,
      "rows_produced_per_join": 107,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_product_variation_group_products`.`group_id` in (154,248,184,235,233,187,253,138,189,243,134,234,142,137,150,188,183,35,186,185,149,205,136,135,123,122,180,208,224,207,218))",
      "cost_info": {
        "read_cost": "45.21",
        "eval_cost": "10.70",
        "prefix_cost": "55.91",
        "data_read_per_join": "1K"
      },
      "used_columns": [
        "product_id",
        "group_id"
      ]
    }
  }
}

Result

product_id group_id
82 35
51076 122
51073 122
51072 122
51074 122
51075 122
22711 122
22710 123
51077 123
51080 123
51078 123
51079 123
51132 134
51131 134
51134 134
51133 134
51130 134
41 134
51139 135
51138 135
51137 135
51136 135
51135 135
40 135
51144 136
51143 136
51142 136
51141 136
51140 136
39 136
51146 137
51145 137
38 137
51148 137
51147 137
51151 138
51150 138
51149 138
37 138
51169 142
51168 142
51167 142
51166 142
90 142
51171 142
51170 142
51205 149
51204 149
51203 149
51202 149
125 149
51209 150
51208 150
51207 150
51206 150
124 150
51221 154
137 154
51224 154
51223 154
51222 154
17 180
56 183
126 184
51295 185
117 185
116 186
115 187
81 188
11 189
106 205
58 207
57 208
5 218
51349 224
122 224
51357 233
79 233
51360 233
51359 233
51358 233
51361 234
30 234
51362 234
51363 234
51364 234
51365 234
31 235
51366 235
51367 235
51368 235
51369 235
140 243
51385 243
51386 243
51387 243
51388 243
51389 243
88 248
51395 248
51396 248
51397 248
51555 248
51556 248
80 253
51398 253
51399 253