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

[Perf] Improve Performance of check_intervals #409

Open
bsbds opened this issue Aug 4, 2023 · 0 comments
Open

[Perf] Improve Performance of check_intervals #409

bsbds opened this issue Aug 4, 2023 · 0 comments
Assignees
Labels
Improvement Refactor or optimization, including process, performance or something like that

Comments

@bsbds
Copy link
Collaborator

bsbds commented Aug 4, 2023

For each txn request, we need to check if puts and deletes overlap. Deletes are range requests, and puts are single key requests, that we need to check for each key if it is in any of the delete ranges.

Current check_intervals is a naive approach that iterates through all delete ranges for each key, we could improve this by introducing the interval tree data structure.

@bsbds bsbds added the Improvement Refactor or optimization, including process, performance or something like that label Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Refactor or optimization, including process, performance or something like that
Projects
None yet
Development

No branches or pull requests

1 participant