#1
⏱️ 149.94 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"herzliya"]
#2
⏱️ 1026.97 мс
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:
["grocery","sauces_oils",2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,198,494,560,652,1380,358,383,true,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,198,494,560,652,1380,358,383]
#3
⏱️ 961.11 мс
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:
["grocery","sauces_oils",2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,198,494,560,652,1380,358,383,true,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,198,494,560,652,1380,358,383]
#4
⏱️ 18.83 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4991028,4988697,4988581,4988288,4988227,4987245,4986557,4986458,4985212,4985155,4985032,4985016,4984993,4984194,4799728,4562376,4533540,4533538,4532830,4531886,4531885,4528009,4524307,4225373,4223552,4210587,4178083,4173605,4165706,4165056,4117404,4115995,true,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,198,494,560,652,1380,358,383]
#5
⏱️ 8.67 мс
select * from "stores" where "stores"."id" in (542, 714, 1141, 1157, 1194, 1219, 1223, 1343, 1380)
#6
⏱️ 20.87 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4991028,4988697,4988581,4988288,4988227,4987245,4986557,4986458,4985212,4985155,4985032,4985016,4984993,4984194,4799728,4562376,4533540,4533538,4532830,4531886,4531885,4528009,4524307,4225373,4223552,4210587,4178083,4173605,4165706,4165056,4117404,4115995,0,2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,198,494,560,652,1380,358,383]
#7
⏱️ 8.56 мс
select * from "stores" where "stores"."id" in (626)
#8
⏱️ 7.65 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"herzliya"]
#9
⏱️ 49.28 мс
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:
[2,542,761,1141,1157,1194,1219,1223,714,626,647,1343,158,198,494,560,652,1380,358,true,"2026-09-08T06:22:30.630009Z"]
#10
⏱️ 6.19 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["herzliya"]
#11
⏱️ 17 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#12
⏱️ 14.87 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]