Re: [PATCH RFC?] Compactification support

Subject: Re: [PATCH RFC?] Compactification support

Date: Tue, 21 Aug 2012 10:48:50 -0400

To: Jani Nikula, notmuch@notmuchmail.org

Cc:

From: Ben Gamari


Jani Nikula <jani@nikula.org> writes:

> On Mon, 20 Aug 2012, Ben Gamari <bgamari.foss@gmail.com> 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


Thread: