#6
⏱️ 24.38 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?)
Bindings:
[75165094,74076446,72978997,66413048,56283367,39028558,8775857,7529293,7493489,7065236,6778985,6745776,6744655,6730411,6708345,5305199,4991109,4991108,4991102,4991097,4991094,4991092,4991049,4991048,4991028,4991027,4990963,4990962,4990961,4990945,4990895,4990894,4990873,4990872,4990849,4990833,4990828,4990825,4990823,4990804,4990789,4990772,4990767,4990765,4990750,4990715,4990619,4990596,4990576,4990547,4990523,4990456,4990374,4990373,4990354,4990353,4990129,4990037,4989971,4989961,4989871,4989781,4989777,4989772,4989767,4989766,4989750,4989747,4989543,4988918,4988886,4988885,4988852,4988820,4988808,4988786,4988774,4988768,4988706,4988698,4988697,4988696,4988681,4988675,4988647,4988581,4988576,4988535,4988498,4988403,4988288,4988287,4988283,4988282,4988227,4988219,8775862,8775826,8775829,8775837,8775838,8775841,8775842,8775845,8775843,8775844,8775847,8775846,8775848,8775850,8775851,8775859,8775861,8775867,8775868,4533490,7696015,8775839,8775858,8775856,8775860,8775863,8775864,4869230,4619338,8775828,8775830,112362,8775832,8775833,8775836,8775865,8775825,8775840,8775866,8775849,8775853,8775855,2642425,2645047,8775852,8775854,8775869,8775827,8775831,8775834,8775835,189745,190787,2671007,199939,true,445,623]
#7
⏱️ 29.23 мс
select min(sp.id) as best_sp_id from "store_prices" as "sp" where "sp"."master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "sp"."price" > ? and "sp"."store_id" in (?, ?) group by sp.store_id, CASE WHEN sp.master_product_id = 8775862 THEN 8775857 WHEN sp.master_product_id = 8775826 THEN 8775857 WHEN sp.master_product_id = 8775829 THEN 8775857 WHEN sp.master_product_id = 8775837 THEN 8775857 WHEN sp.master_product_id = 8775838 THEN 8775857 WHEN sp.master_product_id = 8775841 THEN 8775857 WHEN sp.master_product_id = 8775842 THEN 8775857 WHEN sp.master_product_id = 8775845 THEN 8775857 WHEN sp.master_product_id = 8775843 THEN 8775857 WHEN sp.master_product_id = 8775844 THEN 8775857 WHEN sp.master_product_id = 8775847 THEN 8775857 WHEN sp.master_product_id = 8775846 THEN 8775857 WHEN sp.master_product_id = 8775848 THEN 8775857 WHEN sp.master_product_id = 8775850 THEN 8775857 WHEN sp.master_product_id = 8775851 THEN 8775857 WHEN sp.master_product_id = 8775859 THEN 8775857 WHEN sp.master_product_id = 8775861 THEN 8775857 WHEN sp.master_product_id = 8775867 THEN 8775857 WHEN sp.master_product_id = 8775868 THEN 8775857 WHEN sp.master_product_id = 4533490 THEN 8775857 WHEN sp.master_product_id = 7696015 THEN 8775857 WHEN sp.master_product_id = 8775839 THEN 8775857 WHEN sp.master_product_id = 8775858 THEN 8775857 WHEN sp.master_product_id = 8775856 THEN 8775857 WHEN sp.master_product_id = 8775860 THEN 8775857 WHEN sp.master_product_id = 8775863 THEN 8775857 WHEN sp.master_product_id = 8775864 THEN 8775857 WHEN sp.master_product_id = 8775857 THEN 8775857 WHEN sp.master_product_id = 4869230 THEN 8775857 WHEN sp.master_product_id = 4619338 THEN 8775857 WHEN sp.master_product_id = 8775828 THEN 8775857 WHEN sp.master_product_id = 7529293 THEN 7529293 WHEN sp.master_product_id = 8775830 THEN 8775857 WHEN sp.master_product_id = 112362 THEN 7529293 WHEN sp.master_product_id = 8775832 THEN 8775857 WHEN sp.master_product_id = 8775833 THEN 8775857 WHEN sp.master_product_id = 8775836 THEN 8775857 WHEN sp.master_product_id = 8775865 THEN 8775857 WHEN sp.master_product_id = 8775825 THEN 8775857 WHEN sp.master_product_id = 8775840 THEN 8775857 WHEN sp.master_product_id = 8775866 THEN 8775857 WHEN sp.master_product_id = 8775849 THEN 8775857 WHEN sp.master_product_id = 8775853 THEN 8775857 WHEN sp.master_product_id = 8775855 THEN 8775857 WHEN sp.master_product_id = 2642425 THEN 8775857 WHEN sp.master_product_id = 2645047 THEN 8775857 WHEN sp.master_product_id = 8775852 THEN 8775857 WHEN sp.master_product_id = 8775854 THEN 8775857 WHEN sp.master_product_id = 8775869 THEN 8775857 WHEN sp.master_product_id = 8775827 THEN 8775857 WHEN sp.master_product_id = 8775831 THEN 8775857 WHEN sp.master_product_id = 8775834 THEN 8775857 WHEN sp.master_product_id = 8775835 THEN 8775857 WHEN sp.master_product_id = 189745 THEN 8775857 WHEN sp.master_product_id = 190787 THEN 8775857 WHEN sp.master_product_id = 2671007 THEN 8775857 WHEN sp.master_product_id = 199939 THEN 8775857 ELSE sp.master_product_id END limit 500
Bindings:
[75165094,74076446,72978997,66413048,56283367,39028558,8775857,7529293,7493489,7065236,6778985,6745776,6744655,6730411,6708345,5305199,4991109,4991108,4991102,4991097,4991094,4991092,4991049,4991048,4991028,4991027,4990963,4990962,4990961,4990945,4990895,4990894,4990873,4990872,4990849,4990833,4990828,4990825,4990823,4990804,4990789,4990772,4990767,4990765,4990750,4990715,4990619,4990596,4990576,4990547,4990523,4990456,4990374,4990373,4990354,4990353,4990129,4990037,4989971,4989961,4989871,4989781,4989777,4989772,4989767,4989766,4989750,4989747,4989543,4988918,4988886,4988885,4988852,4988820,4988808,4988786,4988774,4988768,4988706,4988698,4988697,4988696,4988681,4988675,4988647,4988581,4988576,4988535,4988498,4988403,4988288,4988287,4988283,4988282,4988227,4988219,8775862,8775826,8775829,8775837,8775838,8775841,8775842,8775845,8775843,8775844,8775847,8775846,8775848,8775850,8775851,8775859,8775861,8775867,8775868,4533490,7696015,8775839,8775858,8775856,8775860,8775863,8775864,4869230,4619338,8775828,8775830,112362,8775832,8775833,8775836,8775865,8775825,8775840,8775866,8775849,8775853,8775855,2642425,2645047,8775852,8775854,8775869,8775827,8775831,8775834,8775835,189745,190787,2671007,199939,0,445,623]
#8
⏱️ 30.71 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[2222890,13351375,10961278,10961418,10952464,2223582,10976534,29590079,2218534,2221305,77882816,56216459,77906535,77906534,67863255,12359548,12359556,12359611,12359612,12359616,12359617,12359732,12359827,12359864,12359905,12359910,12360476,12360504,12360510,12360525,12360526,12360527,12360535,12360597,12360603,12360615,12360637,12360649,12360681,12360714,12360715,12360747,12361477,12361683,12361686,12361702,12361703,12361708,12361713,12361717,12361807,12361897,12361907,12361973,12362065,12362289,12362290,12362309,12362310,12362392,12362459,12362483,12362512,12362532,12362555,12362651,12362686,12362701,12362703,12362708,12362725,12362740,12362759,12362761,12362764,12362769,12362785,12362808,12362809,12362830,12362831,12362881,12362897,12362898,12362899,12362963,12362964,12362984,12362985,12350019,12350021,12350024,12350029,12350035,12350036,14208611,3006527,75628038,75628030]