#1
⏱️ 168.55 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"ashdod"]
#2
⏱️ 1239.84 мс
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","vegetables",704,712,733,720,770,250,334,604,628,157,209,203,423,540,543,609,true,704,712,733,720,770,250,334,604,628,157,209,203,423,540,543,609,"produce"]
#3
⏱️ 684.2 мс
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","vegetables",704,712,733,720,770,250,334,604,628,157,209,203,423,540,543,609,true,704,712,733,720,770,250,334,604,628,157,209,203,423,540,543,609,"produce"]
#4
⏱️ 14.62 мс
select * from "canonical_products" where "canonical_products"."id" in (16, 31, 37)
#5
⏱️ 10.53 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?, ?)
Bindings:
[37,31,16]
#6
⏱️ 112.6 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[8775782,8775713,8775546,8775528,7798881,6908951,5130389,4991109,4991108,4991102,4991097,4991094,4991049,4990825,4990576,4990456,4989781,4989777,4989772,4989767,4989766,4988820,4988698,4988403,4987625,4987518,4987434,4987431,4987359,4987210,4987208,4987154,7471561,8775708,8775709,8775712,8775707,8775710,8775711,2609947,115658,111499,114703,115686,8775781,true,704,712,733,720,770,250,334,604,628,157,209,203,423,540,543,609]
#7
⏱️ 6.11 мс
select * from "stores" where "stores"."id" in (540, 733)
#8
⏱️ 33.43 мс
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 = 8775528 THEN 8775528 WHEN sp.master_product_id = 7471561 THEN 8775528 WHEN sp.master_product_id = 8775708 THEN 8775713 WHEN sp.master_product_id = 8775709 THEN 8775713 WHEN sp.master_product_id = 8775712 THEN 8775713 WHEN sp.master_product_id = 8775707 THEN 8775713 WHEN sp.master_product_id = 8775710 THEN 8775713 WHEN sp.master_product_id = 8775711 THEN 8775713 WHEN sp.master_product_id = 2609947 THEN 8775713 WHEN sp.master_product_id = 115658 THEN 8775713 WHEN sp.master_product_id = 8775713 THEN 8775713 WHEN sp.master_product_id = 111499 THEN 8775713 WHEN sp.master_product_id = 114703 THEN 8775713 WHEN sp.master_product_id = 115686 THEN 8775713 WHEN sp.master_product_id = 8775781 THEN 8775782 WHEN sp.master_product_id = 8775782 THEN 8775782 ELSE sp.master_product_id END limit 500
Bindings:
[8775782,8775713,8775546,8775528,7798881,6908951,5130389,4991109,4991108,4991102,4991097,4991094,4991049,4990825,4990576,4990456,4989781,4989777,4989772,4989767,4989766,4988820,4988698,4988403,4987625,4987518,4987434,4987431,4987359,4987210,4987208,4987154,7471561,8775708,8775709,8775712,8775707,8775710,8775711,2609947,115658,111499,114703,115686,8775781,0,704,712,733,720,770,250,334,604,628,157,209,203,423,540,543,609]
#9
⏱️ 42.99 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[1957689,181571,178379,3181746,3181800,3181802,3181951,3182023,3182026,3182110,3182217,3182995,3183290,3183412,3184358,3184359,3184364,3184369,3184373,3185048,3185168,3185417,3185641,3178210,3178213,3178218,3178224,3178225,2847619,2846934,2975672,3249251,3249305,3249307,3249456,3249528,3249531,3249615,3249722,3250500,3250795,3250917,3251863,3251864,3251869,3251874,3251878,3252553,3252673,3252922,3253146,3253229,3253232,3253237,3253243,3253244,2945729,3159173,3159227,3159229,3159378,3159450,3159453,3159537,3159644,3160422,3160717,3160839,3161785,3161786,3161791,3161796,3161800,3162475,3162595,3162844,3163068,3155637,3155640,3155645,3155651,3155652,2692724,4024832,4066671,3121558,3121612,3121614,3121763,3121835,3121838,3121922,3122029,3122807,3123102,3123224,3124170,3124171,3124176,3124181,3124185,3124860,3124980,3125229,3125453,3125536,3125539,3125544,3125550,3125551,2756045]
#10
⏱️ 7.36 мс
select * from "stores" where "stores"."id" in (423, 540, 604, 609, 628, 712, 733, 770)
#11
⏱️ 10.43 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"ashdod"]
#12
⏱️ 123.59 мс
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:
[704,712,733,720,770,250,334,604,628,157,209,203,423,540,543,609,true,"2026-09-08T08:22:54.340155Z"]
#13
⏱️ 5.58 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["ashdod"]
#14
⏱️ 16.61 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 7.86 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]