Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

populate as much of Recent Players list as possible from aggregate data #1932

Merged
merged 3 commits into from
Oct 27, 2023

Conversation

Jamiras
Copy link
Member

@Jamiras Jamiras commented Oct 27, 2023

Fetching rich presence data from UserAccounts takes 2-5 times longer than fetching it from player_sessions. This attempts to fill as much of the Recent Players list as possible from player_sessions. If 10 rows can be generated, then the UserAccounts table doesn't have to even be looked at.

For games with less than 10 players since the v5 release, the result will be slower because two queries will be executed, but they will be taking less traffic, so that's an acceptable tradeoff.

Copy link
Member

@luchaos luchaos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice

@Jamiras Jamiras merged commit 1e762a2 into RetroAchievements:master Oct 27, 2023
5 checks passed
@Jamiras Jamiras deleted the aggregate_recent_players branch October 27, 2023 16:17
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.

2 participants