#1
⏱️ 56.7 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"beit-shemesh"]
#2
⏱️ 436.91 мс
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:
["drinks","soft_drinks",742,24,479,273,true,742,24,479,273]
#3
⏱️ 114.98 мс
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:
["drinks","soft_drinks",742,24,479,273,true,742,24,479,273]
#4
⏱️ 37.93 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?)
Bindings:
[246597,163959,161332,131290,128543,127564,127013,125909,124850,124011,115775,115766,115759,115450,114852,114747,114746,114745,114744,114743,114738,114637,114534,114309,114308,114216,114193,113382,113381,113379,113378,113376,true,742,24,479,273]
#5
⏱️ 9.16 мс
select * from "stores" where "stores"."id" in (24, 273, 742)
#6
⏱️ 32.23 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?)
Bindings:
[246597,163959,161332,131290,128543,127564,127013,125909,124850,124011,115775,115766,115759,115450,114852,114747,114746,114745,114744,114743,114738,114637,114534,114309,114308,114216,114193,113382,113381,113379,113378,113376,0,742,24,479,273]
#7
⏱️ 4.19 мс
select * from "stores" where "stores"."id" in (24, 273, 479, 742)
#8
⏱️ 3.15 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"beit-shemesh"]
#9
⏱️ 64.46 мс
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-08T07:04:49.437904Z"]
#10
⏱️ 5.81 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["beit-shemesh"]
#11
⏱️ 7.16 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#12
⏱️ 6.67 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]