Skip to content

perf: cache leaderboard snapshots - #785

Open
saurabhhhcodes wants to merge 1 commit into
mohitkumhar:mainfrom
saurabhhhcodes:fix/issue-308-leaderboard-snapshots
Open

perf: cache leaderboard snapshots#785
saurabhhhcodes wants to merge 1 commit into
mohitkumhar:mainfrom
saurabhhhcodes:fix/issue-308-leaderboard-snapshots

Conversation

@saurabhhhcodes

Copy link
Copy Markdown
Contributor

Closes #308

Cache the computed leaderboard snapshots for cscore, questions, rating, and college rankings under the existing leaderboard cache version key. The render and API routes now reuse those snapshots until invalidation, so repeated leaderboard reads avoid rebuilding and resorting the same data.

Validation:

  • python3 -m pytest tests/test_leaderboard_cache.py -q
  • git diff --check

@vercel

vercel Bot commented Jul 4, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the mohitkumhar's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Precompute leaderboard snapshots for expensive ranking modes

1 participant