#1
⏱️ 31.42 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"rehovot"]
#2
⏱️ 43.46 мс
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:
["baby","baby_nutrition",1120,215,764,768,335,371,1218,1282,597,1298,47,60,1350,455,550,620,1402,20,81,134,139,173,349,390,true,1120,215,764,768,335,371,1218,1282,597,1298,47,60,1350,455,550,620,1402,20,81,134,139,173,349,390]
#3
⏱️ 44.68 мс
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:
["baby","baby_nutrition",1120,215,764,768,335,371,1218,1282,597,1298,47,60,1350,455,550,620,1402,20,81,134,139,173,349,390,true,1120,215,764,768,335,371,1218,1282,597,1298,47,60,1350,455,550,620,1402,20,81,134,139,173,349,390]
#4
⏱️ 15.31 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4987857,4985731,4065908,3978527,3123903,2864871,1909474,1434552,1434104,1434073,1434072,1434071,1434070,1434069,1434068,1434067,1432364,1421752,1421751,1421750,1421748,1421552,1421549,749117,184031,172529,172512,167943,167942,167933,167932,160992,true,1120,215,764,768,335,371,1218,1282,597,1298,47,60,1350,455,550,620,1402,20,81,134,139,173,349,390]
#5
⏱️ 5.48 мс
select * from "stores" where "stores"."id" in (20, 81, 134, 139, 215, 390, 1120, 1218, 1282, 1298, 1350, 1402)
#6
⏱️ 14.57 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4987857,4985731,4065908,3978527,3123903,2864871,1909474,1434552,1434104,1434073,1434072,1434071,1434070,1434069,1434068,1434067,1432364,1421752,1421751,1421750,1421748,1421552,1421549,749117,184031,172529,172512,167943,167942,167933,167932,160992,0,1120,215,764,768,335,371,1218,1282,597,1298,47,60,1350,455,550,620,1402,20,81,134,139,173,349,390]
#7
⏱️ 7.97 мс
select * from "stores" where "stores"."id" in (20, 81, 134, 139, 215, 349, 371, 390, 455, 550, 597, 620, 768)
#8
⏱️ 2.86 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"rehovot"]
#9
⏱️ 149.62 мс
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:
[1120,215,764,768,335,1218,1282,597,1298,47,60,1350,455,550,620,1402,20,81,134,139,173,true,"2026-10-23T11:10:14.674133Z"]
#10
⏱️ 3.37 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["rehovot"]
#11
⏱️ 4.4 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#12
⏱️ 5.01 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]