perf: Improve presence performance with application-layer cache #1534

Closed
gamesguru wants to merge 4 commits from gamesguru/continuwuity:guru/backports/perf/presence-startup-costs-naive-loop-fix into main

2026-03-13

batch presence updates per server, not room. bundle events and local users under batch requests per a smart policy.
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 3m21s
Update flake hashes / update-flake-hashes (pull_request) Successful in 57s
Checks / Prek / Clippy and Cargo Tests (pull_request) Failing after 21m25s
simplify my refactor of service manager startup logic [performance]

update TODO regarding presence cache and DB reads [low-priority]
2026-03-13 13:58:24 -04:00

2026-03-11

perf: address presence timer/DB inefficiencies
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been cancelled
Checks / Prek / Pre-commit & Formatting (pull_request) Has been cancelled
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been cancelled
perf: impl basic presence cache to avoid DB churn

chore: document tech debt/TODOs for presence optimizations

chore: add method for presence: `clear_cache()` for service mgr to call with rest on cache clear
2026-03-11 21:19:31 -04:00