SELECT 
  product_id, 
  amount 
FROM 
  cscart_warehouses_destination_products_amount 
WHERE 
  product_id IN (
    5, 
    11, 
    17, 
    21, 
    30, 
    31, 
    37, 
    38, 
    39, 
    40, 
    41, 
    46, 
    48, 
    49, 
    50, 
    51, 
    53, 
    56, 
    57, 
    58, 
    79, 
    80, 
    81, 
    82, 
    88, 
    90, 
    91, 
    92, 
    105, 
    106, 
    115, 
    116, 
    117, 
    122, 
    124, 
    125, 
    126, 
    129, 
    137, 
    138, 
    139, 
    140, 
    21567, 
    22710, 
    22711, 
    22712, 
    22713, 
    22714, 
    22715, 
    22716, 
    50989, 
    51072, 
    51073, 
    51074, 
    51075, 
    51076, 
    51077, 
    51078, 
    51079, 
    51080, 
    51081, 
    51082, 
    51083, 
    51084, 
    51085, 
    51086, 
    51087, 
    51088, 
    51089, 
    51090, 
    51091, 
    51092, 
    51093, 
    51094, 
    51095, 
    51096, 
    51097, 
    51098, 
    51099, 
    51100, 
    51101, 
    51102, 
    51103, 
    51104, 
    51105, 
    51119, 
    51120, 
    51121, 
    51122, 
    51123, 
    51124, 
    51125, 
    51126, 
    51127, 
    51128, 
    51129, 
    51130, 
    51131, 
    51132, 
    51133, 
    51134, 
    51135, 
    51136, 
    51137, 
    51138, 
    51139, 
    51140, 
    51141, 
    51142, 
    51143, 
    51144, 
    51145, 
    51146, 
    51147, 
    51148, 
    51149, 
    51150, 
    51151, 
    51152, 
    51153, 
    51154, 
    51155, 
    51156, 
    51157, 
    51158, 
    51159, 
    51160, 
    51166, 
    51167, 
    51168, 
    51169, 
    51170, 
    51171, 
    51172, 
    51173, 
    51174, 
    51175, 
    51176, 
    51202, 
    51203, 
    51204, 
    51205, 
    51206, 
    51207, 
    51208, 
    51209, 
    51221, 
    51222, 
    51223, 
    51224, 
    51295, 
    51296, 
    51297, 
    51298, 
    51299, 
    51300, 
    51301, 
    51302, 
    51303, 
    51304, 
    51305, 
    51306, 
    51307, 
    51308, 
    51309, 
    51315, 
    51316, 
    51317, 
    51318, 
    51319, 
    51320, 
    51321, 
    51322, 
    51323, 
    51324, 
    51349, 
    51357, 
    51358, 
    51359, 
    51360, 
    51361, 
    51362, 
    51363, 
    51364, 
    51365, 
    51366, 
    51367, 
    51368, 
    51369, 
    51370, 
    51371, 
    51372, 
    51373, 
    51385, 
    51386, 
    51387, 
    51388, 
    51389, 
    51395, 
    51396, 
    51397, 
    51398, 
    51399, 
    51443, 
    51452, 
    51453, 
    51496, 
    51497, 
    51498, 
    51555, 
    51556, 
    51564, 
    51565, 
    51566, 
    51567, 
    51568, 
    51569, 
    51570, 
    51571, 
    51572, 
    51573, 
    51574, 
    51575, 
    51576, 
    51577, 
    51578, 
    51579, 
    51580, 
    51581, 
    51582, 
    51583, 
    51584, 
    51585, 
    51586
  ) 
  AND destination_id = 116 
  AND storefront_id = 1

