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

fixed performance #1

Merged
merged 1 commit into from
Feb 16, 2022
Merged

fixed performance #1

merged 1 commit into from
Feb 16, 2022

Conversation

DragosGolfGenius
Copy link
Owner

@DragosGolfGenius DragosGolfGenius commented Feb 9, 2022

Fixes: AACraiu#1

Changes

Changed the implicit ActiveRecord's lazy loading to eager loading. Basically, whenever we try to get all the scores out of the database we will preload the users too, making things go faster. This way, when we try to serialize a score, we will access directly the user instead of querying it again.

Before
Screenshot 2022-02-09 at 11 49 03

After
Screenshot 2022-02-09 at 11 48 29

@SergiuApostuTOL SergiuApostuTOL merged commit b6f03db into main Feb 16, 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
2 participants