#1
⏱️ 147.16 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"ramat-hasharon"]
#2
⏱️ 190.31 мс
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",646,142,true,646,142,"produce"]
#3
⏱️ 101.04 мс
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",646,142,true,646,142,"produce"]
#4
⏱️ 18.98 мс
select * from "canonical_products" where "canonical_products"."id" in (98, 327, 340)
#5
⏱️ 1.95 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?, ?)
Bindings:
[98,327,340]
#6
⏱️ 8.82 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?)
Bindings:
[265106,265105,265104,133831,128513,104725,104506,103522,103520,103516,103514,103513,103512,103511,103510,103345,100730,100538,100394,100390,100384,100366,100357,100286,100285,100159,100158,100154,100127,100111,100110,100066,97293,100002,100021,true,646,142]
#7
⏱️ 4.01 мс
select * from "stores" where "stores"."id" in (142)
#8
⏱️ 8.15 мс
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 = 100366 THEN 100366 WHEN sp.master_product_id = 97293 THEN 100366 WHEN sp.master_product_id = 100357 THEN 100357 WHEN sp.master_product_id = 100002 THEN 100357 WHEN sp.master_product_id = 100021 THEN 100154 WHEN sp.master_product_id = 100154 THEN 100154 ELSE sp.master_product_id END limit 500
Bindings:
[265106,265105,265104,133831,128513,104725,104506,103522,103520,103516,103514,103513,103512,103511,103510,103345,100730,100538,100394,100390,100384,100366,100357,100286,100285,100159,100158,100154,100127,100111,100110,100066,97293,100002,100021,0,646,142]
#9
⏱️ 4.48 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[5535616,5535666,5535667,5535682,5533747,5535720,5535721,5535964,5535965,5533726,5518918,5536129,5536135,5536138,5538309,5538523,5514469,5514696,5514697,5514698,5514699,5514700,5514702,5514706,5514707,5519276,5521095,5523955,5514716,5535691,5535692,5535693]
#10
⏱️ 4 мс
select * from "stores" where "stores"."id" in (142)
#11
⏱️ 9.68 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"ramat-hasharon"]
#12
⏱️ 11.29 мс
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:
[646,142,true,"2026-09-08T05:46:25.616011Z"]
#13
⏱️ 9.57 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["ramat-hasharon"]
#14
⏱️ 1.45 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 11.44 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]