#1
⏱️ 86.84 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"ashdod"]
#2
⏱️ 504.87 мс
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:
["dairy","cheese",704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334,true,704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334]
#3
⏱️ 395.6 мс
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:
["dairy","cheese",704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334,true,704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334]
#4
⏱️ 10.52 мс
select * from "canonical_products" where "canonical_products"."id" in (155, 199)
#5
⏱️ 7.18 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?)
Bindings:
[155,199]
#6
⏱️ 91.33 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[36601256,8314242,4990037,4988786,4987083,4986561,4985410,4279811,4213380,4157788,4125470,4105860,4085256,4032127,4019922,3985099,3974567,2802677,2679096,2668917,2668915,2611955,2611893,2611880,2611879,2611240,2611239,2611238,1454587,1453876,1452649,847390,4286085,true,704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334]
#7
⏱️ 23.47 мс
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 = 4286085 THEN 4157788 WHEN sp.master_product_id = 4157788 THEN 4157788 WHEN sp.master_product_id = 4085256 THEN 4019922 WHEN sp.master_product_id = 4019922 THEN 4019922 ELSE sp.master_product_id END limit 500
Bindings:
[36601256,8314242,4990037,4988786,4987083,4986561,4985410,4279811,4213380,4157788,4125470,4105860,4085256,4032127,4019922,3985099,3974567,2802677,2679096,2668917,2668915,2611955,2611893,2611880,2611879,2611240,2611239,2611238,1454587,1453876,1452649,847390,4286085,0,704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334]
#8
⏱️ 35.17 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[67617072,10472376,10472374,10473846,10473845,10478354,10474000,29348961,10472370,10471083,19953380,3470900,3481356,3471584,24685303,24644852,24685302,3481470,24655330,24655329,52199019,3184552,3184635,3182229,3182230,3182228,3182227,3178542,3182226,3182221,2846794,3180002,3181153,3181675,3183378,3184629,12316498,12316581,12311671,12311672,12311670,12311669,12304217,12311668,12311663,2975544,12307178,12309329,12310351,12313822,12316575,3252057,3252140,3249734,3249735,3249733,3249732,3246047,3249731,3249726,2945594,2945715,3247507,3248658,3249180,3250883,3252134,3161979,25727842,3162062,3159656,3159657,3159655,3159654,3155969,3159653,3159648,2814063,2814188,3157429,3158580,3159102,3160805,3162056,3124364,3124447,3122041,3122042,3122040,3122039,3118354,3122038,3122033,2755885,2756027,3119814,3120965,3121487,3123190,3124441]
#9
⏱️ 5.85 мс
select * from "stores" where "stores"."id" in (423, 543, 604, 609, 628, 712, 770)
#10
⏱️ 6.75 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"ashdod"]
#11
⏱️ 414.07 мс
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:
[704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334,true,"2026-10-22T19:32:08.912529Z"]
#12
⏱️ 16.9 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["ashdod"]
#13
⏱️ 6.01 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#14
⏱️ 11.3 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]