#1
⏱️ 204.76 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"bnei-brak"]
#2
⏱️ 2485.02 мс
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",730,748,288,45,80,135,163,432,477,502,682,84,86,217,265,282,285,298,true,730,748,288,45,80,135,163,432,477,502,682,84,86,217,265,282,285,298]
#3
⏱️ 903.93 мс
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",730,748,288,45,80,135,163,432,477,502,682,84,86,217,265,282,285,298,true,730,748,288,45,80,135,163,432,477,502,682,84,86,217,265,282,285,298]
#4
⏱️ 19.59 мс
select * from "canonical_products" where "canonical_products"."id" in (196)
#5
⏱️ 11.29 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[196]
#6
⏱️ 71.54 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[108808721,108787969,89331054,63265682,8775798,8775778,7518346,7460691,7443272,7443271,7443269,7442349,5127697,4809781,4523221,4272168,3556383,3253804,2896439,2750558,2671000,2670972,2667237,2661881,2641893,2028648,1985561,1915058,1911990,1910802,1909873,1909865,3702666,true,730,748,288,45,80,135,163,432,477,502,682,84,86,217,265,282,285,298]
#7
⏱️ 22.45 мс
select * from "stores" where "stores"."id" in (84, 86, 135, 282, 285, 288, 730)
#8
⏱️ 41.32 мс
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,63265682,8775798,8775778,7518346,7460691,7443272,7443271,7443269,7442349,5127697,4809781,4523221,4272168,3556383,3253804,2896439,2750558,2671000,2670972,2667237,2661881,2641893,2028648,1985561,1915058,1911990,1910802,1909873,1909865,3702666,0,730,748,288,45,80,135,163,432,477,502,682,84,86,217,265,282,285,298]
#9
⏱️ 70.45 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4766296,4766302,4777821,4763641,4721513,4721519,4731510,4715891,110887962,5590763,5590774,111824320,5602461,5586008,81345583,5490938,5490946,5503216,5485839,5252252,5252259,5259430,5264786,5247143,85127567,88827895,29421285,77668316,2050477,2052708,2054230,10595148,77669872,82338552,88828079,97034314,2511964,90063850,90081849,72494074,33767008,2512351,33764935,2511852,2511854,2511855,2509429,78515734,78516695,78516697,104388700,12248884,90792783,2602701,30367023,2602492,2602494,2602495,19028280,79905559,79905561,9603144,4024614,9604455,9613264,91411275,6759030,1707646,1709965,1709995,88510366,78977044,78977047]
#10
⏱️ 13.2 мс
select * from "stores" where "stores"."id" in (84, 86, 135, 282, 285, 288, 432, 477, 502, 730, 748)
#11
⏱️ 10.41 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"bnei-brak"]
#12
⏱️ 5390.35 мс
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:
[730,748,288,45,80,135,163,432,477,502,682,84,86,217,265,282,285,298,true,"2026-11-06T21:11:41.561062Z"]
#13
⏱️ 9.74 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["bnei-brak"]
#14
⏱️ 20.19 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 28.15 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]