#1
⏱️ 161.37 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"kfar-saba"]
#2
⏱️ 2162.59 мс
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:
["household","cleaning_paper",740,222,392,295,1124,1138,1226,1238,584,317,354,368,25,50,141,194,254,249,302,329,478,498,556,true,740,222,392,295,1124,1138,1226,1238,584,317,354,368,25,50,141,194,254,249,302,329,478,498,556]
#3
⏱️ 1145.8 мс
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:
["household","cleaning_paper",740,222,392,295,1124,1138,1226,1238,584,317,354,368,25,50,141,194,254,249,302,329,478,498,556,true,740,222,392,295,1124,1138,1226,1238,584,317,354,368,25,50,141,194,254,249,302,329,478,498,556]
#4
⏱️ 34.43 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4103285,4066305,4003074,4003069,4003068,3340041,2413856,2413855,1551600,1516114,1515669,1499067,1477928,1474464,1472874,1438523,1438359,1438201,1437529,1437316,1436920,1434060,1433680,1433597,1433586,1432944,1432943,1432939,1432936,1432702,1432700,1432697,true,740,222,392,295,1124,1138,1226,1238,584,317,354,368,25,50,141,194,254,249,302,329,478,498,556]
#5
⏱️ 13.81 мс
select * from "stores" where "stores"."id" in (141, 194, 222, 249, 254, 740)
#6
⏱️ 31.33 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4103285,4066305,4003074,4003069,4003068,3340041,2413856,2413855,1551600,1516114,1515669,1499067,1477928,1474464,1472874,1438523,1438359,1438201,1437529,1437316,1436920,1434060,1433680,1433597,1433586,1432944,1432943,1432939,1432936,1432702,1432700,1432697,0,740,222,392,295,1124,1138,1226,1238,584,317,354,368,25,50,141,194,254,249,302,329,478,498,556]
#7
⏱️ 8.65 мс
select * from "stores" where "stores"."id" in (141, 194, 222, 249, 254, 556, 584)
#8
⏱️ 13.32 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"kfar-saba"]
#9
⏱️ 178.03 мс
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:
[740,222,295,1124,1138,1226,1238,584,25,50,141,194,254,249,302,329,478,498,556,true,"2026-09-08T06:21:39.053425Z"]
#10
⏱️ 14.91 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["kfar-saba"]
#11
⏱️ 11.72 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#12
⏱️ 18.92 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]