#1
⏱️ 47.31 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"nes-ziona"]
#2
⏱️ 746.98 мс
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","canned_preserves",272,614,110,651,91,130,339,true,272,614,110,651,91,130,339]
#3
⏱️ 388.14 мс
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","canned_preserves",272,614,110,651,91,130,339,true,272,614,110,651,91,130,339]
#4
⏱️ 11.95 мс
select * from "canonical_products" where "canonical_products"."id" in (109, 290, 320)
#5
⏱️ 7.83 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?, ?)
Bindings:
[109,290,320]
#6
⏱️ 22.1 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?)
Bindings:
[4989781,4989766,4987587,4987518,4987434,4987359,4987332,4987208,4987001,4986833,4986722,4986611,4986361,4984139,4983944,4679481,4541335,4536333,4528693,1434518,1426420,1425655,506053,452321,199270,199122,198410,198409,198397,193602,192680,182799,4592992,100076,210479,4546240,true,272,614,110,651,91,130,339]
#7
⏱️ 6.89 мс
select * from "stores" where "stores"."id" in (91, 110, 130, 339)
#8
⏱️ 14.69 мс
select min(sp.id) as best_sp_id from "store_prices" as "sp" where "sp"."master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "sp"."price" > ? and "sp"."store_id" in (?, ?, ?, ?, ?, ?, ?) group by sp.store_id, CASE WHEN sp.master_product_id = 4541335 THEN 4541335 WHEN sp.master_product_id = 4592992 THEN 4541335 WHEN sp.master_product_id = 4679481 THEN 4541335 WHEN sp.master_product_id = 100076 THEN 4541335 WHEN sp.master_product_id = 210479 THEN 199270 WHEN sp.master_product_id = 199270 THEN 199270 WHEN sp.master_product_id = 4546240 THEN 192680 WHEN sp.master_product_id = 192680 THEN 192680 ELSE sp.master_product_id END limit 500
Bindings:
[4989781,4989766,4987587,4987518,4987434,4987359,4987332,4987208,4987001,4986833,4986722,4986611,4986361,4984139,4983944,4679481,4541335,4536333,4528693,1434518,1426420,1425655,506053,452321,199270,199122,198410,198409,198397,193602,192680,182799,4592992,100076,210479,4546240,0,272,614,110,651,91,130,339]
#9
⏱️ 22.43 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[68821193,68821192,4878771,6538283,6129396,6141512,6143849,5500198,78882950,78882949,5507550,7927103,2881948,2882923,2887927,2887939,2887940,2888726,2888935,74244134,3205329,3207645,7921568,3201044,3201239,3203461,3203711,3203822,3203933,3204101,3204308,3204432,3204459,3204534,3204618,3204687,3206866,3206881]
#10
⏱️ 7.43 мс
select * from "stores" where "stores"."id" in (91, 110, 130, 339, 614)
#11
⏱️ 7.73 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"nes-ziona"]
#12
⏱️ 193.23 мс
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:
[272,614,110,651,91,130,339,true,"2026-10-22T23:10:44.552894Z"]
#13
⏱️ 7.58 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["nes-ziona"]
#14
⏱️ 1.43 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 6.14 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]