mars
MARS-74
· child of MARS-68 Audit Next.js/Node compute that should be pushed to Postgres (aggregations/filters/joins done in JS that belong in SQL or a view) Done
Cache unread-notifications count (5.1% DB time, 41k calls): SELECT count(*) FROM notifications WHERE userId AND readAt IS NULL fires every page load — counter column on users or 30s sessionStorage TTL. See db/pg-stat-statements-report.md
Done normal
unassigned
Questions
No questions.
Activity
-
parent=#819
-
perf(notifications): replaced per-page COUNT(*) (5.1% DB time, 41k calls) with users.unreadNotificationsCount counter column + triggers. Shipped 94be779 v2.16.45, audit PASS, live-version confirmed.
task
2026-06-09 by wi-cli-venus
6w ago
2026-06-14 22:37