#1
⏱️ 190.37 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"haifa"]
#2
⏱️ 132.36 мс
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:
["dairy","butter_spreads",1111,13,701,707,716,734,721,211,220,309,323,1140,1156,1207,1244,1275,583,1291,1292,657,1345,9,319,331,8,15,28,49,52,57,61,62,67,72,89,102,137,202,233,422,434,468,472,474,1356,558,658,671,1369,1388,366,12,74,true,1111,13,701,707,716,734,721,211,220,309,323,1140,1156,1207,1244,1275,583,1291,1292,657,1345,9,319,331,8,15,28,49,52,57,61,62,67,72,89,102,137,202,233,422,434,468,472,474,1356,558,658,671,1369,1388,366,12,74]
#3
⏱️ 58.85 мс
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:
["dairy","butter_spreads",1111,13,701,707,716,734,721,211,220,309,323,1140,1156,1207,1244,1275,583,1291,1292,657,1345,9,319,331,8,15,28,49,52,57,61,62,67,72,89,102,137,202,233,422,434,468,472,474,1356,558,658,671,1369,1388,366,12,74,true,1111,13,701,707,716,734,721,211,220,309,323,1140,1156,1207,1244,1275,583,1291,1292,657,1345,9,319,331,8,15,28,49,52,57,61,62,67,72,89,102,137,202,233,422,434,468,472,474,1356,558,658,671,1369,1388,366,12,74]
#4
⏱️ 872.09 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[1430363,1430362,634723,495334,257731,163759,152086,149597,128448,123732,106325,101676,101467,101466,101465,101464,101245,101194,101189,99951,99934,99933,99464,98441,98440,97764,96490,95510,95339,95059,95058,95053,true,1111,13,701,707,716,734,721,211,220,309,323,1140,1156,1207,1244,1275,583,1291,1292,657,1345,9,319,331,8,15,28,49,52,57,61,62,67,72,89,102,137,202,233,422,434,468,472,474,1356,558,658,671,1369,1388,366,12,74]
#5
⏱️ 11.47 мс
select * from "stores" where "stores"."id" in (8, 9, 12, 13, 15, 28, 72, 74, 89, 102, 137, 211, 309, 319, 323, 331, 366, 701, 716, 734)
#6
⏱️ 85.74 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[1430363,1430362,634723,495334,257731,163759,152086,149597,128448,123732,106325,101676,101467,101466,101465,101464,101245,101194,101189,99951,99934,99933,99464,98441,98440,97764,96490,95510,95339,95059,95058,95053,0,1111,13,701,707,716,734,721,211,220,309,323,1140,1156,1207,1244,1275,583,1291,1292,657,1345,9,319,331,8,15,28,49,52,57,61,62,67,72,89,102,137,202,233,422,434,468,472,474,1356,558,658,671,1369,1388,366,12,74]
#7
⏱️ 17.35 мс
select * from "stores" where "stores"."id" in (8, 9, 12, 13, 15, 28, 72, 74, 89, 102, 137, 202, 211, 220, 233, 309, 319, 323, 331, 366, 422, 434, 468, 472, 474, 558, 583, 701, 707, 734)
#8
⏱️ 5.7 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"haifa"]
#9
⏱️ 325.07 мс
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:
[1111,13,701,707,716,734,721,211,220,309,323,1140,1156,1207,1244,1275,583,1291,1292,657,1345,8,15,28,49,52,57,61,62,67,72,89,102,137,202,233,422,434,468,472,474,1356,558,658,671,1369,1388,12,true,"2026-09-08T06:21:34.782192Z"]
#10
⏱️ 7.33 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["haifa"]
#11
⏱️ 8.14 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#12
⏱️ 14.66 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]