Skip to content

Speed up leaderboards with player-window caches#262

Open
colonelpanic8 wants to merge 2 commits into
masterfrom
leaderboard-window-cache
Open

Speed up leaderboards with player-window caches#262
colonelpanic8 wants to merge 2 commits into
masterfrom
leaderboard-window-cache

Conversation

@colonelpanic8

Copy link
Copy Markdown
Contributor

Summary

  • add disposable player/window leaderboard read models for daily, trailing seven-day, and season scopes
  • rebuild cached cohort totals and metric rates transactionally on a configurable recurring schedule
  • route standard appearance, event, and stat leaderboards through indexed cache reads with live-query fallback
  • simplify the leaderboard UI to total and per-five-minute rankings with window-specific minimum-game defaults
  • document throughout that cache rows are rebuildable and never sources of truth

Validation

  • PATH=/run/current-system/sw/bin:$PATH just check
  • populated temporary-Postgres cache refresh integration test
  • 40 leaderboard unit tests

@colonelpanic8 colonelpanic8 force-pushed the leaderboard-window-cache branch from 3e09f05 to a31b4ac Compare July 9, 2026 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant