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 performance #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

AndreiTanaseGG
Copy link
Owner

Fixes: N+1 queries issue scores loading performance issue

Changes

Updated user_feed method in ScoresController to eager load associated users, fetching them only once thus improving performance.

Before

Screenshot 2023-06-17 at 13 53 18

After

Screenshot 2023-06-17 at 13 56 57

@AndreiTanaseGG AndreiTanaseGG changed the title Fix querry performance issue Issue #1: Fix querry performance issue Jun 18, 2023
Copy link
Collaborator

@AACraiu AACraiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The title should be Hotfix / [Name of the issue].

.idea/.gitignore Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this file from the PR

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this file from the PR

.idea/misc.xml Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this file from the PR

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this file from the PR

.idea/vcs.xml Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this file from the PR

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All files should have an empty line at the end.

@AndreiTanaseGG AndreiTanaseGG changed the title Issue #1: Fix querry performance issue Hotfix / Fix querry performance issue Jun 20, 2023
@AndreiTanaseGG AndreiTanaseGG changed the title Hotfix / Fix querry performance issue Hotfix / Improve scores feed performance Jun 20, 2023
@AndreiTanaseGG AndreiTanaseGG requested a review from AACraiu June 20, 2023 09:17
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