#1
⏱️ 190.07 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"ashdod"]
#2
⏱️ 1777.77 мс
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:
["snacks","chips_savory",704,712,733,720,770,203,604,628,157,423,540,543,609,209,250,334,true,704,712,733,720,770,203,604,628,157,423,540,543,609,209,250,334]
#3
⏱️ 481.56 мс
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:
["snacks","chips_savory",704,712,733,720,770,203,604,628,157,423,540,543,609,209,250,334,true,704,712,733,720,770,203,604,628,157,423,540,543,609,209,250,334]
#4
⏱️ 18.57 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[108808721,108787969,81853314,78963913,63265682,55133359,30168882,8775798,8775778,5127697,4990833,4990832,4990772,4990715,4990523,4988820,4988768,4986683,4986363,4986222,4985770,4984783,4984678,4984486,4984020,4984009,4983892,4983757,4983651,4809781,4608224,4546366,true,704,712,733,720,770,203,604,628,157,423,540,543,609,209,250,334]
#5
⏱️ 11.74 мс
select * from "stores" where "stores"."id" in (540, 704, 733)
#6
⏱️ 32.28 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[108808721,108787969,81853314,78963913,63265682,55133359,30168882,8775798,8775778,5127697,4990833,4990832,4990772,4990715,4990523,4988820,4988768,4986683,4986363,4986222,4985770,4984783,4984678,4984486,4984020,4984009,4983892,4983757,4983651,4809781,4608224,4546366,0,704,712,733,720,770,203,604,628,157,423,540,543,609,209,250,334]
#7
⏱️ 11.44 мс
select * from "stores" where "stores"."id" in (423, 540, 543, 604, 609, 628, 704, 712, 733, 770)
#8
⏱️ 13.16 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["ashdod"]
#9
⏱️ 10.22 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#10
⏱️ 14.48 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]