#1
⏱️ 202.34 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"ashdod"]
#2
⏱️ 1094.43 мс
select count(*) as "aggregate" from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_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:
["bakery","pastries_frozen",704,712,733,720,770,250,334,604,628,157,209,203,423,540,543,609,true,704,712,733,720,770,250,334,604,628,157,209,203,423,540,543,609]
#3
⏱️ 656.83 мс
select * from "master_products" where "barcode" is not null and "category_slug" = ? and "subcategory_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:
["bakery","pastries_frozen",704,712,733,720,770,250,334,604,628,157,209,203,423,540,543,609,true,704,712,733,720,770,250,334,604,628,157,209,203,423,540,543,609]
#4
⏱️ 19.62 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4984011,283550,264948,249106,241499,241362,185455,168075,152333,152126,152125,152123,133351,129648,114261,113591,112002,105114,105108,105048,104452,104449,104252,101184,101030,100902,100446,100445,100183,100160,100135,100112,true,704,712,733,720,770,250,334,604,628,157,209,203,423,540,543,609]
#5
⏱️ 3.79 мс
select * from "stores" where "stores"."id" in (334, 704, 712)
#6
⏱️ 25.29 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4984011,283550,264948,249106,241499,241362,185455,168075,152333,152126,152125,152123,133351,129648,114261,113591,112002,105114,105108,105048,104452,104449,104252,101184,101030,100902,100446,100445,100183,100160,100135,100112,0,704,712,733,720,770,250,334,604,628,157,209,203,423,540,543,609]
#7
⏱️ 5.14 мс
select * from "stores" where "stores"."id" in (250, 334, 423, 540, 543, 604, 609, 628, 704, 712, 733, 770)
#8
⏱️ 10.78 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"ashdod"]
#9
⏱️ 33.97 мс
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,733,720,770,250,334,604,628,157,209,203,423,540,543,609,true,"2026-09-08T04:54:28.317519Z"]
#10
⏱️ 5.55 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["ashdod"]
#11
⏱️ 12.29 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#12
⏱️ 5.23 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]