#1
⏱️ 195.54 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"tiberias"]
#2
⏱️ 327.32 мс
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",756,633,true,756,633,"produce"]
#3
⏱️ 267.79 мс
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",756,633,true,756,633,"produce"]
#4
⏱️ 20.4 мс
select * from "canonical_products" where "canonical_products"."id" in (75, 81, 87, 117, 126, 140, 162, 174, 175, 228, 257, 275, 276, 279, 283, 286, 320)
#5
⏱️ 37.2 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[228,140,87,257,279,276,75,126,81,117,283,286,162,320,174,175,275]
#6
⏱️ 23.34 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?)
Bindings:
[4834493,4834331,4678136,4658871,4658870,4658869,4658868,4602029,4584074,4546420,4546409,4546386,4546368,4546366,4546345,4546334,4546323,4546313,4546301,4546295,4546279,4546274,4546265,4546253,4546244,4546240,4546223,4546198,4541685,4541684,4539975,4534927,4540232,3053377,1452602,2670953,4033131,195121,207015,110668,9960259,4016585,149368,2663583,192681,207016,195120,110465,2666480,198954,198955,195117,111088,109484,109821,207014,195119,2663682,1059071,1467932,207013,195118,2680729,149430,192680,true,756,633]
#7
⏱️ 23.2 мс
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 = 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 = 198954 THEN 4541685 WHEN sp.master_product_id = 4541685 THEN 4541685 WHEN sp.master_product_id = 4541684 THEN 4541684 WHEN sp.master_product_id = 198955 THEN 4541684 WHEN sp.master_product_id = 4678136 THEN 4678136 WHEN sp.master_product_id = 195117 THEN 4678136 WHEN sp.master_product_id = 111088 THEN 4678136 WHEN sp.master_product_id = 109484 THEN 4678136 WHEN sp.master_product_id = 109821 THEN 4678136 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 = 2663682 THEN 4534927 WHEN sp.master_product_id = 1059071 THEN 4534927 WHEN sp.master_product_id = 4534927 THEN 4534927 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 = 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 WHEN sp.master_product_id = 4546240 THEN 4546240 WHEN sp.master_product_id = 192680 THEN 4546240 ELSE sp.master_product_id END limit 500
Bindings:
[4834493,4834331,4678136,4658871,4658870,4658869,4658868,4602029,4584074,4546420,4546409,4546386,4546368,4546366,4546345,4546334,4546323,4546313,4546301,4546295,4546279,4546274,4546265,4546253,4546244,4546240,4546223,4546198,4541685,4541684,4539975,4534927,4540232,3053377,1452602,2670953,4033131,195121,207015,110668,9960259,4016585,149368,2663583,192681,207016,195120,110465,2666480,198954,198955,195117,111088,109484,109821,207014,195119,2663682,1059071,1467932,207013,195118,2680729,149430,192680,0,756,633]
#8
⏱️ 25.29 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[2955856,2960444,2961913,2961914,2966058,2966065,2966082,2966086,2966095,2966105,2966114,2966119,2966134,2966140,2966152,2966163,2966174,2966184,2966202,2966204,2966216,2966229,2966237,2960664,2961029,2961611,2961612,2959962,2959961,2957845,2960875,2961038,1816958,1816995,1817036,1815553,1817022,1818492]
#9
⏱️ 39.31 мс
select * from "stores" where "stores"."id" in (633, 756)
#10
⏱️ 6.89 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"tiberias"]
#11
⏱️ 12.64 мс
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:
[756,633,true,"2026-09-08T05:05:03.016501Z"]
#12
⏱️ 12.43 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["tiberias"]
#13
⏱️ 16.94 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#14
⏱️ 14.48 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]