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

[Utility] Remove unnecessary joins in queries #9369

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

driusan
Copy link
Collaborator

@driusan driusan commented Sep 30, 2024

There were (at least) 2 unnecessaries joins in database queries in getVisitList and getVisitInstruments where a table was joined, and then the table was only used to filter for the same key that was used in the join condition.

Remove those joins by just filtering on the key in the first place.

There were (at least) 2 unnecessaries joins in database queries
in getVisitList and getVisitInstruments where a table was joined,
and then the table was only used to filter for the same key that
was used in the join condition.

Remove those joins by just filtering on the key in the first place.
@cmadjar cmadjar self-assigned this Oct 1, 2024
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