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

replace joins with select #637

Merged
merged 12 commits into from
Aug 28, 2024
Merged

Conversation

hilpitome
Copy link
Contributor

@hilpitome hilpitome commented Jul 30, 2024

In projects with a lot of records e.g over 4 million rows in the core.event_metadata table, the queries using joins take a lot of time. This PR migrates joins to inner select statements.

Fixes https://github.com/opensrp/support/issues/338

@hilpitome hilpitome merged commit 3228e73 into v2 Aug 28, 2024
4 checks passed
@hilpitome hilpitome deleted the remove-slow-joins-from-event-metadata branch August 28, 2024 07:23
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