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

Hotfix/improve scores feed loading performance #1

Closed
wants to merge 2 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Jul 27, 2022

Fixes: AACraiu#1

Changes

The problem encountered when loading the scores feed was "the n+1 queries problem". The changes applied consist in using eager loading instead of lazy loading when fetching the user associated with every score in the user_feed action of the scores_controller.

Before

scores-feed-before

After

scores-feed-after

@ghost ghost closed this Jul 27, 2022
@ghost ghost deleted the hotfix/improve-scores-feed-performance branch July 27, 2022 12:01
This pull request was closed.
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