Skip to content

perf(api): skip removing leaderboard scores that were already 0 - #1052

Open
ugcodrr wants to merge 5 commits into
mainfrom
fix/leaderboard-zero-removals
Open

ugcodrr wants to merge 5 commits into
mainfrom
fix/leaderboard-zero-removals

Conversation

@ugcodrr

@ugcodrr ugcodrr commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Description: Every player save sends Redis a ZREM for each leaderboard the player has no score on, so most of its 2,722 commands remove scores that were never added.

A typical repeat save now sends about 170 commands instead of 2,722 (about 1,900 for players with stats in most games).

Merge after #1003.

Testing: /rankings player shows the same ranks after /bedwars player refreshes them.

@vercel

vercel Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
statsify Ignored Ignored Nov 5, 2026 5:26am UTC

@vercel

vercel Bot commented Nov 3, 2026

Copy link
Copy Markdown

Deployment failed for project statsify with the following error:

Too many requests - try again in 5 minutes (more than 60, code: "api-deployments-flood").

Learn More: https://vercel.com/docs/limits#rate-limits

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant