#2
⏱️ 4938.48 мс
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:
[713,763,111,345,1153,1201,1255,1273,40,426,439,549,406,147,305,348,true,713,763,111,345,1153,1201,1255,1273,40,426,439,549,406,147,305,348]
#3
⏱️ 2712.24 мс
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:
[713,763,111,345,1153,1201,1255,1273,40,426,439,549,406,147,305,348,true,713,763,111,345,1153,1201,1255,1273,40,426,439,549,406,147,305,348]
#4
⏱️ 188.24 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[135730515,129895076,129892744,127649526,123604232,123598337,119993800,117041539,112375610,111364918,108808721,108787969,91874114,91870308,89617436,88742449,85061004,85059377,84869830,82942479,81853314,81296640,81029749,79662057,78963913,78963912,78531197,76754704,76339981,75165094,74076446,73966103,72978997,70704639,68090455,66413048,64064994,63805154,63265682,61866507,56283367,56112702,56109693,56108688,56108187,56108186,55055286,54411455,54393762,54327960,42625503,42575457,42476629,42476627,42476625,39028558,38847180,38673323,37085091,36637161,36637160,36527595,34793660,34414162,34289058,34206024,34206023,34205246,34105135,32335444,32080559,30721319,30721315,30060444,28401773,27883716,27628022,25491028,25216901,24893820,24848918,13020236,12852012,12851979,12851978,12721529,12721432,12721431,12436280,12359404,12337042,12230516,12214467,12201255,12196449,12196440,true,713,763,111,345,1153,1201,1255,1273,40,426,439,549,406,147,305,348]
#6
⏱️ 38.62 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[135730515,129895076,129892744,127649526,123604232,123598337,119993800,117041539,112375610,111364918,108808721,108787969,91874114,91870308,89617436,88742449,85061004,85059377,84869830,82942479,81853314,81296640,81029749,79662057,78963913,78963912,78531197,76754704,76339981,75165094,74076446,73966103,72978997,70704639,68090455,66413048,64064994,63805154,63265682,61866507,56283367,56112702,56109693,56108688,56108187,56108186,55055286,54411455,54393762,54327960,42625503,42575457,42476629,42476627,42476625,39028558,38847180,38673323,37085091,36637161,36637160,36527595,34793660,34414162,34289058,34206024,34206023,34205246,34105135,32335444,32080559,30721319,30721315,30060444,28401773,27883716,27628022,25491028,25216901,24893820,24848918,13020236,12852012,12851979,12851978,12721529,12721432,12721431,12436280,12359404,12337042,12230516,12214467,12201255,12196449,12196440,0,713,763,111,345,1153,1201,1255,1273,40,426,439,549,406,147,305,348]