#1
⏱️ 140.58 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"beit-shemesh"]
#2
⏱️ 186.51 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_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:
["household","pet_supplies",742,273,479,24,true,742,273,479,24]
#3
⏱️ 67.68 мс
select * from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_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:
["household","pet_supplies",742,273,479,24,true,742,273,479,24]
#4
⏱️ 20.26 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?)
Bindings:
[188666,101992,101340,100985,100984,95393,95392,95391,95390,95389,95387,95385,95384,11135318,8775811,8775516,2715164,2055302,1458775,1458773,166235,155506,155505,155464,153889,132802,132788,132787,132719,111942,97164,96931,true,742,273,479,24]
#5
⏱️ 5.29 мс
select * from "stores" where "stores"."id" in (24, 273, 742)
#6
⏱️ 16.47 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?)
Bindings:
[188666,101992,101340,100985,100984,95393,95392,95391,95390,95389,95387,95385,95384,11135318,8775811,8775516,2715164,2055302,1458775,1458773,166235,155506,155505,155464,153889,132802,132788,132787,132719,111942,97164,96931,0,742,273,479,24]
#7
⏱️ 4.63 мс
select * from "stores" where "stores"."id" in (24, 273, 479, 742)
#8
⏱️ 5.28 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"beit-shemesh"]
#9
⏱️ 93.89 мс
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,273,479,24,true,"2026-10-22T22:44:22.148756Z"]
#10
⏱️ 7.2 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["beit-shemesh"]
#11
⏱️ 8.59 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#12
⏱️ 7.13 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]