#2
⏱️ 5193.7 мс
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:
[704,712,733,720,770,203,604,628,157,423,540,543,609,209,250,334,true,704,712,733,720,770,203,604,628,157,423,540,543,609,209,250,334]
#3
⏱️ 2137.62 мс
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:
[704,712,733,720,770,203,604,628,157,423,540,543,609,209,250,334,true,704,712,733,720,770,203,604,628,157,423,540,543,609,209,250,334]
#4
⏱️ 39.45 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[146337403,135926174,129895076,129892744,123598337,119993800,118005752,117894874,117894862,117041541,117041539,117041538,115671723,112460975,111364918,110640879,108808721,108787969,91874114,89617436,85061004,85059377,81853314,81154376,79662057,78963913,78963912,78531197,76754704,75165094,74076446,73864860,72978997,70704639,66413048,63265682,61866507,56283367,56112702,56109693,56108690,56108688,56108187,56108186,55133359,55055286,54431099,54393762,54326693,42625503,42575457,42476629,42476627,42476625,39028558,38847180,37085091,36637161,36601256,36527595,34793660,34205246,32652869,32430635,32387955,32335444,32080559,30721319,30721315,30691571,30247410,30168882,30060444,28401773,27883716,27815085,27408007,25912188,25603232,25491028,25216901,24848918,24332368,14970397,13907412,13083234,13083233,13083232,13020236,12852012,12851980,12851979,12851978,12721529,12721528,12721432,true,704,712,733,720,770,203,604,628,157,423,540,543,609,209,250,334]
#6
⏱️ 46.83 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[146337403,135926174,129895076,129892744,123598337,119993800,118005752,117894874,117894862,117041541,117041539,117041538,115671723,112460975,111364918,110640879,108808721,108787969,91874114,89617436,85061004,85059377,81853314,81154376,79662057,78963913,78963912,78531197,76754704,75165094,74076446,73864860,72978997,70704639,66413048,63265682,61866507,56283367,56112702,56109693,56108690,56108688,56108187,56108186,55133359,55055286,54431099,54393762,54326693,42625503,42575457,42476629,42476627,42476625,39028558,38847180,37085091,36637161,36601256,36527595,34793660,34205246,32652869,32430635,32387955,32335444,32080559,30721319,30721315,30691571,30247410,30168882,30060444,28401773,27883716,27815085,27408007,25912188,25603232,25491028,25216901,24848918,24332368,14970397,13907412,13083234,13083233,13083232,13020236,12852012,12851980,12851979,12851978,12721529,12721528,12721432,0,704,712,733,720,770,203,604,628,157,423,540,543,609,209,250,334]