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

Fingerprint: Cache list item hashes to fingerprint complex queries faster #112

Merged
merged 2 commits into from
Jun 24, 2021

Conversation

lfittl
Copy link
Member

@lfittl lfittl commented Jun 24, 2021

This was exhibiting quite bad runtime behavior before, causing both an
explosion in memory, as well as very high CPU runtime for complex queries.

The new approach ensures we don't calculate the hashes for a particular
list more than once, which ensures that we roughly have quadratic runtime
instead of exponential runtime.

lfittl added 2 commits June 24, 2021 00:54
…ster

This was exhibiting quite bad runtime behaviour before, causing both an
explosion in memory, as well as very high CPU runtime for complex queries.

The new approach ensures we don't calculate the hashes for a particular
list more than once, which ensures that we roughly have quadratic runtime
instead of exponential runtime.
…kups

This is especially important with overly long queries that don't go
very deep, which otherwise would cause a lot of expensive looping through
the cache. Add one such example to ensure we don't regress on the
performance in the future.
@lfittl lfittl merged commit 9ae9bdd into 13-latest Jun 24, 2021
@lfittl lfittl deleted the 13-latest-fingerprint-list-sort-cache branch June 24, 2021 17:40
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.

1 participant