Re: [PATCH] Store "from" and "subject" headers in the database.

Subject: Re: [PATCH] Store "from" and "subject" headers in the database.

Date: Sun, 13 Nov 2011 22:34:38 -0800

To: Austin Clements, notmuch@notmuchmail.org

Cc: notmuch@kismala.com

From: Jameson Graef Rollins


On Sun,  6 Nov 2011 12:17:36 -0500, Austin Clements <amdragon@MIT.EDU> wrote:
> 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.

Hey, Austin.  This is a very nice patch.  Short and sweet, a really nice
performance improvement, and a nice gentle fallback.

I just rebuilt my database and I can definitely see the improvements.
Search results are incredibly snappy, and the resultant database is only
about 8% bigger.

I fully endorse this being pushed.

jamie.
part-000.sig (application/pgp-signature)

Thread: