#1
⏱️ 107.22 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"hadera"]
#2
⏱️ 552.45 мс
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",738,469,155,342,true,738,469,155,342]
#3
⏱️ 216.12 мс
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",738,469,155,342,true,738,469,155,342]
#4
⏱️ 5.59 мс
select * from "canonical_products" where "canonical_products"."id" in (320)
#5
⏱️ 8.38 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[320]
#6
⏱️ 17.83 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?)
Bindings:
[8775716,7065236,6745776,6730411,4987518,3739767,2671354,1462252,1462251,1462250,1457225,1453881,1452066,1425655,615729,452321,366432,193602,192680,169861,160711,156620,154703,151299,150988,135279,135278,134634,133990,133639,133426,132972,4546240,true,738,469,155,342]
#7
⏱️ 9.83 мс
select * from "stores" where "stores"."id" in (342, 738)
#8
⏱️ 19.19 мс
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 = 4546240 THEN 192680 WHEN sp.master_product_id = 192680 THEN 192680 ELSE sp.master_product_id END limit 500
Bindings:
[8775716,7065236,6745776,6730411,4987518,3739767,2671354,1462252,1462251,1462250,1457225,1453881,1452066,1425655,615729,452321,366432,193602,192680,169861,160711,156620,154703,151299,150988,135279,135278,134634,133990,133639,133426,132972,4546240,0,738,469,155,342]
#9
⏱️ 21.63 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[5430171,1842291,1843162,10356659,1843729,1835136,1843988,1843989,10355613,1833642,1842873,29223055,10345352,1837144,1841262,1841308,10349781,1836633,1842313,1836215,23956982,10344691,10345865,10344954,9568376,4025869,9558486,4025826,9558647,9558670,9558693,9603704,9593124]
#10
⏱️ 8.67 мс
select * from "stores" where "stores"."id" in (342, 469, 738)
#11
⏱️ 5.75 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"hadera"]
#12
⏱️ 80.71 мс
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:
[738,469,155,342,true,"2026-10-22T23:35:55.708367Z"]
#13
⏱️ 8.79 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["hadera"]
#14
⏱️ 5.32 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 13.88 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]