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

Improve performance of filtering DB tickets. #265

Merged
merged 2 commits into from Jun 9, 2021

Conversation

jholdstock
Copy link
Member

Previously all tickets were fully deserialized before applying the filter - now only the required fields are deserialized. The full ticket is only deserialized if the filter matches.

On a database with 150k tickets, time to execute a filter with a 10% hit rate is reduced by approx two thirds (950ms vs 310ms)

@jholdstock jholdstock merged commit 4db50a4 into decred:master Jun 9, 2021
@jholdstock jholdstock deleted the improve-filter branch January 25, 2022 09:51
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.

None yet

2 participants