-
Notifications
You must be signed in to change notification settings - Fork 11
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
Optimize all_mail_query #31
Comments
Looks like lieer always uses
And I can see we use that when merging changes to local messages. |
Would it be possible to defer the heavy |
That makes sense to me. I probably should have anticipated that this would not scale well. |
Would you like to take a shot at the implementation for this fix, if you have the time/rust knowledge? |
I don't have much rust experience (or with any other strongly typed language) but I'll give it a shot! Looks like most of this logic is before anything destructive happens so I should be able to try it using |
Awesome! Please don't feel too much pressure to get it done just by yourself. If you run in to trouble, let me know. 🙂 |
I've been trying to make progress here but have gotten stuck pretty early. I tried to reuse the `get_message` function but it returns a `message` type rather than the needed `email` type. I also tried creating a new query function that returns an `email` but continue to be confounded by types. Don't think I'll be able to get much done here, unfortunately.
…On 06/06/22 at 16:26, Eliza ***@***.***> wrote:
Awesome! Please don't feel too much pressure to get it done just by yourself. If you run in to trouble, let me know. 🙂
--
Reply to this email directly or view it on GitHub:
#31 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
I understand. I will add this to the queue for v0.2.1, and once it's implemented, I'll ping you if you'd like to take a look at the code. 🙂 |
I currently have ~70k messages in my index which is... notmuch. 🥁
Each time I run mujmap it runs the
format!("path:\"{}/**\"", relative_mail_dir.to_str().unwrap())
query, which takes 6+ seconds for me.With my basic understanding of how mujmap works, I don't see a straightforward way to use a different query or optimize this query so this can be a place to discuss.
The text was updated successfully, but these errors were encountered: