SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    34, 89, 114, 77, 147, 36, 87, 128, 96, 20, 
    52, 66, 84, 109, 118, 19, 131, 146, 13, 
    61, 95, 15, 9, 85, 22421, 83, 111, 59, 
    22424, 144, 123, 60
  )

Query time 0.00061

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "35.01"
    },
    "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": 60,
      "rows_produced_per_join": 60,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (34,89,114,77,147,36,87,128,96,20,52,66,84,109,118,19,131,146,13,61,95,15,9,85,22421,83,111,59,22424,144,123,60))",
      "cost_info": {
        "read_cost": "29.01",
        "eval_cost": "6.00",
        "prefix_cost": "35.01",
        "data_read_per_join": "960"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
9 36
9 36
13 20
13 20
15 31
15 31
19 3
19 3
20 2
20 2
34 3
34 3
36 3
36 3
52 2
52 2
59 14
59 14
60 29
60 29
61 12
61 12
66 9
66 9
77 3
77 3
83 1
83 1
84 18
84 18
85 70
85 70
87 9
87 9
89 8
89 8
95 13
95 13
96 4
96 4
109 3
109 3
111 1
111 1
114 25
114 25
118 20
118 20
123 21
123 21
128 3
128 3
131 2
131 2
144 4
144 4
146 4
146 4
147 2
147 2
22421 4
22421 4
22424 2
22424 2