SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_sum_products_amount 
WHERE 
  1 
  AND product_id IN (
    22, 18, 27, 121, 119, 141, 23, 4, 142, 120, 
    62, 108, 107, 94, 8, 86, 54, 132, 10, 93, 
    12, 32, 7, 130, 35, 16, 112, 3, 78, 33, 
    2, 110
  )

Query time 0.00060

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "37.26"
    },
    "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": 65,
      "rows_produced_per_join": 65,
      "filtered": "100.00",
      "index_condition": "(`test_uchur_k`.`cscart_warehouses_sum_products_amount`.`product_id` in (22,18,27,121,119,141,23,4,142,120,62,108,107,94,8,86,54,132,10,93,12,32,7,130,35,16,112,3,78,33,2,110))",
      "cost_info": {
        "read_cost": "30.76",
        "eval_cost": "6.50",
        "prefix_cost": "37.26",
        "data_read_per_join": "1K"
      },
      "used_columns": [
        "product_id",
        "amount"
      ]
    }
  }
}

Result

product_id amount
2 120
2 120
3 8
3 8
4 15
4 15
7 2
7 2
8 3
8 3
10 38
10 38
12 3
12 3
16 23
16 23
18 34
18 34
22 8
22 8
23 19
23 19
27 4
27 4
32 1
32 1
33 2
33 2
35 3
35 3
54 3
54 3
62 20
62 20
78 3
78 3
86 27
86 27
93 1
93 1
94 1
94 1
107 17
107 17
108 10
108 10
110 3
110 3
112 10
112 10
119 27
119 27
120 25
120 25
121 22
121 22
130 2
130 2
132 53
132 53
141 11
141 11
142 12
142 12