#1
⏱️ 139.23 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"raanana"]
#2
⏱️ 495.75 мс
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",1108,762,346,1133,1198,1205,585,637,230,56,100,140,159,316,364,460,511,656,659,692,true,1108,762,346,1133,1198,1205,585,637,230,56,100,140,159,316,364,460,511,656,659,692]
#3
⏱️ 335 мс
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",1108,762,346,1133,1198,1205,585,637,230,56,100,140,159,316,364,460,511,656,659,692,true,1108,762,346,1133,1198,1205,585,637,230,56,100,140,159,316,364,460,511,656,659,692]
#4
⏱️ 11.67 мс
select * from "canonical_products" where "canonical_products"."id" in (145)
#5
⏱️ 13.06 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[145]
#6
⏱️ 64.52 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4072452,2608194,1472108,1472107,1455995,1451847,1434643,1432364,1419976,1419974,965746,419298,364789,262280,256300,249388,248808,192327,182689,182511,168014,166399,162952,161333,160615,160363,160268,160017,158986,158725,158475,158192,192386,true,1108,762,346,1133,1198,1205,585,637,230,56,100,140,159,316,364,460,511,656,659,692]
#7
⏱️ 10.07 мс
select * from "stores" where "stores"."id" in (100, 140, 230, 316, 1108, 1133, 1198, 1205)
#8
⏱️ 19.39 мс
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 = 192386 THEN 192327 WHEN sp.master_product_id = 192327 THEN 192327 ELSE sp.master_product_id END limit 500
Bindings:
[4072452,2608194,1472108,1472107,1455995,1451847,1434643,1432364,1419976,1419974,965746,419298,364789,262280,256300,249388,248808,192327,182689,182511,168014,166399,162952,161333,160615,160363,160268,160017,158986,158725,158475,158192,192386,0,1108,762,346,1133,1198,1205,585,637,230,56,100,140,159,316,364,460,511,656,659,692]
#9
⏱️ 34.3 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4341733,4344697,5606166,5609945,5610602,5630427,5608044,5610514,5606097,5610599,5613102,916489,917494,921165,916796,917519,917459,916425,917491,919731,5890357,5890358,5906022,5909006,5896676,5896677,4937494,753375,756650,2381018,2386648,2381015,2386903,2382141,2386589,2380980,3438009,3438287,3438567,3438839,3439832,3440116,3440205,3440486,3442876,3446312,3447861,3441870,3442089,3437816,3444625,2970213,2968306,494265,494227]
#10
⏱️ 6.83 мс
select * from "stores" where "stores"."id" in (100, 140, 230, 316, 346, 460, 585, 637, 762)
#11
⏱️ 7.04 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"raanana"]
#12
⏱️ 27.74 мс
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:
[1108,762,346,1133,1198,1205,585,637,56,100,140,159,316,364,460,511,656,659,692,true,"2026-09-08T05:46:00.757937Z"]
#13
⏱️ 9.68 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["raanana"]
#14
⏱️ 16.95 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 8.07 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]