#1
⏱️ 175.34 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"modiin"]
#2
⏱️ 469.25 мс
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",713,763,147,345,1153,1201,1255,1273,348,40,111,305,426,439,549,406,true,713,763,147,345,1153,1201,1255,1273,348,40,111,305,426,439,549,406,"produce"]
#3
⏱️ 237.47 мс
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",713,763,147,345,1153,1201,1255,1273,348,40,111,305,426,439,549,406,true,713,763,147,345,1153,1201,1255,1273,348,40,111,305,426,439,549,406,"produce"]
#4
⏱️ 17.16 мс
select * from "canonical_products" where "canonical_products"."id" in (29, 49, 87, 108, 140, 162, 180, 257, 276, 279, 286, 313)
#5
⏱️ 7.36 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[29,140,87,257,279,276,286,162,313,49,180,108]
#6
⏱️ 221.35 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4777564,4658871,4658870,4658869,4658868,4602029,4601010,4546301,4546295,4546279,4546265,4533498,4529854,4526816,4526787,4524189,4522964,4401833,4179499,4179442,4175300,4039527,3698258,2812350,2671026,2670964,2666758,2666027,2664001,2647878,2641760,2633097,4536369,157207,1456451,154874,160600,162815,96257,149434,2661944,195121,207015,110668,378375,162150,207016,195120,110465,2666480,3855719,1980207,4055598,162816,160964,207014,195119,1467932,207013,195118,149430,158802,true,713,763,147,345,1153,1201,1255,1273,348,40,111,305,426,439,549,406]
#7
⏱️ 8.43 мс
select * from "stores" where "stores"."id" in (111, 147, 345, 348, 406)
#8
⏱️ 48.92 мс
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 = 4777564 THEN 4777564 WHEN sp.master_product_id = 4536369 THEN 4777564 WHEN sp.master_product_id = 157207 THEN 4526816 WHEN sp.master_product_id = 4526816 THEN 4526816 WHEN sp.master_product_id = 1456451 THEN 4526816 WHEN sp.master_product_id = 154874 THEN 4526816 WHEN sp.master_product_id = 160600 THEN 4526816 WHEN sp.master_product_id = 162815 THEN 4526816 WHEN sp.master_product_id = 96257 THEN 4526816 WHEN sp.master_product_id = 149434 THEN 4526816 WHEN sp.master_product_id = 2661944 THEN 4526816 WHEN sp.master_product_id = 195121 THEN 4658870 WHEN sp.master_product_id = 4658870 THEN 4658870 WHEN sp.master_product_id = 207015 THEN 4658870 WHEN sp.master_product_id = 110668 THEN 4658870 WHEN sp.master_product_id = 378375 THEN 4179499 WHEN sp.master_product_id = 4179499 THEN 4179499 WHEN sp.master_product_id = 162150 THEN 4179499 WHEN sp.master_product_id = 4658871 THEN 4658871 WHEN sp.master_product_id = 207016 THEN 4658871 WHEN sp.master_product_id = 195120 THEN 4658871 WHEN sp.master_product_id = 110465 THEN 4658871 WHEN sp.master_product_id = 4546295 THEN 4546295 WHEN sp.master_product_id = 2666480 THEN 4546295 WHEN sp.master_product_id = 3855719 THEN 4526787 WHEN sp.master_product_id = 1980207 THEN 4526787 WHEN sp.master_product_id = 4055598 THEN 4526787 WHEN sp.master_product_id = 162816 THEN 4526787 WHEN sp.master_product_id = 160964 THEN 4526787 WHEN sp.master_product_id = 4526787 THEN 4526787 WHEN sp.master_product_id = 207014 THEN 4658869 WHEN sp.master_product_id = 195119 THEN 4658869 WHEN sp.master_product_id = 4658869 THEN 4658869 WHEN sp.master_product_id = 4602029 THEN 4602029 WHEN sp.master_product_id = 1467932 THEN 4602029 WHEN sp.master_product_id = 4658868 THEN 4658868 WHEN sp.master_product_id = 207013 THEN 4658868 WHEN sp.master_product_id = 195118 THEN 4658868 WHEN sp.master_product_id = 4546301 THEN 4546301 WHEN sp.master_product_id = 149430 THEN 4546301 WHEN sp.master_product_id = 4529854 THEN 4529854 WHEN sp.master_product_id = 158802 THEN 4529854 ELSE sp.master_product_id END limit 500
Bindings:
[4777564,4658871,4658870,4658869,4658868,4602029,4601010,4546301,4546295,4546279,4546265,4533498,4529854,4526816,4526787,4524189,4522964,4401833,4179499,4179442,4175300,4039527,3698258,2812350,2671026,2670964,2666758,2666027,2664001,2647878,2641760,2633097,4536369,157207,1456451,154874,160600,162815,96257,149434,2661944,195121,207015,110668,378375,162150,207016,195120,110465,2666480,3855719,1980207,4055598,162816,160964,207014,195119,1467932,207013,195118,149430,158802,0,713,763,147,345,1153,1201,1255,1273,348,40,111,305,426,439,549,406]
#9
⏱️ 45.4 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[6533517,5080174,746828,1112173,1469753,1897051,1899523,1887151,1889470,1889661,1888671,1893536,1900031,2143762,2147289,2149442,2150129,2151853,2151946,2144600,2149852,2140197,3499398,3498990,3503133,3503190,3503566,3504682,3061212,3093950,3094849,7596846,2723686,2722484,3056695,2728019,3059070,3095546,2732438,2733674,2733688,2733704,2733709,2727047,2728062,2728004,2728005,2728007,2728006,7591454,499147]
#10
⏱️ 10.88 мс
select * from "stores" where "stores"."id" in (111, 147, 345, 348, 406, 426, 439, 549, 713, 763)
#11
⏱️ 10.76 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"modiin"]
#12
⏱️ 154.99 мс
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:
[713,763,147,345,1153,1201,1255,1273,40,111,305,426,439,549,true,"2026-09-08T06:22:25.505679Z"]
#13
⏱️ 8.68 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["modiin"]
#14
⏱️ 12.28 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 14.34 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]