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

N+1 query resolved #35

Closed
wants to merge 1 commit into from

Conversation

RaduAndreiTaica
Copy link

Fixes: #1

Changes:

When feed API was requested, users associated with each score were lazy loaded. This generated a different query for each score to load it's user. Now scores eager load users on feed so users are taken at once from the database.

Before:

Screenshot 2022-12-19 at 13 17 26

After:

Screenshot 2022-12-19 at 13 20 00

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
2 participants