#1
⏱️ 155.45 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"beit-shemesh"]
#2
⏱️ 1233.92 мс
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:
["snacks","chips_savory",742,273,479,24,true,742,273,479,24]
#3
⏱️ 311.89 мс
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:
["snacks","chips_savory",742,273,479,24,true,742,273,479,24]
#4
⏱️ 15.12 мс
select * from "canonical_products" where "canonical_products"."id" in (196)
#5
⏱️ 11.16 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[196]
#6
⏱️ 21.06 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?)
Bindings:
[108808721,108787969,89331054,8775798,8775778,7472064,7460691,7443730,7443272,7443271,7443269,7442349,5127697,4272168,4146579,3989817,3854696,2671000,2670972,2667237,2641893,1911990,1910802,1909873,1909865,1567603,1456789,1456787,1456062,1454309,1454306,1454305,3702666,true,742,273,479,24]
#7
⏱️ 10.3 мс
select * from "stores" where "stores"."id" in (24, 273, 742)
#8
⏱️ 18.86 мс
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 = 2667237 THEN 2667237 WHEN sp.master_product_id = 3702666 THEN 2667237 ELSE sp.master_product_id END limit 500
Bindings:
[108808721,108787969,89331054,8775798,8775778,7472064,7460691,7443730,7443272,7443271,7443269,7442349,5127697,4272168,4146579,3989817,3854696,2671000,2670972,2667237,2641893,1911990,1910802,1909873,1909865,1567603,1456789,1456787,1456062,1454309,1454306,1454305,3702666,0,742,273,479,24]
#9
⏱️ 21.16 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[111931305,5753443,5753444,5753446,5758236,5758766,5758769,5761312,5761322,5770500,85127732,31670013,92415574,2522262,90161648,90176565,90176595,47590711,2522132,2522166,31671038,31668732,2522159,2522161,2522162,47586652,2520801,2520802,92417614,78530222,78530224,9603156,4024626,9604467,9613276]
#10
⏱️ 8.75 мс
select * from "stores" where "stores"."id" in (24, 273, 479, 742)
#11
⏱️ 3.48 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"beit-shemesh"]
#12
⏱️ 629.86 мс
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,273,479,24,true,"2026-11-06T21:12:24.253953Z"]
#13
⏱️ 13.7 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["beit-shemesh"]
#14
⏱️ 12.1 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 18.9 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]