]> git.notmuchmail.org Git - notmuch/commitdiff
Store "from" and "subject" headers in the database.
authorAustin Clements <amdragon@MIT.EDU>
Sun, 6 Nov 2011 17:17:36 +0000 (12:17 -0500)
committerDavid Bremner <bremner@debian.org>
Mon, 14 Nov 2011 21:10:58 +0000 (17:10 -0400)
This is a rebase and cleanup of Istvan Marko's patch from
id:m3pqnj2j7a.fsf@zsu.kismala.com

Search retrieves these headers for every message in the search
results.  Previously, this required opening and parsing every message
file.  Storing them directly in the database significantly reduces IO
and computation, speeding up search by between 50% and 10X.

Taking full advantage of this requires a database rebuild, but it will
fall back to the old behavior for messages that do not have headers
stored in the database.


No differences found