#1
⏱️ 35.23 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"ashdod"]
#2
⏱️ 301.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",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
⏱️ 361.58 мс
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",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
⏱️ 1.97 мс
select * from "canonical_products" where "canonical_products"."id" in (283, 286)
#5
⏱️ 7.48 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?)
Bindings:
[283,286]
#6
⏱️ 52.38 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[27815085,12196449,12196440,4990576,4990374,4988227,4987429,4546334,4546313,4546301,4546279,4546274,4546265,4546263,4546262,4529792,4107700,4060426,4032627,4030805,4002769,3991834,3991036,3986018,3984999,3971747,3458976,2842852,2702452,2680174,2670979,2666027,2680729,149430,true,704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334]
#7
⏱️ 9.55 мс
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 = 4546313 THEN 4546313 WHEN sp.master_product_id = 2680729 THEN 4546313 WHEN sp.master_product_id = 4546301 THEN 4546301 WHEN sp.master_product_id = 149430 THEN 4546301 ELSE sp.master_product_id END limit 500
Bindings:
[27815085,12196449,12196440,4990576,4990374,4988227,4987429,4546334,4546313,4546301,4546279,4546274,4546265,4546263,4546262,4529792,4107700,4060426,4032627,4030805,4002769,3991834,3991036,3986018,3984999,3971747,3458976,2842852,2702452,2680174,2670979,2666027,2680729,149430,0,704,712,203,733,720,770,604,628,157,423,540,543,609,209,250,334]
#8
⏱️ 23.45 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[10472530,29358229,10479385,1958104,29345946,10478505,24648566,24683459,3482244,3470922,78107430,24683104,78132752,3482332,24652230,24648702,78133615,78133622,24652213,3182937,3182021,3182819,3184966,3185168,12312879,2984865,12311197,12312761,12317417,12317619,3250442,2955656,2955665,2955670,2955690,2955702,2955724,3249526,3250324,3252471,3252673,3160364,3051540,2672129,2672130,2672132,2824819,2672146,2672168,2672180,2672201,3159448,3160246,3162393,3162595,3122749,2766572,3121833,3122631,3124778,3124980]
#9
⏱️ 2.68 мс
select * from "stores" where "stores"."id" in (423, 543, 604, 609, 628, 712, 770)
#10
⏱️ 3.01 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"ashdod"]
#11
⏱️ 32.69 мс
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-22T21:17:33.247003Z"]
#12
⏱️ 2.92 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["ashdod"]
#13
⏱️ 3.36 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#14
⏱️ 4.02 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]