Skip to content

replace joins with select#637

Merged
hilpitome merged 12 commits intov2from
remove-slow-joins-from-event-metadata
Aug 28, 2024
Merged

replace joins with select#637
hilpitome merged 12 commits intov2from
remove-slow-joins-from-event-metadata

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 requested a review from bennsimon August 20, 2024 06:42
@hilpitome hilpitome requested a review from LZRS August 28, 2024 07:21
@hilpitome hilpitome merged commit 3228e73 into v2 Aug 28, 2024
@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