Query time 0.00279

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "156.71"
    },
    "table": {
      "table_name": "cscart_warehouses_destination_products_amount",
      "access_type": "ref",
      "possible_keys": [
        "PRIMARY",
        "idx_storefront_id"
      ],
      "key": "idx_storefront_id",
      "used_key_parts": [
        "storefront_id"
      ],
      "key_length": "3",
      "ref": [
        "const"
      ],
      "rows_examined_per_scan": 1516,
      "rows_produced_per_join": 75,
      "filtered": "5.00",
      "cost_info": {
        "read_cost": "5.11",
        "eval_cost": "7.58",
        "prefix_cost": "156.71",
        "data_read_per_join": "1K"
      },
      "used_columns": [
        "destination_id",
        "storefront_id",
        "product_id",
        "amount"
      ],
      "attached_condition": "((`test_uchur_k`.`cscart_warehouses_destination_products_amount`.`destination_id` = 116) and (`test_uchur_k`.`cscart_warehouses_destination_products_amount`.`product_id` in (5,11,17,21,30,31,37,38,39,40,41,46,48,49,50,51,53,56,57,58,79,80,81,82,88,90,91,92,105,106,115,116,117,122,124,125,126,129,137,138,139,140,21567,22710,22711,22712,22713,22714,22715,22716,50989,51072,51073,51074,51075,51076,51077,51078,51079,51080,51081,51082,51083,51084,51085,51086,51087,51088,51089,51090,51091,51092,51093,51094,51095,51096,51097,51098,51099,51100,51101,51102,51103,51104,51105,51119,51120,51121,51122,51123,51124,51125,51126,51127,51128,51129,51130,51131,51132,51133,51134,51135,51136,51137,51138,51139,51140,51141,51142,51143,51144,51145,51146,51147,51148,51149,51150,51151,51152,51153,51154,51155,51156,51157,51158,51159,51160,51166,51167,51168,51169,51170,51171,51172,51173,51174,51175,51176,51202,51203,51204,51205,51206,51207,51208,51209,51221,51222,51223,51224,51295,51296,51297,51298,51299,51300,51301,51302,51303,51304,51305,51306,51307,51308,51309,51315,51316,51317,51318,51319,51320,51321,51322,51323,51324,51349,51357,51358,51359,51360,51361,51362,51363,51364,51365,51366,51367,51368,51369,51370,51371,51372,51373,51385,51386,51387,51388,51389,51395,51396,51397,51398,51399,51443,51452,51453,51496,51497,51498,51555,51556,51564,51565,51566,51567,51568,51569,51570,51571,51572,51573,51574,51575,51576,51577,51578,51579,51580,51581,51582,51583,51584,51585,51586)))"
    }
  }
}

Result

product_id amount
51358 9
50989 13
51301 8
51443 4
51399 3
51398 1
51397 9
51396 11
51395 22
51389 5
51388 5
51387 9
51386 9
51385 10
51373 13
51372 5
51371 10
51370 3
51369 2
51368 3
51367 4
51366 4
51365 1
51364 3
51363 6
51362 6
51361 4
51360 2
51359 7
51357 10
51349 30
51324 2
51323 2
51322 2
51321 2
51320 2
51319 2
51318 2
51317 1
51316 2
51315 0
51309 2
51308 3
51307 4
51306 3
51305 3
51304 7
51303 6
51302 12
51300 3
51299 3
51298 1
51297 3
51296 3
51150 1
51151 0
51152 2
51087 7
51088 4
51089 2
51090 1
51091 7
51092 3
51095 1
51096 8
51097 8
51098 5
51099 2
51100 2
51081 8
51082 8
51083 3
51084 0
51085 1
51086 7
51295 13
51077 16
51078 13
51079 13
51080 5
51072 22
51206 5
51207 9
51073 14
51074 7
51075 1
51076 1
51202 5
51203 9
51204 6
51205 3
51136 8
51137 8
51138 2
51139 2
51119 0
51120 0
51121 2
51122 1
51123 2
51167 1
51168 1
51169 1
51170 1
51171 1
51145 7
51146 6
51147 4
51148 1
51160 5
51127 3
51128 2
51129 2
51149 1
51221 1
51222 0
51140 6
51141 6
51142 6
51143 3
51144 2
51208 4
51209 3
51223 1
51094 0
51159 4
51130 8
51131 6
51132 8
51133 2
51134 2
51135 8
51124 0
51125 5
51126 5
51093 6
51224 1
51172 3
51173 3
51174 1
51175 0
51176 1
51101 8
51102 6
51103 5
51104 0
51105 2
51153 2
51154 3
51155 1
51156 8
51157 6
51158 6
51166 1
90 1
53 5
22712 5
91 1
48 1
49 1
40 3
41 3
137 1
37 1
38 2
126 108
56 103
92 1
17 32
125 6
124 7
22715 2
39 3
22710 16
116 3
115 7
117 13
22713 4
22716 5
22714 4
21 2
22711 12
81 31
11 100
139 7
138 9
129 3
51 2
50 2
106 22
105 25
58 35
57 35
5 13
122 30
79 0
30 4
31 3
46 6
140 7
88 18
80 3
51452 8
51453 10
51496 30
51497 30
51498 30
51555 10
51556 9
51564 1
51568 2
51569 2
51570 2
51571 2
51572 1
51573 1
51565 1
51574 2
51575 2
51576 3
51577 1
51566 2
51578 2
51579 1
51580 1
51581 1
51567 2
51582 4
51583 6
51584 4
51585 2
51586 1