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

commands/search/tag: Narrow search down to needed messages #1688

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

Conversation

guludo
Copy link
Contributor

@guludo guludo commented Dec 26, 2024

For some reason, tagging long threads is taking a lot of time in my system. It might be related to the python library for notmuch, since doing the same directly from notmuch CLI is usually fast.

In some use cases (e.g. archiving), most of the messages in the thread might already contain the tags being added or removed. We can optimize for this case by narrowing down the search to only the messages that need the update.

So, while the slow tagging operation should be properly investigated at the library level, we can proactively optimize the testquery, which is beneficial anyway.

For some reason, tagging long threads is taking a lot of time in my
system. It might be related to the python library for notmuch, since
doing the same directly from notmuch CLI is usually fast.

In some use cases (e.g. archiving), most of the messages in the thread
might already contain the tags being added or removed. We can optimize
for this case by narrowing down the search to only the messages that
need the update.

So, while the slow tagging operation should be properly investigated at
the library level, we can proactively optimize the testquery,
which is beneficial anyway.
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