I'm a new mu/mu4e user, and while it is mostly amazing, I'm finding that every few minutes mu4e doesn't respond to any search (even opening the inbox) for a minute or so.
After some playing around, I think I have figured out that the problem is the cleanup phase of indexing - I'm guessing that it's periodically doing this, and it's what's causing the freeze. I have a gmail account with just over 260k mails in the "All Mail" folder, and 20 or so in the inbox, so I'd like to just be refreshing the inbox fairly often and the "All mail" folder only once or twice a day.
I've put the times from the command line below - I don't know if they are typical (and I don't know why the cleanup involves twice as many emails as are actually there), but if they are, my question is: how can I have mu4e run with --no-cleanup ?
I put a .noupdate file in the "All Mail" folder, and if I run mu-index with that there, I get:
indexing messages under /Users/tsg20/mbsync [/Users/tsg20/.mu/xapian]
\ processing mail; processed: 1500; updated/new: 0, cleaned-up: 0
cleaning up messages [/Users/tsg20/.mu/xapian]
\ processing mail; processed: 530662; updated/new: 0, cleaned-up: 3
elapsed: 59 second(s), ~ 8994 msg/s
If I run mu-index with --no-cleanup, it's instant:
mu index --maildir=mbsync --nocleanup
indexing messages under /Users/tsg20/mbsync [/Users/tsg20/.mu/xapian]
| processing mail; processed: 1558; updated/new: 0, cleaned-up: 0
elapsed: 0 second(s)
[and if I run without the .noupdate, it takes a while longer:
- processing mail; processed: 266625; updated/new: 0, cleaned-up: 0
cleaning up messages [/Users/tsg20/.mu/xapian]
- processing mail; processed: 530659; updated/new: 0, cleaned-up: 0
elapsed: 44 second(s), ~ 12060 msg/s
\ processing mail; processed: 530659; updated/new: 0, cleaned-up: 0
elapsed: 70 second(s), ~ 7580 msg/s]