Skip to content

Conversation

@richardscull
Copy link
Member

@richardscull richardscull commented Jan 10, 2026

This PR optimises SaveUsersStatsSnapshots and fixes GetUserRanks to not increment on ranks if in the recursion (previously, if it didn't find the user rank, it would increment twice to the user rank).

We also now don't save the snapshot for stats which doesn't have any performance points.


Numbers wise, snapshots now take 30 times less time to save.
Ex: Previously for 100 users to same all stats in all gamemodes, would require 30s, now it requires only 1 second.

@richardscull richardscull self-assigned this Jan 10, 2026
@richardscull richardscull added bug Something isn't working refactor Improvements of already existing system enhancement New feature or request Minor release This pull request introduces small enhancements, non-breaking feature updates, and improvements. labels Jan 10, 2026
@richardscull richardscull merged commit 6be54ef into master Jan 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request Minor release This pull request introduces small enhancements, non-breaking feature updates, and improvements. refactor Improvements of already existing system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants