#1
⏱️ 134.03 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"beit-shemesh"]
#2
⏱️ 352.01 мс
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:
["snacks",742,24,479,273,true,742,24,479,273]
#3
⏱️ 269.63 мс
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:
["snacks",742,24,479,273,true,742,24,479,273]
#4
⏱️ 20.22 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?)
Bindings:
[2701356,2067877,1458351,1458346,1452459,1433560,1227637,281449,251286,245555,243098,242656,242189,208252,208251,182438,182437,180263,169199,168863,166510,166486,165422,165076,164651,164650,164546,161397,160007,160006,159928,159467,true,742,24,479,273]
#5
⏱️ 10.26 мс
select * from "stores" where "stores"."id" in (24, 273)
#6
⏱️ 18.63 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?)
Bindings:
[2701356,2067877,1458351,1458346,1452459,1433560,1227637,281449,251286,245555,243098,242656,242189,208252,208251,182438,182437,180263,169199,168863,166510,166486,165422,165076,164651,164650,164546,161397,160007,160006,159928,159467,0,742,24,479,273]
#7
⏱️ 5.56 мс
select * from "stores" where "stores"."id" in (24, 273, 479)
#8
⏱️ 6.43 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"beit-shemesh"]
#9
⏱️ 40.16 мс
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:
[742,24,479,273,true,"2026-09-08T05:04:38.850312Z"]
#10
⏱️ 25.4 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["beit-shemesh"]
#11
⏱️ 7.4 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#12
⏱️ 12.02 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]