#2
⏱️ 338.53 мс
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:
["meat","fish",741,195,true,741,195]
#3
⏱️ 110.93 мс
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:
["meat","fish",741,195,true,741,195]
#4
⏱️ 18.41 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?)
Bindings:
[111564,8775766,8775765,8775764,8775763,8775762,8775761,4734574,2770246,2769276,2615936,2614530,2613070,2612052,2609898,2609480,2608339,2607676,2607115,1456380,193499,193497,193129,115800,115794,115793,115708,115698,115697,115696,115683,115550,true,741,195]
#6
⏱️ 21.6 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?)
Bindings:
[111564,8775766,8775765,8775764,8775763,8775762,8775761,4734574,2770246,2769276,2615936,2614530,2613070,2612052,2609898,2609480,2608339,2607676,2607115,1456380,193499,193497,193129,115800,115794,115793,115708,115698,115697,115696,115683,115550,0,741,195]