1 Return-Path: <amdragon@gmail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id BBDE8431FD0
\r
6 for <notmuch@notmuchmail.org>; Mon, 11 Jul 2011 15:13:48 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001,
\r
13 RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id FqrRb5L+hpii for <notmuch@notmuchmail.org>;
\r
17 Mon, 11 Jul 2011 15:13:47 -0700 (PDT)
\r
18 Received: from mail-qw0-f53.google.com (mail-qw0-f53.google.com
\r
19 [209.85.216.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id BBB76431FB6
\r
22 for <notmuch@notmuchmail.org>; Mon, 11 Jul 2011 15:13:47 -0700 (PDT)
\r
23 Received: by qwb7 with SMTP id 7so2437325qwb.26
\r
24 for <notmuch@notmuchmail.org>; Mon, 11 Jul 2011 15:13:47 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
26 h=mime-version:sender:in-reply-to:references:date
\r
27 :x-google-sender-auth:message-id:subject:from:to:cc:content-type;
\r
28 bh=+rVCnQqAKt8r3PRny+Dfm/Sj/9yBEj4fh3SqHtxQ9GM=;
\r
29 b=fyvNl5IePTx5HFjsyb+MRrImC9a3UinRdZzuOtddPzqNLZTBH9tMQ1obiCfe6SWsk9
\r
30 ETKX1GozCuSMpkfwCZRl2e8mlt0b7BThVNRzMSySRjyU83IkJDgYwCaAwCTpQ00LKCAI
\r
31 olYt+XAAmMFq/XthdlDb6qgjfCMqDg0AF6n84=
\r
33 Received: by 10.229.118.72 with SMTP id u8mr3943015qcq.1.1310422426963; Mon,
\r
34 11 Jul 2011 15:13:46 -0700 (PDT)
\r
35 Sender: amdragon@gmail.com
\r
36 Received: by 10.229.229.211 with HTTP; Mon, 11 Jul 2011 15:13:46 -0700 (PDT)
\r
37 In-Reply-To: <20110711190721.GA5386@compy.jasonwoof.org>
\r
38 References: <20110711190721.GA5386@compy.jasonwoof.org>
\r
39 Date: Mon, 11 Jul 2011 18:13:46 -0400
\r
40 X-Google-Sender-Auth: mYwwKDXwFcSCmd8F2OYBPbA3Ilo
\r
42 <CAH-f9WtBHJ8bL6eWoSNrTs=jkrOYYCuWEVVPDUt_iCw0dKcZbw@mail.gmail.com>
\r
43 Subject: Re: Slowness (search opens every email file?)
\r
44 From: Austin Clements <amdragon@mit.edu>
\r
45 To: Jason Woofenden <jason@jasonwoof.com>
\r
46 Content-Type: text/plain; charset=ISO-8859-1
\r
47 Cc: Notmuch Mail <notmuch@notmuchmail.org>
\r
48 X-BeenThere: notmuch@notmuchmail.org
\r
49 X-Mailman-Version: 2.1.13
\r
51 List-Id: "Use and development of the notmuch mail system."
\r
52 <notmuch.notmuchmail.org>
\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
54 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
56 List-Post: <mailto:notmuch@notmuchmail.org>
\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
59 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
60 X-List-Received-Date: Mon, 11 Jul 2011 22:13:49 -0000
\r
62 On Mon, Jul 11, 2011 at 3:07 PM, Jason Woofenden <jason@jasonwoof.com> wrote:
\r
63 > notmuch search tag:foo is slow!
\r
65 > (when my e-mail files are not already in the disk cache)
\r
67 > I saw on my activity monitor applet that it was using mostly i/o,
\r
68 > and started to wonder if it was opening every e-mail. I little work
\r
69 > with strace and searching revealed that this command was opening
\r
70 > many many e-mail files from my maildir(s). I spent a little while
\r
71 > digging around in the notmuch source, and didn't see where it was
\r
72 > opening the email files.
\r
74 It is opening every file to get a few headers to display in the search
\r
75 output. Istvan Marko sent an experimental patch to store these
\r
76 headers in the database a while ago, though as far as I know there
\r
77 hasn't been any progress cleaning it up for inclusion:
\r
78 id:"m3sjsv2kw2.fsf@zsu.kismala.com" .
\r