Skip to content

perf(UpdateGamePlayerCountAction): collapse player count queries#4859

Open
wescopeland wants to merge 2 commits intoRetroAchievements:masterfrom
wescopeland:game-player-count-query-perf
Open

perf(UpdateGamePlayerCountAction): collapse player count queries#4859
wescopeland wants to merge 2 commits intoRetroAchievements:masterfrom
wescopeland:game-player-count-query-perf

Conversation

@wescopeland
Copy link
Copy Markdown
Member

This PR replaces two sequential count() queries to player_games with a single conditional-aggregate pass.

Local benchmarks show this results in a 5-110ms performance improvement against game IDs 228, 10003, 337, and 1446.

@wescopeland wescopeland requested a review from a team May 6, 2026 21:32
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