#1
⏱️ 61.98 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"netanya"]
#2
⏱️ 1386.3 мс
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",1113,708,739,753,773,219,1326,1173,1224,1311,1315,407,36,59,64,95,112,205,236,229,256,267,325,428,438,451,476,499,500,1390,554,619,664,1395,105,96,144,true,1113,708,739,753,773,219,1326,1173,1224,1311,1315,407,36,59,64,95,112,205,236,229,256,267,325,428,438,451,476,499,500,1390,554,619,664,1395,105,96,144]
#3
⏱️ 1301.5 мс
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",1113,708,739,753,773,219,1326,1173,1224,1311,1315,407,36,59,64,95,112,205,236,229,256,267,325,428,438,451,476,499,500,1390,554,619,664,1395,105,96,144,true,1113,708,739,753,773,219,1326,1173,1224,1311,1315,407,36,59,64,95,112,205,236,229,256,267,325,428,438,451,476,499,500,1390,554,619,664,1395,105,96,144]
#4
⏱️ 13.77 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[7460374,7460373,4991028,4988697,4988581,4988288,4988227,4987245,4986557,4986458,4985212,4985155,4985032,4985016,4984993,4984194,4672284,4562376,4562370,4534738,4533540,4533538,4532830,4531886,4531885,4528009,4524307,4029930,4025282,4010322,4000633,3975282,true,1113,708,739,753,773,219,1326,1173,1224,1311,1315,407,36,59,64,95,112,205,236,229,256,267,325,428,438,451,476,499,500,1390,554,619,664,1395,105,96,144]
#5
⏱️ 12.42 мс
select * from "stores" where "stores"."id" in (1113, 1173, 1224, 1311, 1315, 1326, 1390, 1395)
#6
⏱️ 24.62 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[7460374,7460373,4991028,4988697,4988581,4988288,4988227,4987245,4986557,4986458,4985212,4985155,4985032,4985016,4984993,4984194,4672284,4562376,4562370,4534738,4533540,4533538,4532830,4531886,4531885,4528009,4524307,4029930,4025282,4010322,4000633,3975282,0,1113,708,739,753,773,219,1326,1173,1224,1311,1315,407,36,59,64,95,112,205,236,229,256,267,325,428,438,451,476,499,500,1390,554,619,664,1395,105,96,144]
#7
⏱️ 12.01 мс
select * from "stores" where "stores"."id" in (499, 500, 619, 708, 773)
#8
⏱️ 6.69 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"netanya"]
#9
⏱️ 95.39 мс
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:
[1113,708,739,753,773,219,1326,1173,1224,1311,1315,36,59,64,95,112,205,236,229,256,267,325,428,438,451,476,499,500,1390,554,619,664,1395,105,96,144,true,"2026-09-08T05:45:49.018117Z"]
#10
⏱️ 8.39 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["netanya"]
#11
⏱️ 11.89 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#12
⏱️ 10.95 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]