#1
⏱️ 220.66 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"modiin"]
#2
⏱️ 1156.58 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_slug" = ? and "master_products"."id" in ((select "master_product_id" from "store_prices" where "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) union (select "master_product_id" from "deals" where "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)))
Bindings:
["grocery",713,763,147,345,1153,1201,1255,1273,348,40,111,305,426,439,549,406,true,713,763,147,345,1153,1201,1255,1273,348,40,111,305,426,439,549,406]
#3
⏱️ 1196.59 мс
select * from "master_products" where "barcode" is not null and "category_slug" = ? and "master_products"."id" in ((select "master_product_id" from "store_prices" where "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)) union (select "master_product_id" from "deals" where "is_active" = ? and "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",713,763,147,345,1153,1201,1255,1273,348,40,111,305,426,439,549,406,true,713,763,147,345,1153,1201,1255,1273,348,40,111,305,426,439,549,406]
#4
⏱️ 19.83 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4928790,4534738,4533815,4532830,4531886,4531885,4528009,4178083,4175685,4173605,4172600,4115995,4072452,4067970,4067533,4060087,4044707,4029930,4026883,4026880,4026878,4024028,4023366,4016206,3987313,2816262,2708626,2683719,2675929,2671430,2670760,2669776,true,713,763,147,345,1153,1201,1255,1273,348,40,111,305,426,439,549,406]
#5
⏱️ 7.41 мс
select * from "stores" where "stores"."id" in (111, 147, 406, 1153, 1201, 1255, 1273)
#6
⏱️ 15.71 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4928790,4534738,4533815,4532830,4531886,4531885,4528009,4178083,4175685,4173605,4172600,4115995,4072452,4067970,4067533,4060087,4044707,4029930,4026883,4026880,4026878,4024028,4023366,4016206,3987313,2816262,2708626,2683719,2675929,2671430,2670760,2669776,0,713,763,147,345,1153,1201,1255,1273,348,40,111,305,426,439,549,406]
#7
⏱️ 13.92 мс
select * from "stores" where "stores"."id" in (147, 348, 406, 426, 439, 549, 713, 763)
#8
⏱️ 10.34 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"modiin"]
#9
⏱️ 28.88 мс
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:
[713,763,147,345,1153,1201,1255,1273,40,111,305,426,439,549,true,"2026-09-08T05:06:00.237733Z"]
#10
⏱️ 8.28 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["modiin"]
#11
⏱️ 9.77 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#12
⏱️ 10.29 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]