#1
⏱️ 150.09 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"zikhron-yaakov"]
#2
⏱️ 278.39 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_slug" = ? and (exists (select 1 from "store_prices" where "store_prices"."master_product_id" = "master_products"."id" and "store_prices"."store_id" in (?, ?, ?, ?)) or exists (select 1 from "deals" where "deals"."master_product_id" = "master_products"."id" and "deals"."is_active" = ? and "deals"."store_id" in (?, ?, ?, ?)))
Bindings:
["baby",443,616,435,347,true,443,616,435,347]
#3
⏱️ 97.63 мс
select * from "master_products" where "barcode" is not null and "category_slug" = ? and (exists (select 1 from "store_prices" where "store_prices"."master_product_id" = "master_products"."id" and "store_prices"."store_id" in (?, ?, ?, ?)) or exists (select 1 from "deals" where "deals"."master_product_id" = "master_products"."id" and "deals"."is_active" = ? and "deals"."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:
["baby",443,616,435,347,true,443,616,435,347]
#4
⏱️ 15.13 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?)
Bindings:
[4987857,4985731,3123903,2864871,2634246,2634027,1474648,1434564,1434563,1434562,1434552,1434074,1434014,1432367,1432366,1432364,1432362,912218,912207,427384,310778,310777,310574,258269,211674,200449,200446,200431,200423,200421,198441,193780,true,443,616,435,347]
#5
⏱️ 11.05 мс
select * from "stores" where "stores"."id" in (347)
#6
⏱️ 14.77 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?)
Bindings:
[4987857,4985731,3123903,2864871,2634246,2634027,1474648,1434564,1434563,1434562,1434552,1434074,1434014,1432367,1432366,1432364,1432362,912218,912207,427384,310778,310777,310574,258269,211674,200449,200446,200431,200423,200421,198441,193780,0,443,616,435,347]
#7
⏱️ 0.73 мс
select * from "stores" where "stores"."id" in (347, 435, 443, 616)
#8
⏱️ 6.88 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"zikhron-yaakov"]
#9
⏱️ 50.17 мс
select store_id, count(*) as total from "deals" where "store_id" in (?, ?, ?, ?) and "is_active" = ? and ("expires_at" is null or "expires_at" >= ?) group by "store_id"
Bindings:
[443,616,435,347,true,"2026-10-22T19:14:31.241709Z"]
#10
⏱️ 6.8 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["zikhron-yaakov"]
#11
⏱️ 3.42 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#12
⏱️ 16.8 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]