#2
⏱️ 281.23 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_slug" = ? 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:
["household",646,142,true,646,142]
#3
⏱️ 128.98 мс
select * from "master_products" where "barcode" is not null and "category_slug" = ? 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 32 offset 0
Bindings:
["household",646,142,true,646,142]
#4
⏱️ 8.25 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?)
Bindings:
[2413856,1452544,1452543,1349689,1164362,944657,756800,752419,750013,750008,737769,689450,689449,689448,687794,685063,684972,684626,681440,557209,531939,509326,509305,509223,509171,509170,509103,509102,464636,438391,438372,418070,true,646,142]
#6
⏱️ 4.99 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?)
Bindings:
[2413856,1452544,1452543,1349689,1164362,944657,756800,752419,750013,750008,737769,689450,689449,689448,687794,685063,684972,684626,681440,557209,531939,509326,509305,509223,509171,509170,509103,509102,464636,438391,438372,418070,0,646,142]