SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    137, 88, 126, 31, 51358, 115, 80, 37, 11, 
    140, 41, 30, 90, 38, 124, 81, 56, 82, 116, 
    117, 125, 106, 39, 193, 40, 22710, 22711, 
    17, 57, 122, 58, 5
  )

Query time 0.00054

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "35.91"
    },
    "table": {
      "table_name": "cscart_warehouses_sum_products_amount",
      "access_type": "range",
      "possible_keys": [
        "PRIMARY"
      ],
      "key": "PRIMARY",
      "used_key_parts": [
        "product_id"
      ],
      "key_length": "3",
      "rows_examined_per_scan": 62,
      "rows_produced_per_join": 62,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (137,88,126,31,51358,115,80,37,11,140,41,30,90,38,124,81,56,82,116,117,125,106,39,193,40,22710,22711,17,57,122,58,5))",
      "cost_info": {
        "read_cost": "29.71",
        "eval_cost": "6.20",
        "prefix_cost": "35.91",
        "data_read_per_join": "992"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
5 13
5 13
11 100
11 100
17 32
17 32
30 4
30 4
31 3
31 3
37 1
37 1
38 2
38 2
39 3
39 3
40 3
40 3
41 3
41 3
56 103
56 103
57 35
57 35
58 35
58 35
80 3
80 3
81 31
81 31
88 18
88 18
90 1
90 1
106 22
106 22
115 7
115 7
116 3
116 3
117 13
117 13
122 30
122 30
124 7
124 7
125 6
125 6
126 108
126 108
137 1
137 1
140 7
140 7
22710 16
22710 16
22711 12
22711 12
51358 9
51358 9