[PATCH RFC?] Compactification support

Ben Gamari bgamari.foss at gmail.com
Tue Aug 21 07:48:50 PDT 2012


Jani Nikula <jani at nikula.org> writes:

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



More information about the notmuch mailing list