#1
⏱️ 138.36 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"nahariya"]
#2
⏱️ 86.19 мс
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:
["appliances","kitchen_appliances",766,1123,1254,410,446,1362,10,241,true,766,1123,1254,410,446,1362,10,241]
#3
⏱️ 38.58 мс
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:
["appliances","kitchen_appliances",766,1123,1254,410,446,1362,10,241,true,766,1123,1254,410,446,1362,10,241]
#4
⏱️ 10.78 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[101406,2976294,2840407,2774407,2744913,2706046,2705315,2684675,2677301,2676655,2675174,2673298,2662692,2662284,2659453,2658145,2657036,2633565,1452017,134081,133917,133140,133134,133131,133130,132560,130091,130058,130030,130022,129990,129418,true,766,1123,1254,410,446,1362,10,241]
#5
⏱️ 2.29 мс
select * from "stores" where "stores"."id" in (10, 410)
#6
⏱️ 21.89 мс
select * from "store_prices" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "price" > ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[101406,2976294,2840407,2774407,2744913,2706046,2705315,2684675,2677301,2676655,2675174,2673298,2662692,2662284,2659453,2658145,2657036,2633565,1452017,134081,133917,133140,133134,133131,133130,132560,130091,130058,130030,130022,129990,129418,0,766,1123,1254,410,446,1362,10,241]
#7
⏱️ 9.83 мс
select * from "stores" where "stores"."id" in (410, 446)
#8
⏱️ 5.69 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"nahariya"]
#9
⏱️ 8.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:
[766,1123,1254,446,1362,true,"2026-09-08T07:06:42.825389Z"]
#10
⏱️ 9.93 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["nahariya"]
#11
⏱️ 7.8 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#12
⏱️ 11.86 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]