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

Fix exclude filter query performance #1815

Conversation

kermieisinthehouse
Copy link
Collaborator

Use IN instead of EXISTS to dramatically increase query performance in exclude filters.

Excluding a performer would hit a 2 minute timeout before, now loads in sub-second time.

@kermieisinthehouse kermieisinthehouse added the improvement Something needed tweaking. label Oct 6, 2021
@kermieisinthehouse
Copy link
Collaborator Author

Should we sneak this one into the 0.10 release? It's a performance fix with no behavior change.

You can see the speedup by loading the scenes list with "filter > performer > exclude > random performer"

@kermieisinthehouse kermieisinthehouse added this to the Version 0.10.0 milestone Oct 10, 2021
@WithoutPants WithoutPants merged commit c31c7c3 into stashapp:develop Oct 10, 2021
@kermieisinthehouse kermieisinthehouse deleted the Fix-Exclude-filter-performance branch October 10, 2021 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Something needed tweaking.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants