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 taskdb::apply_operations #533

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

djmitche
Copy link
Collaborator

The existing implementation performed a txn.get_task and txn.set_task for each update operation. But typically, a sequence of operations will all apply to the same task, so most of these calls are redundant.

This introduces a small cache of tasks to which some update operations have been applied (or which are known to not exist), avoiding the redundant calls.

This should speed up application of changes during task modify, especially when applied to multiple tasks.

The existing implementation performed a `txn.get_task` and
`txn.set_task` for each update operation. But typically, a sequence of
operations will all apply to the same task, so most of these calls are
redundant.

This introduces a small cache of tasks to which some update operations
have been applied (or which are known to not exist), avoiding the
redundant calls.
@djmitche djmitche requested a review from ryneeverett January 12, 2025 06:13
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