Skip to content

[MDS-5450] Use selectin loader for Incident documents, and TSFs #2640

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

Merged

Conversation

simensma-fresh
Copy link
Collaborator

Objective

MDS-5450

Attempt to improve the performance of the Incident endpoints which in some circumstances causes the core api to error with an OOM error.

EXPLAIN ANALYZEing the filter query, I found that the document and TSF joins was a big reason for the amount of rows being returned by the query.

Note:
This does not solve the overall issue around only returning the data we need - why do we need TSFs loaded when looking up an Incident? Turns out that's a bit of a bigger thing, but hopefully this PR should resolve the immediate issue.

Copy link
Collaborator

@matbusby-fw matbusby-fw left a comment

Choose a reason for hiding this comment

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

🤞🏻

@simensma-fresh simensma-fresh merged commit f1ca519 into bcgov:develop Aug 30, 2023
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.

4 participants