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

Solve n+1 queries #3

Closed

Conversation

sebi-golfgenius
Copy link

Fixes: #1 Improve scores feed performance

Changes

Added eagerly loading in scores controller, method user_feed. Lazy loading was making new queries to get the user for every score from feed.

Before

n+1_before

After

n+1_before

Screenshot after the change.

danielgolf referenced this pull request in danielgolf/golfr_backend Dec 7, 2022
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.

Improve scores feed performance
1 participant