#2
⏱️ 1452.49 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "master_products"."id" in ((select "master_product_id" from "store_prices" where "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) union (select "master_product_id" from "deals" where "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)))
Bindings:
[1108,762,1133,1198,1205,585,637,56,100,159,460,511,656,659,692,140,230,346,316,364,true,1108,762,1133,1198,1205,585,637,56,100,159,460,511,656,659,692,140,230,346,316,364]
#3
⏱️ 422.74 мс
select * from "master_products" where "barcode" is not null and "master_products"."id" in ((select "master_product_id" from "store_prices" where "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) union (select "master_product_id" from "deals" where "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?))) order by CASE WHEN master_products.image_url IS NOT NULL AND master_products.image_url != '' THEN 0 ELSE 1 END, "master_products"."id" desc limit 96 offset 0
Bindings:
[1108,762,1133,1198,1205,585,637,56,100,159,460,511,656,659,692,140,230,346,316,364,true,1108,762,1133,1198,1205,585,637,56,100,159,460,511,656,659,692,140,230,346,316,364]
#4
⏱️ 95.27 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[117894874,117894862,117041541,117041540,117041539,117041538,113787716,112375610,108808721,105876215,91874114,88742449,86897098,84869830,82942479,81243843,78860214,78531197,76754704,76562686,75165094,74076446,72978997,66413048,65764228,64064994,63805154,56283367,56112702,56108690,56108688,56108187,56108186,55055286,54481923,54411455,42625503,42575457,42476629,42476627,42476625,39028558,38847180,38673323,37085091,36637160,34793660,34414162,34206024,34206023,34205246,34105135,32430635,32335444,32080559,30721319,30721315,30691571,30588986,30247410,30113423,30060444,28401773,27815085,27628022,27408007,25603232,25491028,25216901,24848918,24338782,13907412,13083234,13083233,13020236,12854974,12854973,12854972,12852012,12851980,12851979,12851978,12721528,12721432,12721431,12359404,12337042,12214467,12201255,12196449,12196440,12196436,12096078,11135534,11134316,10880869,true,1108,762,1133,1198,1205,585,637,56,100,159,460,511,656,659,692,140,230,346,316,364]
#6
⏱️ 24.44 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[117894874,117894862,117041541,117041540,117041539,117041538,113787716,112375610,108808721,105876215,91874114,88742449,86897098,84869830,82942479,81243843,78860214,78531197,76754704,76562686,75165094,74076446,72978997,66413048,65764228,64064994,63805154,56283367,56112702,56108690,56108688,56108187,56108186,55055286,54481923,54411455,42625503,42575457,42476629,42476627,42476625,39028558,38847180,38673323,37085091,36637160,34793660,34414162,34206024,34206023,34205246,34105135,32430635,32335444,32080559,30721319,30721315,30691571,30588986,30247410,30113423,30060444,28401773,27815085,27628022,27408007,25603232,25491028,25216901,24848918,24338782,13907412,13083234,13083233,13020236,12854974,12854973,12854972,12852012,12851980,12851979,12851978,12721528,12721432,12721431,12359404,12337042,12214467,12201255,12196449,12196440,12196436,12096078,11135534,11134316,10880869,0,1108,762,1133,1198,1205,585,637,56,100,159,460,511,656,659,692,140,230,346,316,364]
#9
⏱️ 203.39 мс
select store_id, count(*) as total from "deals" where "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and ("expires_at" is null or "expires_at" >= ?) group by "store_id"
Bindings:
[1108,762,1133,1198,1205,585,637,56,100,159,460,511,656,659,692,140,346,316,364,true,"2026-10-26T04:12:12.990052Z"]