#1
⏱️ 124.28 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"modiin"]
#2
⏱️ 906.04 мс
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",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
⏱️ 622.93 мс
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",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
⏱️ 10.45 мс
select * from "canonical_products" where "canonical_products"."id" in (29, 75, 81, 87, 117, 126, 140, 162, 257, 276, 279, 281, 283, 286)
#5
⏱️ 6.97 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[29,281,140,87,257,279,276,75,126,81,117,283,286,162]
#6
⏱️ 108.75 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4935924,4777564,4665520,4658871,4658870,4658869,4658868,4603578,4602029,4601010,4599809,4584074,4574784,4546420,4546409,4546386,4546368,4546366,4546355,4546345,4546334,4546323,4546313,4546301,4546295,4546279,4546274,4546265,4546263,4546262,4546253,4546244,4536369,4540232,3053377,1452602,2670953,4033131,195121,207015,110668,9960259,4016585,149368,2663583,192681,207016,195120,110465,2666480,207014,195119,1467932,207013,195118,195115,2680729,149430,true,713,763,147,345,1153,1201,1255,1273,348,40,111,305,426,439,549,406]
#7
⏱️ 4.74 мс
select * from "stores" where "stores"."id" in (406)
#8
⏱️ 34.71 мс
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 = 4540232 THEN 4584074 WHEN sp.master_product_id = 4584074 THEN 4584074 WHEN sp.master_product_id = 3053377 THEN 4546368 WHEN sp.master_product_id = 1452602 THEN 4546368 WHEN sp.master_product_id = 2670953 THEN 4546368 WHEN sp.master_product_id = 4546368 THEN 4546368 WHEN sp.master_product_id = 4033131 THEN 4546368 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 = 9960259 THEN 4546323 WHEN sp.master_product_id = 4546323 THEN 4546323 WHEN sp.master_product_id = 4016585 THEN 4546323 WHEN sp.master_product_id = 149368 THEN 4546323 WHEN sp.master_product_id = 2663583 THEN 4546323 WHEN sp.master_product_id = 4546409 THEN 4546409 WHEN sp.master_product_id = 192681 THEN 4546409 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 = 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 = 4665520 THEN 4665520 WHEN sp.master_product_id = 195115 THEN 4665520 WHEN sp.master_product_id = 2680729 THEN 4546313 WHEN sp.master_product_id = 4546313 THEN 4546313 WHEN sp.master_product_id = 4546301 THEN 4546301 WHEN sp.master_product_id = 149430 THEN 4546301 ELSE sp.master_product_id END limit 500
Bindings:
[4935924,4777564,4665520,4658871,4658870,4658869,4658868,4603578,4602029,4601010,4599809,4584074,4574784,4546420,4546409,4546386,4546368,4546366,4546355,4546345,4546334,4546323,4546313,4546301,4546295,4546279,4546274,4546265,4546263,4546262,4546253,4546244,4536369,4540232,3053377,1452602,2670953,4033131,195121,207015,110668,9960259,4016585,149368,2663583,192681,207016,195120,110465,2666480,207014,195119,1467932,207013,195118,195115,2680729,149430,0,713,763,147,345,1153,1201,1255,1273,348,40,111,305,426,439,549,406]
#9
⏱️ 22.3 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[1112855,5849725,1900031,1889473,1892905,1888614,2149852,2151880,2141602,2151176,2140197,2733655,2733664,2733672,7621900,2733674,2733683,2733688,2733704,2733709,2733720,2733731,2733742,2733753,7621992,2733772,2733774,2733789,2733805,2733813,2731838,3095782,2725846,2727047,2728062,2729614,2728004,2728005,2728007,2728006,2728001,7591454,3062700]
#10
⏱️ 8.07 мс
select * from "stores" where "stores"."id" in (348, 406, 426, 439, 713)
#11
⏱️ 7.63 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"modiin"]
#12
⏱️ 37.94 мс
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-08T05:06:05.423703Z"]
#13
⏱️ 4.16 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["modiin"]
#14
⏱️ 7.14 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 9.24 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]