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 12587431FD0 for ; Sun, 24 Apr 2011 01:13:59 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 8liq+CC5754Z for ; Sun, 24 Apr 2011 01:13:57 -0700 (PDT) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 33057431FB6 for ; Sun, 24 Apr 2011 01:13:57 -0700 (PDT) Received: by wyi11 with SMTP id 11so1343131wyi.26 for ; Sun, 24 Apr 2011 01:13:53 -0700 (PDT) Received: by 10.227.147.198 with SMTP id m6mr2731730wbv.78.1303632833481; Sun, 24 Apr 2011 01:13:53 -0700 (PDT) Received: from localhost (183.152-240-81.adsl-dyn.isp.belgacom.be [81.240.152.183]) by mx.google.com with ESMTPS id w12sm2641816wby.7.2011.04.24.01.13.50 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 24 Apr 2011 01:13:51 -0700 (PDT) From: Pieter Praet To: Xavier Maillard , Florian Friesdorf , notmuch@notmuchmail.org Subject: Re: notmuch painfully slow In-Reply-To: References: <871v0u59by.fsf@A7GMS.i-did-not-set--mail-host-address--so-tickle-me> User-Agent: Notmuch/0.5-87-g30203d7 (http://notmuchmail.org) Emacs/23.1.50.1 (x86_64-pc-linux-gnu) Date: Sun, 24 Apr 2011 10:13:49 +0200 Message-ID: <87mxjgcbia.fsf@A7GMS.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Sun, 24 Apr 2011 08:13:59 -0000 On Sat, 23 Apr 2011 07:18:52 +0200, Florian Friesdorf wrote: > [...] > Is this the switch from xapian 1.0.x to 1.2.x or are further steps > necessary? > > Are there instructions on how to do the switch? For the mailing list > archive a link would be great - a quick search for 'xapian flint chert' > was unsuccessful. > > In case there are no instructions yet, I'm happy to conclude what is > gathered here and add it to notmuch's webpage. > > -- > Florian Friesdorf > GPG FPR: 7A13 5EEE 1421 9FC2 108D BAAF 38F8 99A3 0C45 F083 > Jabber/XMPP: flo@chaoflow.net > IRC: chaoflow on freenode,ircnet,blafasel,OFTC Non-text part: application/pgp-signature On Sat, 23 Apr 2011 09:20:53 +0200, Xavier Maillard wrote: > [...] > Obviously, no, I did not. I even did not know about that ;) What's the > story with this and what's the way to do this exactly ? > > Thank you. > > /Xavier Both Carl [1] and Sebastian [2] posted about this a little while ago. Bottom line: Chert is the new db format (replacing Flint) as of Xapian 1.2.x [3], and should -in most cases- be alot faster, whilst consuming less disk space. If .notmuch/xapian contains a file called "iamflint", you're still on the old format. Otherwise it's called (surprise) "iamchert". Perhaps somewhat confusingly, "flintlock" remains though. Switching your notmuch db is straightforward: >> notmuch dump ${tagdump} >> rm -rf .notmuch/xapian >> notmuch new >> notmuch restore ${tagdump} >> mv .notmuch/xapian .notmuch/xapian-fat >> xapian-compact --no-renumber .notmuch/xapian-fat .notmuch/xapian >> rm -rf .notmuch/xapian-fat The last 3 lines are entirely optional and will cause writes to be a bit more expensive in the short term, but will significantly reduce the db's size, which your SSD will surely appreciate. Peace -Pieter [1] id:"87ocl1lut1.fsf@yoom.home.cworth.org" [2] id:"87lj0iqa3c.fsf@SSpaeth.de" [3] http://www.archlinux.org/packages/?q=xapian-core