From eca38f7ee3983bd4bf74e0ea7a836e84bc56f64d Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Wed, 22 Aug 2012 10:48:50 +2000 Subject: [PATCH] Re: [PATCH RFC?] Compactification support --- 7e/bda4dd5b1a8aab1784a8e59b2482c89ec8b6fb | 90 +++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 7e/bda4dd5b1a8aab1784a8e59b2482c89ec8b6fb diff --git a/7e/bda4dd5b1a8aab1784a8e59b2482c89ec8b6fb b/7e/bda4dd5b1a8aab1784a8e59b2482c89ec8b6fb new file mode 100644 index 000000000..35dca39ba --- /dev/null +++ b/7e/bda4dd5b1a8aab1784a8e59b2482c89ec8b6fb @@ -0,0 +1,90 @@ +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 392E2431FAF + for ; Tue, 21 Aug 2012 07:48:56 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.799 +X-Spam-Level: +X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, 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 zxMX0fLwyQXC for ; + Tue, 21 Aug 2012 07:48:55 -0700 (PDT) +Received: from mail-vc0-f181.google.com (mail-vc0-f181.google.com + [209.85.220.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 9E129431FAE + for ; Tue, 21 Aug 2012 07:48:55 -0700 (PDT) +Received: by vcbfl17 with SMTP id fl17so6835704vcb.26 + for ; Tue, 21 Aug 2012 07:48:53 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:subject:in-reply-to:references:user-agent:date:message-id + :mime-version:content-type; + bh=16D5jEGDZnkmDatLRqRwuLT4ZEYTordUUvhh1KmHeFw=; + b=UAfPPX12Hb36Auf3B3V07on1Wl9aEBaYoOELp8SX//UL39zGDYwcrreE41KBiiHjkQ + WfNTJeuNy2laxcHto8OmT/B6IBIPvcg/P56nYK554mPDEc+M2STcQSkx1KxCXE9cRCr0 + QxOJZ8c7xWJC//TgOxVoLdoaemBEmeMIYoYnwmWD1aCD/8iUnWrJuoOgz+mHugck7PKN + U/Zp+Q+rZ0R/CDQQdMkutTXttOgXpNFAL56K+aIAITfVUdAB3pUjSt86+eMhYzVVi3dD + V09Wo+o029WufIqm2PUrjnjI9J7nKrejaSAMyZwsTDgyBW1I9Tl4VJEkDtGJ5v7Lz4Gr + MRnA== +Received: by 10.220.149.131 with SMTP id t3mr6484942vcv.1.1345560533653; + Tue, 21 Aug 2012 07:48:53 -0700 (PDT) +Received: from localhost (pool-108-8-230-85.spfdma.east.verizon.net. + [108.8.230.85]) + by mx.google.com with ESMTPS id v9sm673369ves.8.2012.08.21.07.48.52 + (version=TLSv1/SSLv3 cipher=OTHER); + Tue, 21 Aug 2012 07:48:52 -0700 (PDT) +From: Ben Gamari +To: Jani Nikula , notmuch@notmuchmail.org +Subject: Re: [PATCH RFC?] Compactification support +In-Reply-To: <87boi41xdu.fsf@nikula.org> +References: <1345476704-17091-1-git-send-email-bgamari.foss@gmail.com> + <87boi41xdu.fsf@nikula.org> +User-Agent: Notmuch/0.13.2+137~g3dc1094 (http://notmuchmail.org) Emacs/23.3.1 + (x86_64-pc-linux-gnu) +Date: Tue, 21 Aug 2012 10:48:50 -0400 +Message-ID: <87zk5oz4fh.fsf@gmail.com> +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: Tue, 21 Aug 2012 14:48:56 -0000 + +Jani Nikula writes: + +> On Mon, 20 Aug 2012, Ben Gamari wrote: +>> Here is a small patchset adding support for database compaction when +>> supported by Xapian. Here I add a function which both compacts and +>> closes the database. +> +> What are the benefits of this compared to xapian-compact [1]? +> +I think it's a bit of a shame you are currently forced to interact with +Xapian directly (an implementation detail) to compact the database. This +set seeks to abstract this out. This is especially important since it's +not too difficult to get the invocation of xapian-compact wrong +(e.g. forget --no-renumber). + +Also, in the past Carl (id:"87ocl1lut1.fsf@yoom.home.cworth.org") has +mentioned it would be nice if compact would be run after the initial run +of "notmuch new". This patchset sets the groundwork to enable this. + +Cheers, + +- Ben + -- 2.26.2