#2
⏱️ 197.5 мс
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",445,623,true,445,623]
#3
⏱️ 126.7 мс
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",445,623,true,445,623]
#4
⏱️ 5.55 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?)
Bindings:
[1433034,1420947,703670,703264,703135,539618,539300,539208,200408,200214,200056,194773,190577,190032,190019,189823,184122,169929,169392,169373,169081,165852,165851,164730,164729,164725,164724,164723,164381,161695,154161,154160,true,445,623]
#5
⏱️ 6.05 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?)
Bindings:
[1433034,1420947,703670,703264,703135,539618,539300,539208,200408,200214,200056,194773,190577,190032,190019,189823,184122,169929,169392,169373,169081,165852,165851,164730,164729,164725,164724,164723,164381,161695,154161,154160,0,445,623]