#1
⏱️ 143.41 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"beer-sheva"]
#2
⏱️ 3611.8 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_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",93,736,754,776,246,271,113,1169,1170,1206,1249,1271,1274,1279,1299,1307,44,160,164,165,181,441,465,473,490,1370,1400,120,132,151,172,350,369,true,93,736,754,776,246,271,113,1169,1170,1206,1249,1271,1274,1279,1299,1307,44,160,164,165,181,441,465,473,490,1370,1400,120,132,151,172,350,369]
#3
⏱️ 3060.19 мс
select * from "master_products" where "barcode" is not null and "category_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",93,736,754,776,246,271,113,1169,1170,1206,1249,1271,1274,1279,1299,1307,44,160,164,165,181,441,465,473,490,1370,1400,120,132,151,172,350,369,true,93,736,754,776,246,271,113,1169,1170,1206,1249,1271,1274,1279,1299,1307,44,160,164,165,181,441,465,473,490,1370,1400,120,132,151,172,350,369]
#4
⏱️ 9.1 мс
select * from "canonical_products" where "canonical_products"."id" in (8)
#5
⏱️ 6.57 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[8]
#6
⏱️ 161.27 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[75165094,30691571,25603232,8775770,8775716,7499337,7455589,7455588,7452547,7443308,7443245,7440957,7065236,6745776,6730411,4987518,4536333,4533815,4073345,3931378,3879137,3877654,3739767,3646497,3458976,3227854,3041110,2995893,2990001,2989999,2989886,2975340,3170808,1462716,123050,160427,2812826,true,93,736,754,776,246,271,113,1169,1170,1206,1249,1271,1274,1279,1299,1307,44,160,164,165,181,441,465,473,490,1370,1400,120,132,151,172,350,369]
#7
⏱️ 10.76 мс
select * from "stores" where "stores"."id" in (93, 113, 120, 132, 181, 246, 271, 369, 736, 776)
#8
⏱️ 25.67 мс
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 = 3170808 THEN 3041110 WHEN sp.master_product_id = 1462716 THEN 3041110 WHEN sp.master_product_id = 123050 THEN 3041110 WHEN sp.master_product_id = 3041110 THEN 3041110 WHEN sp.master_product_id = 160427 THEN 3041110 WHEN sp.master_product_id = 2812826 THEN 3041110 ELSE sp.master_product_id END limit 500
Bindings:
[75165094,30691571,25603232,8775770,8775716,7499337,7455589,7455588,7452547,7443308,7443245,7440957,7065236,6745776,6730411,4987518,4536333,4533815,4073345,3931378,3879137,3877654,3739767,3646497,3458976,3227854,3041110,2995893,2990001,2989999,2989886,2975340,3170808,1462716,123050,160427,2812826,0,93,736,754,776,246,271,113,1169,1170,1206,1249,1271,1274,1279,1299,1307,44,160,164,165,181,441,465,473,490,1370,1400,120,132,151,172,350,369]
#9
⏱️ 11.77 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4640247,68729129,56446646,68386986,6443074,68230112,540195,67902976,874739,1134469,1198309,78882897,2166215,2167090,10847546,77803655,31200769,39052794,10829601,10830987,2170148,71591695,30036343,30032551,30033198,56446538,2437524,56450640,2438758,2440296,78342681,11684573,30044521,11665599,72160015,11908684,11911945,11916448,11911698,11913211,11911937,2489695,2491983,2492046,79782752,2547743,47676577,12139506,35824199,12139822,2550126,30287532,47677930,12140550,12140551,2548075,9603702,9593122,9604300,32948426,32948565,32948577,1789887,1779149,29169602,23899976,71210759]
#10
⏱️ 11.61 мс
select * from "stores" where "stores"."id" in (93, 113, 120, 132, 172, 350, 369, 441, 465, 473, 490, 736, 754)
#11
⏱️ 10.99 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"beer-sheva"]
#12
⏱️ 127.46 мс
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:
[93,736,754,776,246,271,113,1169,1170,1206,1249,1271,1274,1279,1299,1307,44,160,164,165,181,441,465,473,490,1370,1400,120,132,151,true,"2026-10-23T21:01:02.486139Z"]
#13
⏱️ 13.35 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["beer-sheva"]
#14
⏱️ 11.58 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 15.93 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]