#2
⏱️ 1923.35 мс
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:
[2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,494,560,652,1380,358,383,198,true,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,494,560,652,1380,358,383,198]
#3
⏱️ 747.9 мс
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:
[2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,494,560,652,1380,358,383,198,true,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,494,560,652,1380,358,383,198]
#4
⏱️ 85.05 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[136314781,129895076,129892744,124010385,123598337,117894874,117894862,117041541,117041540,117041539,117041538,114466133,112375610,108808721,108787969,106033304,105876215,91874114,86897098,84869830,81243843,81029749,78860214,78531197,76754704,75165094,74076446,73864860,72978997,68090455,66413048,65764228,63805154,61866507,56283367,56112702,56109693,56108690,56108688,56108187,56108186,55055286,54481923,54431099,54411455,54393762,54327960,54326693,42625503,42575457,42476629,42476627,42476625,39028558,38847180,38810854,38673323,37085091,36637161,36637160,36601256,34793660,34414162,34206024,34206023,34205246,34105135,32430635,32335444,32080559,31021428,30721319,30721315,30691571,30247410,30060444,28401773,27883716,27815085,27628022,27408007,25603232,25491028,25216901,24848918,24338565,13907417,13907412,13083234,13083233,13083232,13076851,13020236,12852012,12851980,12851979,true,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,494,560,652,1380,358,383,198]
#6
⏱️ 30.79 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[136314781,129895076,129892744,124010385,123598337,117894874,117894862,117041541,117041540,117041539,117041538,114466133,112375610,108808721,108787969,106033304,105876215,91874114,86897098,84869830,81243843,81029749,78860214,78531197,76754704,75165094,74076446,73864860,72978997,68090455,66413048,65764228,63805154,61866507,56283367,56112702,56109693,56108690,56108688,56108187,56108186,55055286,54481923,54431099,54411455,54393762,54327960,54326693,42625503,42575457,42476629,42476627,42476625,39028558,38847180,38810854,38673323,37085091,36637161,36637160,36601256,34793660,34414162,34206024,34206023,34205246,34105135,32430635,32335444,32080559,31021428,30721319,30721315,30691571,30247410,30060444,28401773,27883716,27815085,27628022,27408007,25603232,25491028,25216901,24848918,24338565,13907417,13907412,13083234,13083233,13083232,13076851,13020236,12852012,12851980,12851979,0,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,494,560,652,1380,358,383,198]