#1
⏱️ 141.56 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"rehovot"]
#2
⏱️ 504.5 мс
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:
["dairy","yogurt_desserts",1120,215,764,768,335,1218,1282,597,1298,47,60,1350,455,550,620,1402,20,81,134,139,173,349,371,390,true,1120,215,764,768,335,1218,1282,597,1298,47,60,1350,455,550,620,1402,20,81,134,139,173,349,371,390]
#3
⏱️ 220.8 мс
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:
["dairy","yogurt_desserts",1120,215,764,768,335,1218,1282,597,1298,47,60,1350,455,550,620,1402,20,81,134,139,173,349,371,390,true,1120,215,764,768,335,1218,1282,597,1298,47,60,1350,455,550,620,1402,20,81,134,139,173,349,371,390]
#4
⏱️ 41.12 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[12852012,4990849,4990765,4989971,4987419,4987086,4987004,4986406,4986308,4985897,4985309,4984782,4984460,4984310,4984159,4821739,4668596,4175463,4125346,4060930,4053310,4046164,4033550,4004085,3990950,3970617,3433190,2561729,2046307,1459520,1454585,1016365,true,1120,215,764,768,335,1218,1282,597,1298,47,60,1350,455,550,620,1402,20,81,134,139,173,349,371,390]
#5
⏱️ 5.57 мс
select * from "stores" where "stores"."id" in (390)
#6
⏱️ 21.01 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[12852012,4990849,4990765,4989971,4987419,4987086,4987004,4986406,4986308,4985897,4985309,4984782,4984460,4984310,4984159,4821739,4668596,4175463,4125346,4060930,4053310,4046164,4033550,4004085,3990950,3970617,3433190,2561729,2046307,1459520,1454585,1016365,0,1120,215,764,768,335,1218,1282,597,1298,47,60,1350,455,550,620,1402,20,81,134,139,173,349,371,390]
#7
⏱️ 10.19 мс
select * from "stores" where "stores"."id" in (173, 390, 455, 550, 597, 620, 768)
#8
⏱️ 2.56 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"rehovot"]
#9
⏱️ 810.14 мс
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:
[1120,215,764,768,335,1218,1282,597,1298,47,60,1350,455,550,620,1402,20,81,134,139,173,true,"2026-10-22T19:39:44.374406Z"]
#10
⏱️ 1.64 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["rehovot"]
#11
⏱️ 1.34 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#12
⏱️ 2.57 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]