#1
⏱️ 155.79 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"bnei-brak"]
#2
⏱️ 596.43 мс
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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?))) and master_products.id IN (
SELECT DISTINCT ON (COALESCE(canonical_product_id, -id)) id
FROM master_products
WHERE category_slug = ?
ORDER BY COALESCE(canonical_product_id, -id),
CASE WHEN image_url IS NOT NULL AND image_url != '' THEN 0 ELSE 1 END,
id DESC
)
Bindings:
["produce","herbs_mushrooms",730,748,265,285,45,80,86,84,135,163,217,282,298,432,477,502,682,288,true,730,748,265,285,45,80,86,84,135,163,217,282,298,432,477,502,682,288,"produce"]
#3
⏱️ 252.75 мс
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 (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?))) and master_products.id IN (
SELECT DISTINCT ON (COALESCE(canonical_product_id, -id)) id
FROM master_products
WHERE category_slug = ?
ORDER BY COALESCE(canonical_product_id, -id),
CASE WHEN image_url IS NOT NULL AND image_url != '' THEN 0 ELSE 1 END,
id DESC
) 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:
["produce","herbs_mushrooms",730,748,265,285,45,80,86,84,135,163,217,282,298,432,477,502,682,288,true,730,748,265,285,45,80,86,84,135,163,217,282,298,432,477,502,682,288,"produce"]
#4
⏱️ 7.71 мс
select * from "canonical_products" where "canonical_products"."id" in (84, 89, 215)
#5
⏱️ 5.38 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?, ?)
Bindings:
[84,89,215]
#6
⏱️ 62.81 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[8775651,8775580,8775533,8775532,8775519,8775509,7556845,7461021,3929128,3700048,3676089,2931321,2812350,2710285,2671026,2670964,2666758,2666027,2664001,2657576,2656726,2647878,2641760,2636398,2633097,2631399,2606604,2604820,2467713,2007999,1962114,1961878,1454922,165505,124776,112366,true,730,748,265,285,45,80,86,84,135,163,217,282,298,432,477,502,682,288]
#7
⏱️ 8.41 мс
select * from "stores" where "stores"."id" in (84, 86, 282, 285, 288, 730)
#8
⏱️ 16.21 мс
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 = 7461021 THEN 7461021 WHEN sp.master_product_id = 1454922 THEN 7461021 WHEN sp.master_product_id = 165505 THEN 7461021 WHEN sp.master_product_id = 2657576 THEN 2657576 WHEN sp.master_product_id = 124776 THEN 2657576 WHEN sp.master_product_id = 112366 THEN 2604820 WHEN sp.master_product_id = 2604820 THEN 2604820 ELSE sp.master_product_id END limit 500
Bindings:
[8775651,8775580,8775533,8775532,8775519,8775509,7556845,7461021,3929128,3700048,3676089,2931321,2812350,2710285,2671026,2670964,2666758,2666027,2664001,2657576,2656726,2647878,2641760,2636398,2633097,2631399,2606604,2604820,2467713,2007999,1962114,1961878,1454922,165505,124776,112366,0,730,748,265,285,45,80,86,84,135,163,217,282,298,432,477,502,682,288]
#9
⏱️ 9.15 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4763995,4760653,4721466,4718735,5587937,5589827,5585312,5488513,5483493,5250187,5246766,2053867,2049301,2044361,2048517,2049572,2050183,2052263,2055664,2511582,2509330,2510030,2509758,2509757,2509759,2605601,2605624,2605583,3946741,1708466,1699416,6745712,6747168,1699496,1703402,1705296,1707105,1709712,1710018,1699420,6757345]
#10
⏱️ 6.87 мс
select * from "stores" where "stores"."id" in (84, 86, 282, 285, 288, 432, 477, 502, 730, 748)
#11
⏱️ 6.19 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"bnei-brak"]
#12
⏱️ 87.36 мс
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:
[730,748,265,285,45,80,86,84,135,163,217,282,298,432,477,502,682,288,true,"2026-09-08T08:24:07.384169Z"]
#13
⏱️ 32.73 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["bnei-brak"]
#14
⏱️ 7.16 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 6.17 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]