#2
⏱️ 478.15 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_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:
["drinks","alcohol",738,469,155,342,true,738,469,155,342]
#3
⏱️ 455.79 мс
select * from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_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:
["drinks","alcohol",738,469,155,342,true,738,469,155,342]
#4
⏱️ 16.51 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?)
Bindings:
[189826,168880,166902,162990,158934,154453,134890,133973,127622,127552,123009,115455,115454,114735,114344,113573,112584,111464,108718,108410,108408,106898,106896,105363,105360,105329,105328,105088,104868,104767,104764,104761,true,738,469,155,342]
#6
⏱️ 15.09 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?)
Bindings:
[189826,168880,166902,162990,158934,154453,134890,133973,127622,127552,123009,115455,115454,114735,114344,113573,112584,111464,108718,108410,108408,106898,106896,105363,105360,105329,105328,105088,104868,104767,104764,104761,0,738,469,155,342]