#2
⏱️ 407.85 мс
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:
["pharmacy",347,443,616,435,true,347,443,616,435]
#3
⏱️ 292.53 мс
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:
["pharmacy",347,443,616,435,true,347,443,616,435]
#4
⏱️ 10.09 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?)
Bindings:
[2799780,1912771,1717061,1433034,1419941,703670,703264,703188,703135,640737,539618,539300,539208,427358,284999,284979,278471,252882,252879,245827,200408,200214,200102,200056,194773,190577,190187,190032,190027,190019,189909,189889,true,347,443,616,435]
#6
⏱️ 12.8 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?)
Bindings:
[2799780,1912771,1717061,1433034,1419941,703670,703264,703188,703135,640737,539618,539300,539208,427358,284999,284979,278471,252882,252879,245827,200408,200214,200102,200056,194773,190577,190187,190032,190027,190019,189909,189889,0,347,443,616,435]