#1
⏱️ 94.9 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"modiin"]
#2
⏱️ 845.27 мс
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:
["pharmacy","cosmetics_beauty",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
⏱️ 566.68 мс
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:
["pharmacy","cosmetics_beauty",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
⏱️ 30.1 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4110791,4106626,4068252,4024348,4000631,1426386,1420947,1420109,1420095,1420065,1419968,1419950,1419940,1419598,785710,640737,367139,278471,248419,194773,190577,190187,189649,185633,185629,181578,180828,180725,180531,164765,163025,160412,true,713,763,147,345,1153,1201,1255,1273,348,40,111,305,426,439,549,406]
#5
⏱️ 9.46 мс
select * from "stores" where "stores"."id" in (147, 348, 406, 1153, 1201, 1255, 1273)
#6
⏱️ 15.73 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4110791,4106626,4068252,4024348,4000631,1426386,1420947,1420109,1420095,1420065,1419968,1419950,1419940,1419598,785710,640737,367139,278471,248419,194773,190577,190187,189649,185633,185629,181578,180828,180725,180531,164765,163025,160412,0,713,763,147,345,1153,1201,1255,1273,348,40,111,305,426,439,549,406]
#7
⏱️ 7.83 мс
select * from "stores" where "stores"."id" in (147, 345, 348, 406, 426, 439, 549, 713, 763)
#8
⏱️ 5.39 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"modiin"]
#9
⏱️ 33.96 мс
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:46:02.907023Z"]
#10
⏱️ 11.06 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["modiin"]
#11
⏱️ 6.51 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#12
⏱️ 11.15 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]