From: Austin Clements <amdragon@mit.edu>
To: notmuch@notmuchmail.org
Subject: notmuch new atomicity and eager maildir flag synchronization
Date: Tue, 8 Feb 2011 00:19:52 -0500 [thread overview]
Message-ID: <AANLkTi=SoeZ=0QnmS5Aej1SrW6mDjeH85DVXqixi7wSk@mail.gmail.com> (raw)
I've modified notmuch new so it can now be interrupted without risking
database consistency or losing track of messages (and by "interrupted"
I mean real interruptions like kill -9 or someone tripping over the
power cord). This change also restructures the code a bit to perform
eager maildir flag synchronization, and, as a result, every message
add or remove is now an isolated operation that can be performed in
its own little Xapian transaction, so notmuch new won't loose much
progress if it does get interrupted in the middle of a big import.
I'm still ruminating over the patches, but if you'd like to try it
out, it's on the atomic-new-hack branch at
http://awakening.csail.mit.edu/git/notmuch.git/
(Be warned, since this is a hack branch, I may rebase it).
On my mailbox, performance is essentially the same as master. It may
prove more beneficial on spinning rust because it performed 23% fewer
I/O operations (7,494,864 versus 12,582,072 reads; 13,550,272 versus
14,489,744 writes).
reply other threads:[~2011-02-08 5:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTi=SoeZ=0QnmS5Aej1SrW6mDjeH85DVXqixi7wSk@mail.gmail.com' \
--to=amdragon@mit.edu \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).