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

MAP-304 Eager load location#suppliers to improve performance #2402

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

tobyprivett
Copy link
Contributor

@tobyprivett tobyprivett commented Nov 13, 2024

Jira link

MAP-304

What?

Eager load location#suppliers to improve performance

Why?

The above ticket is about performance issues when loading Location reference data. I noticed an n+1 query when the list is not filtered by supplier_id. This wasn't very serious because Locations are cached in Redis by the frontend and not loaded multiple times.

- When a supplier_id was not provided, there was no eager loading.
@tobyprivett tobyprivett marked this pull request as ready for review November 13, 2024 11:23
@tobyprivett tobyprivett requested a review from a team as a code owner November 13, 2024 11:23
Copy link

@jnioche-jd jnioche-jd left a comment

Choose a reason for hiding this comment

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

literally a 1 liner!

@jnioche-jd jnioche-jd merged commit 8012671 into main Nov 13, 2024
8 checks passed
@jnioche-jd jnioche-jd deleted the MAP-304-location-finder branch November 13, 2024 11:46
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.

2 participants