#1
⏱️ 79.52 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"karmiel"]
#2
⏱️ 593.15 мс
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:
["meat",743,119,1241,545,1325,398,29,98,186,450,684,true,743,119,1241,545,1325,398,29,98,186,450,684]
#3
⏱️ 239.24 мс
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:
["meat",743,119,1241,545,1325,398,29,98,186,450,684,true,743,119,1241,545,1325,398,29,98,186,450,684]
#4
⏱️ 4 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[1425259,310280,242926,199992,199991,184062,168930,167824,166433,164707,163807,163802,153865,148869,133954,128587,128118,127300,127298,124785,123529,111564,110013,108230,108224,108075,108071,107885,107853,107851,105322,105321,true,743,119,1241,545,1325,398,29,98,186,450,684]
#5
⏱️ 1.02 мс
select * from "stores" where "stores"."id" in (29, 98, 119, 398, 743)
#6
⏱️ 4.09 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[1425259,310280,242926,199992,199991,184062,168930,167824,166433,164707,163807,163802,153865,148869,133954,128587,128118,127300,127298,124785,123529,111564,110013,108230,108224,108075,108071,107885,107853,107851,105322,105321,0,743,119,1241,545,1325,398,29,98,186,450,684]
#7
⏱️ 0.88 мс
select * from "stores" where "stores"."id" in (29, 98, 119, 398, 450, 545, 743)
#8
⏱️ 1.05 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"karmiel"]
#9
⏱️ 55.74 мс
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:
[743,119,1241,545,1325,29,98,186,450,684,true,"2026-09-08T13:33:42.439938Z"]
#10
⏱️ 3.56 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["karmiel"]
#11
⏱️ 2.71 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#12
⏱️ 5.85 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]