#1
⏱️ 172.29 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"nahariya"]
#2
⏱️ 666.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",766,1123,1254,446,1362,10,241,410,true,766,1123,1254,446,1362,10,241,410]
#3
⏱️ 336.35 мс
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",766,1123,1254,446,1362,10,241,410,true,766,1123,1254,446,1362,10,241,410]
#4
⏱️ 13.74 мс
select * from "canonical_products" where "canonical_products"."id" in (38, 320)
#5
⏱️ 4.92 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?)
Bindings:
[38,320]
#6
⏱️ 22.66 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[7065236,6745776,6730411,4536333,3739767,2717082,2717075,2681555,2674471,2671354,2659225,1459891,1453881,1434518,615729,506053,452321,366432,314345,314340,314335,314331,314328,314326,193602,192680,169861,160421,159470,159469,154703,152128,2672969,2672977,4546240,true,766,1123,1254,446,1362,10,241,410]
#7
⏱️ 12.54 мс
select * from "stores" where "stores"."id" in (10, 410)
#8
⏱️ 25.1 мс
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 = 2681555 THEN 2681555 WHEN sp.master_product_id = 2672969 THEN 2681555 WHEN sp.master_product_id = 2672977 THEN 2681555 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:
[7065236,6745776,6730411,4536333,3739767,2717082,2717075,2681555,2674471,2671354,2659225,1459891,1453881,1434518,615729,506053,452321,366432,314345,314340,314335,314331,314328,314326,193602,192680,169861,160421,159470,159469,154703,152128,2672969,2672977,4546240,0,766,1123,1254,446,1362,10,241,410]
#9
⏱️ 31.27 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[45880244,921948,925720,925726,925727,925730,925735,925737,1501531,5133475,5133477,5133774,5124719,5145688,5145419,1507823,67671804,67671803,2236252,10993264,2234239,11001407,2225079,29630799,10981161,2227438,2230021,29624578,10993844,29606414,29606644,24391843,11012150,11023241,11014109,517325,521402]
#10
⏱️ 6.06 мс
select * from "stores" where "stores"."id" in (10, 241, 410, 446, 766)
#11
⏱️ 8.76 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"nahariya"]
#12
⏱️ 6.98 мс
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:
[766,1123,1254,446,1362,true,"2026-10-22T18:39:39.858847Z"]
#13
⏱️ 1.87 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["nahariya"]
#14
⏱️ 6.74 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 8.88 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]