#1
⏱️ 83.94 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"nahariya"]
#2
⏱️ 2994.86 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_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 (?, ?, ?, ?, ?, ?, ?, ?)))
Bindings:
["snacks",766,1123,1254,446,1362,10,241,410,true,766,1123,1254,446,1362,10,241,410]
#3
⏱️ 477.85 мс
select * from "master_products" where "barcode" is not null and "category_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 (?, ?, ?, ?, ?, ?, ?, ?))) 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:
["snacks",766,1123,1254,446,1362,10,241,410,true,766,1123,1254,446,1362,10,241,410]
#4
⏱️ 13.82 мс
select * from "canonical_products" where "canonical_products"."id" in (196)
#5
⏱️ 6.08 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[196]
#6
⏱️ 14.13 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[74076446,72978997,5127697,4099032,3965169,3605772,2896439,2871877,2847887,2839551,2742017,2726805,2710102,2671000,2670972,2667237,2660887,2659969,2657438,2657033,2656883,2648342,2647546,2641936,2632516,2631106,2630703,2067877,2047938,1912560,1879045,1474526,3702666,true,766,1123,1254,446,1362,10,241,410]
#7
⏱️ 6.97 мс
select * from "stores" where "stores"."id" in (241, 410)
#8
⏱️ 22.1 мс
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 = 3702666 THEN 2667237 WHEN sp.master_product_id = 2667237 THEN 2667237 ELSE sp.master_product_id END limit 500
Bindings:
[74076446,72978997,5127697,4099032,3965169,3605772,2896439,2871877,2847887,2839551,2742017,2726805,2710102,2671000,2670972,2667237,2660887,2659969,2657438,2657033,2656883,2648342,2647546,2641936,2632516,2631106,2630703,2067877,2047938,1912560,1879045,1474526,3702666,0,766,1123,1254,446,1362,10,241,410]
#9
⏱️ 31.21 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[5618679,61799143,79235246,46178215,11021246,33386099,33375986,33383725,2226400,2227817,2228898,11023647,2232174,2238040,2225217,11013902,10982853,2228608,31252707,2236104,2226749,2226775,33374106,11023648,10981306,2225300,67874566,2232875,2237003,2231184,56229302,71688163]
#10
⏱️ 9.03 мс
select * from "stores" where "stores"."id" in (241, 410, 446)
#11
⏱️ 2.1 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"nahariya"]
#12
⏱️ 1.52 мс
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:
[766,1123,1254,446,1362,true,"2026-10-22T16:42:11.275917Z"]
#13
⏱️ 1.59 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["nahariya"]
#14
⏱️ 1.68 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 6.65 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]