#1
⏱️ 29.04 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"nahariya"]
#2
⏱️ 367.2 мс
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:
["household","cleaning_paper",766,1123,1254,446,1362,10,241,410,true,766,1123,1254,446,1362,10,241,410]
#3
⏱️ 313.17 мс
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:
["household","cleaning_paper",766,1123,1254,446,1362,10,241,410,true,766,1123,1254,446,1362,10,241,410]
#4
⏱️ 1.38 мс
select * from "canonical_products" where "canonical_products"."id" in (12, 25, 38)
#5
⏱️ 0.6 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?, ?, ?)
Bindings:
[12,25,38]
#6
⏱️ 2.11 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[10880869,4649624,4531886,3605546,3411661,2807242,2742043,2715904,2702341,2672991,2672977,2672969,2657391,2634735,2633336,2049531,1911330,1879230,1515272,1501043,1498080,1498079,1452163,1438800,1438523,1438201,1434511,1433150,1432706,1432705,1432697,1432357,2956794,2676233,2657025,2681555,true,766,1123,1254,446,1362,10,241,410]
#7
⏱️ 0.93 мс
select * from "stores" where "stores"."id" in (10, 241, 410, 1123, 1254, 1362)
#8
⏱️ 2.24 мс
select min(sp.id) as best_sp_id from "store_prices" as "sp" where "sp"."master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "sp"."price" > ? and "sp"."store_id" in (?, ?, ?, ?, ?, ?, ?, ?) group by sp.store_id, CASE WHEN sp.master_product_id = 2956794 THEN 3411661 WHEN sp.master_product_id = 3411661 THEN 3411661 WHEN sp.master_product_id = 2676233 THEN 2657391 WHEN sp.master_product_id = 2657391 THEN 2657391 WHEN sp.master_product_id = 2657025 THEN 2657391 WHEN sp.master_product_id = 2702341 THEN 2657391 WHEN sp.master_product_id = 2681555 THEN 2672969 WHEN sp.master_product_id = 2672969 THEN 2672969 WHEN sp.master_product_id = 2672977 THEN 2672969 ELSE sp.master_product_id END limit 500
Bindings:
[10880869,4649624,4531886,3605546,3411661,2807242,2742043,2715904,2702341,2672991,2672977,2672969,2657391,2634735,2633336,2049531,1911330,1879230,1515272,1501043,1498080,1498079,1452163,1438800,1438523,1438201,1434511,1433150,1432706,1432705,1432697,1432357,2956794,2676233,2657025,2681555,0,766,1123,1254,446,1362,10,241,410]
#9
⏱️ 1.02 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[79959033,5618127,5618128,5618536,5619503,5616496,5618267,5618680,5618123,5606633,2237567,2229581,2234088,77933745,29611304,2229826,10980996,10993844,10993870,2225864,2226424,11006754,29611556,2230967,46766407]
#10
⏱️ 0.68 мс
select * from "stores" where "stores"."id" in (241, 446)
#11
⏱️ 0.82 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"nahariya"]
#12
⏱️ 1.07 мс
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-10-22T21:06:34.166931Z"]
#13
⏱️ 1.1 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["nahariya"]
#14
⏱️ 1.18 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#15
⏱️ 1.81 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]