#1
⏱️ 178.55 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"karmiel"]
#2
⏱️ 1045.85 мс
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","personal_care",186,743,119,1241,545,1325,98,450,684,29,398,true,186,743,119,1241,545,1325,98,450,684,29,398]
#3
⏱️ 1047.1 мс
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","personal_care",186,743,119,1241,545,1325,98,450,684,29,398,true,186,743,119,1241,545,1325,98,450,684,29,398]
#4
⏱️ 17.13 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4102247,4057513,4051090,4051089,4045473,4044707,4044308,4029930,4029581,4023300,4000633,3971148,3941843,3934963,3934962,2799780,2683719,2637582,1912771,1717061,1614556,1560460,1515604,1497413,1496758,1489397,1488651,1488451,1480977,1480071,1480054,1474793,true,186,743,119,1241,545,1325,98,450,684,29,398]
#5
⏱️ 14.45 мс
select * from "stores" where "stores"."id" in (186, 743, 1241, 1325)
#6
⏱️ 24.95 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[4102247,4057513,4051090,4051089,4045473,4044707,4044308,4029930,4029581,4023300,4000633,3971148,3941843,3934963,3934962,2799780,2683719,2637582,1912771,1717061,1614556,1560460,1515604,1497413,1496758,1489397,1488651,1488451,1480977,1480071,1480054,1474793,0,186,743,119,1241,545,1325,98,450,684,29,398]
#7
⏱️ 4.94 мс
select * from "stores" where "stores"."id" in (186, 450, 545, 743)
#8
⏱️ 11.3 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"karmiel"]
#9
⏱️ 366.01 мс
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:
[186,743,119,1241,545,1325,98,450,684,29,true,"2026-10-22T21:44:15.772482Z"]
#10
⏱️ 9.82 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["karmiel"]
#11
⏱️ 12.83 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#12
⏱️ 23.21 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]