Skip to content

Update analysis hash filters to use WHERE IN - #98

Merged
lisaSW merged 1 commit into
developfrom
update-joins
Apr 1, 2026
Merged

Update analysis hash filters to use WHERE IN#98
lisaSW merged 1 commit into
developfrom
update-joins

Conversation

@caffeinatedpixel

Copy link
Copy Markdown
Contributor

In the case where a join is used to filter out data from another table, WHERE column IN (SELECT column FROM table) can be used instead as it is faster and uses less memory.
This PR replaces several joins in the analysis queries that filter out swaths of data based on the existence of a matching hash in another table with the WHERE IN clause.

@caffeinatedpixel caffeinatedpixel added the performance Issues concerning performance and optimizations label Apr 1, 2026
@lisaSW
lisaSW merged commit e101fe2 into develop Apr 1, 2026
6 checks passed
@lisaSW
lisaSW deleted the update-joins branch April 1, 2026 16:58
@lisaSW lisaSW added this to the RITA v5.1.2 milestone Apr 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

performance Issues concerning performance and optimizations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants