#1
⏱️ 222.82 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"akko"]
#2
⏱️ 342.16 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_slug" = ? and "master_products"."id" in ((select "master_product_id" from "store_prices" where "store_id" in (?, ?, ?, ?, ?)) union (select "master_product_id" from "deals" where "is_active" = ? and "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",221,11,442,686,1368,true,221,11,442,686,1368,"produce"]
#3
⏱️ 271.74 мс
select * from "master_products" where "barcode" is not null and "category_slug" = ? and "master_products"."id" in ((select "master_product_id" from "store_prices" where "store_id" in (?, ?, ?, ?, ?)) union (select "master_product_id" from "deals" where "is_active" = ? and "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",221,11,442,686,1368,true,221,11,442,686,1368,"produce"]
#4
⏱️ 4.75 мс
select * from "canonical_products" where "canonical_products"."id" in (25, 30, 182, 187, 254)
#5
⏱️ 1.05 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?, ?, ?, ?)
Bindings:
[25,182,30,187,254]
#6
⏱️ 4.17 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?)
Bindings:
[2996211,2975219,2877891,2842852,2715904,2702341,2685471,2682071,2681942,2680174,2676541,2674471,2671354,2671026,2671017,2671011,2671000,2670979,2670978,2670972,2670964,2670954,2670949,2670946,2666943,2666758,2666106,2666027,2664001,2663549,2662892,2662799,2657391,2657025,2676233,1933366,1960939,10941098,149383,true,221,11,442,686,1368]
#7
⏱️ 21.44 мс
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 = 2657391 THEN 2702341 WHEN sp.master_product_id = 2657025 THEN 2702341 WHEN sp.master_product_id = 2676233 THEN 2702341 WHEN sp.master_product_id = 2702341 THEN 2702341 WHEN sp.master_product_id = 1933366 THEN 2670949 WHEN sp.master_product_id = 2670949 THEN 2670949 WHEN sp.master_product_id = 2681942 THEN 2681942 WHEN sp.master_product_id = 1960939 THEN 2681942 WHEN sp.master_product_id = 2666943 THEN 2666943 WHEN sp.master_product_id = 10941098 THEN 2666943 WHEN sp.master_product_id = 149383 THEN 2662892 WHEN sp.master_product_id = 2662892 THEN 2662892 ELSE sp.master_product_id END limit 500
Bindings:
[2996211,2975219,2877891,2842852,2715904,2702341,2685471,2682071,2681942,2680174,2676541,2674471,2671354,2671026,2671017,2671011,2671000,2670979,2670978,2670972,2670964,2670954,2670949,2670946,2666943,2666758,2666106,2666027,2664001,2663549,2662892,2662799,2657391,2657025,2676233,1933366,1960939,10941098,149383,0,221,11,442,686,1368]
#8
⏱️ 8.73 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[2188726,2188764,2189397,2190280,2192292,2188484,2193182,2193345,2194624,2194698,2180855,2182584,2185603,2187875,2188833,2192732,2193257,2193264,2193579,2190184,2193467,2191262,2188562,2183594,2181671,2194452,2182715,2182790,2185093,2194931,2181449,2193267]
#9
⏱️ 11 мс
select * from "stores" where "stores"."id" in (442)
#10
⏱️ 7.89 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"akko"]
#11
⏱️ 22.25 мс
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:
[221,11,442,686,1368,true,"2026-09-08T05:05:34.663399Z"]
#12
⏱️ 5.75 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["akko"]
#13
⏱️ 8.72 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#14
⏱️ 12.79 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]