#1
⏱️ 49.85 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"kiryat-gat"]
#2
⏱️ 738.52 мс
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 (?, ?, ?)))
Bindings:
["grocery","baking_spices",471,90,243,true,471,90,243]
#3
⏱️ 58.11 мс
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 (?, ?, ?))) 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:
["grocery","baking_spices",471,90,243,true,471,90,243]
#4
⏱️ 1.33 мс
select * from "canonical_products" where "canonical_products"."id" in (6)
#5
⏱️ 0.61 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[6]
#6
⏱️ 6.1 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?)
Bindings:
[2975340,2842852,2702452,2640775,2640774,2608194,1474523,1472108,1472107,1469150,1457784,1455751,1455745,1455741,1455705,1451848,1451847,1451739,364789,256300,198874,195457,175170,171783,168019,164080,161333,161332,155100,151280,135564,134616,1909143,true,471,90,243]
#7
⏱️ 0.85 мс
select * from "stores" where "stores"."id" in (90, 243)
#8
⏱️ 12.49 мс
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 = 1909143 THEN 198874 WHEN sp.master_product_id = 198874 THEN 198874 ELSE sp.master_product_id END limit 500
Bindings:
[2975340,2842852,2702452,2640775,2640774,2608194,1474523,1472108,1472107,1469150,1457784,1455751,1455745,1455741,1455705,1451848,1451847,1451739,364789,256300,198874,195457,175170,171783,168019,164080,161333,161332,155100,151280,135564,134616,1909143,0,471,90,243]
#9
⏱️ 14.35 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4811544,4823299,4820769,4817694,4817706,4817710,4817714,4820778,5384410,35960078,5395334,31544015,2481163,31554689,2479260,31552775,11863869,2481819,33695003,11874251,72320064,11877035,56507156,11869608,31552773,35621714,11867876,11867877,11869521,11869525,11870961,68357342,31552743,30149467,2480064,31546960,11875537,11876770]
#10
⏱️ 1.42 мс
select * from "stores" where "stores"."id" in (90, 243, 471)
#11
⏱️ 3.55 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"kiryat-gat"]
#12
⏱️ 105.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:
[471,90,243,true,"2026-10-22T23:12:17.248534Z"]
#13
⏱️ 2.04 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["kiryat-gat"]
#14
⏱️ 1.65 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 1.89 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]