#1
⏱️ 175.66 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"nazareth"]
#2
⏱️ 3761.23 мс
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","sauces_oils",744,107,26,475,669,183,true,744,107,26,475,669,183]
#3
⏱️ 1141.06 мс
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","sauces_oils",744,107,26,475,669,183,true,744,107,26,475,669,183]
#4
⏱️ 21.49 мс
select * from "canonical_products" where "canonical_products"."id" in (264)
#5
⏱️ 16.84 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[264]
#6
⏱️ 53.02 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?)
Bindings:
[75165094,30691571,25603232,8775770,7443308,7440957,2811192,2807243,2752605,2658241,2657764,2644148,1972068,1546573,1543653,1507326,1486122,1482065,1476996,1476182,1474522,1474452,1462617,1458529,1456529,1438422,1437983,1435632,1433916,1433914,1433913,1429204,98914,true,744,107,26,475,669,183]
#7
⏱️ 25.27 мс
select * from "stores" where "stores"."id" in (26, 107, 183, 744)
#8
⏱️ 17.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 = 98914 THEN 1458529 WHEN sp.master_product_id = 1458529 THEN 1458529 ELSE sp.master_product_id END limit 500
Bindings:
[75165094,30691571,25603232,8775770,7443308,7440957,2811192,2807243,2752605,2658241,2657764,2644148,1972068,1546573,1543653,1507326,1486122,1482065,1476996,1476182,1474522,1474452,1462617,1458529,1456529,1438422,1437983,1435632,1433916,1433914,1433913,1429204,98914,0,744,107,26,475,669,183]
#9
⏱️ 45.38 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[5838090,4706675,4712275,4712276,4712279,4693476,4706908,4709340,4712163,4712277,4698786,4701220,48537390,4698598,4701213,64607055,63002503,47532078,2497384,45072392,47539683,11997544,30190423,30185249,2499076,11999996,30184071,2499553,72465850,3854047,9558998,9604308]
#10
⏱️ 14.58 мс
select * from "stores" where "stores"."id" in (26, 183, 475, 744)
#11
⏱️ 16.13 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"nazareth"]
#12
⏱️ 86.4 мс
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:
[744,107,26,475,669,183,true,"2026-10-23T09:10:35.631134Z"]
#13
⏱️ 14.62 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["nazareth"]
#14
⏱️ 14.94 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 21.06 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]