#1
⏱️ 172.08 мс
select "id" from "stores" where "is_active" = ? and "city_slug" = ?
Bindings:
[true,"netivot"]
#2
⏱️ 139.35 мс
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:
["grocery","baking_spices",445,623,true,445,623]
#3
⏱️ 92.7 мс
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:
["grocery","baking_spices",445,623,true,445,623]
#4
⏱️ 12.99 мс
select * from "canonical_products" where "canonical_products"."id" in (145)
#5
⏱️ 11.4 мс
select "id", "canonical_product_id" from "master_products" where "canonical_product_id" in (?)
Bindings:
[145]
#6
⏱️ 12.91 мс
select * from "deals" where "master_product_id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) and "is_active" = ? and "store_id" in (?, ?)
Bindings:
[1432364,364789,195457,192327,156423,135564,134865,132636,132009,131476,130832,129643,128821,127513,124029,114016,113121,112045,111384,109958,108671,106969,106967,106789,106442,106305,106216,105664,105203,105090,105007,104991,192386,true,445,623]
#7
⏱️ 11.19 мс
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 = 192386 THEN 192327 WHEN sp.master_product_id = 192327 THEN 192327 ELSE sp.master_product_id END limit 500
Bindings:
[1432364,364789,195457,192327,156423,135564,134865,132636,132009,131476,130832,129643,128821,127513,124029,114016,113121,112045,111384,109958,108671,106969,106967,106789,106442,106305,106216,105664,105203,105090,105007,104991,192386,0,445,623]
#8
⏱️ 17.94 мс
select * from "store_prices" where "id" in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
Bindings:
[2215961,2214946,2216727,2221206,2213629,2219418,2214461,2223884,2223895,2212414,2216155,2212862,2218428,2221253,2219887,2210686,2218865,2214617,2215393,2215784,2218285,2217018,2212150,2217312,2222355,2212456,2219614,3010653,3011437,3012367,3012560,3012747,3013420,3013727,3013735,3009684,3011724,3012779,3010564,3011391,3011422,3008101,3006569,3006798,3008638,3008529,3010874,3010755]
#9
⏱️ 15.09 мс
select * from "stores" where "stores"."id" in (445, 623)
#10
⏱️ 0.8 мс
select * from "stores" where "is_active" = ? and "latitude" is not null and "longitude" is not null and "city_slug" = ?
Bindings:
[true,"netivot"]
#11
⏱️ 8.15 мс
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:
[445,623,true,"2026-09-08T04:55:42.638488Z"]
#12
⏱️ 6.78 мс
select * from "locations" where "city_slug" = ? limit 1
Bindings:
["netivot"]
#13
⏱️ 9.19 мс
select * from "locations" where "is_popular" = ? order by "sort_order" asc
Bindings:
[true]
#14
⏱️ 5.68 мс
select * from "locations" where "is_active" = ? order by "is_popular" desc, "sort_order" asc
Bindings:
[true]