Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 1899D431FD0 for ; Tue, 12 Jul 2011 17:51:00 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.614 X-Spam-Level: X-Spam-Status: No, score=0.614 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, URI_HEX=1.313] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EnBW1OBe79kx for ; Tue, 12 Jul 2011 17:50:57 -0700 (PDT) Received: from mail-qw0-f53.google.com (mail-qw0-f53.google.com [209.85.216.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id A0F59431FB6 for ; Tue, 12 Jul 2011 17:50:57 -0700 (PDT) Received: by qwb7 with SMTP id 7so3054895qwb.26 for ; Tue, 12 Jul 2011 17:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=K5E2QPFqIZgohA2viOVZ7CZLnksh7qEXY78OrQ9WLMk=; b=SYnr58Z2TiG0uboP6OUZzcXbiOY/XNeGh0i9unOLdzzsyFZCgXK5K85FXFEyx2cqJm y+Ad40Rf/qheDUSJf5v3xX87b5jPkqDfv1Y5zQkPP9ftiqHx2qVMZnGvaUNLW1twIM4+ 5BQEROR80c7kB2in8CFZfvE70t1b0D+lFiGXc= MIME-Version: 1.0 Received: by 10.229.27.198 with SMTP id j6mr532418qcc.10.1310518256595; Tue, 12 Jul 2011 17:50:56 -0700 (PDT) Sender: amdragon@gmail.com Received: by 10.229.250.208 with HTTP; Tue, 12 Jul 2011 17:50:56 -0700 (PDT) In-Reply-To: <20110712202459.GB15019@compy.jasonwoof.org> References: <20110711190721.GA5386@compy.jasonwoof.org> <20110712202459.GB15019@compy.jasonwoof.org> Date: Tue, 12 Jul 2011 20:50:56 -0400 X-Google-Sender-Auth: UF0gPpNDCnJMCUT51sBg55C8MhY Message-ID: Subject: Re: Slowness (search opens every email file?) From: Austin Clements To: Notmuch Mail , Istvan Marko Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jul 2011 00:51:00 -0000 On Tue, Jul 12, 2011 at 4:24 PM, Jason Woofenden wrot= e: > On 2011-07-11 06:13PM, Austin Clements wrote: >> On Mon, Jul 11, 2011 at 3:07 PM, Jason Woofenden w= rote: >> > notmuch search tag:foo is slow! >> > >> > (when my e-mail files are not already in the disk cache) >> > >> > I saw on my activity monitor applet that it was using mostly i/o, >> > and started to wonder if it was opening every e-mail. I little work >> > with strace and searching revealed that this command was opening >> > many many e-mail files from my maildir(s). I spent a little while >> > digging around in the notmuch source, and didn't see where it was >> > opening the email files. >> >> It is opening every file to get a few headers to display in the search >> output. =A0Istvan Marko sent an experimental patch to store these >> headers in the database a while ago, though as far as I know there >> hasn't been any progress cleaning it up for inclusion: >> id:"m3sjsv2kw2.fsf@zsu.kismala.com" . > > Cool. I suspected it was reading for header files. > > I googled the id and found this patchwork link: > > http://patchwork.notmuchmail.org/patch/947/ > > (I didn't see any way to ask mailman for a message id.) Here's the full thread from Nabble: http://notmuch.198994.n3.nabble.com/storing-From-and-Subject-in-xapian-td29= 01262.html > Does someone want to work at this soon or should I try my hand at > it? Istvan, did you make any progress on this patch since the last version? I seem to recall it just needed general cleanup (code style and such) and a better answer for backwards compatibility (the unfortunate " " thing).