From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 1F3476DE02DD for ; Sat, 16 Sep 2017 05:01:38 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5 tests=[AWL=0.010, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 72jAuZwVGBkn for ; Sat, 16 Sep 2017 05:01:36 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id BADB46DE00E6 for ; Sat, 16 Sep 2017 05:01:36 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1dtBjK-0005Zw-78; Sat, 16 Sep 2017 07:57:50 -0400 Received: (nullmailer pid 17867 invoked by uid 1000); Sat, 16 Sep 2017 12:01:31 -0000 From: David Bremner To: Attic Hermit , notmuch@notmuchmail.org Subject: Re: What is notmuch compact and should I use it? In-Reply-To: <87mv5vcvd9.fsf@gmail.com> References: <87mv5vcvd9.fsf@gmail.com> Date: Sat, 16 Sep 2017 09:01:31 -0300 Message-ID: <87y3pe4ztw.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 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: Sat, 16 Sep 2017 12:01:38 -0000 Attic Hermit writes: > What exactly is to compact the database? I noticed that the size of the > notmuch database is shrunk after `notmuch compact`, but I don't think > this procedure is gzipping the database. I thought it is something like > the garbage collecting, but I'm not sure. Yes, that's approximately correct; notmuch compact is essentially equivalent to xapian compact https://xapian.org/docs/admin_notes.html#compacting-a-database > And should I use it regularly? if it is, how often should it be done? There is some tradeoff: search should be faster after a compact, but indexing many messages will likely be slower. For most people this doesn't matter too much since the number of messages added after the original index is relatively small. d