Skip to content

Conversation

@fehmer
Copy link
Member

@fehmer fehmer commented Nov 4, 2025

Combine two queries (first get all friend UIDs, then call leaderboard) into one query to reduce db roundtrips.

Use the same approach for the friends list in user dal.

Note: when updating mongodb to 6+ we could use unionWith in case we don't need the metadata (lb use-case)

@monkeytypegeorge monkeytypegeorge added the backend Server stuff label Nov 4, 2025
@fehmer fehmer added the force-ci Force CI to run on draft PRs label Nov 4, 2025
@fehmer fehmer force-pushed the feature/perf-friend-queries branch from 300fda8 to b2f3c48 Compare November 4, 2025 13:53
@fehmer fehmer force-pushed the feature/perf-friend-queries branch from b2f3c48 to c74b792 Compare November 4, 2025 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Server stuff force-ci Force CI to run on draft PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants