unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Tomi Ollila <tomi.ollila@iki.fi>
To: Ben Gamari <bgamari.foss@gmail.com>,
	Jani Nikula <jani@nikula.org>,
	notmuch@notmuchmail.org
Subject: Re: [PATCH RFC?] Compactification support
Date: Tue, 21 Aug 2012 18:25:06 +0300	[thread overview]
Message-ID: <m2wr0s6ze5.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <87zk5oz4fh.fsf@gmail.com>

On Tue, Aug 21 2012, Ben Gamari <bgamari.foss@gmail.com> wrote:

> 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).

Better reason would be that xapian-compact(1) may not be available although
the library is -- if the command is available it is easy to execve(2) it
with correct arguments... (?)

Tomi

> 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

      reply	other threads:[~2012-08-21 15:25 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-20 15:31 [PATCH RFC?] Compactification support Ben Gamari
2012-08-20 15:31 ` [PATCH 1/3] Add notmuch_database_close_compact Ben Gamari
2012-08-21  7:35   ` Tomi Ollila
2012-08-21 14:49     ` Ben Gamari
2012-08-22  6:07       ` Tomi Ollila
2012-08-23  5:56         ` Kim Minh Kaplan
2012-08-23  6:26           ` Tomi Ollila
2012-08-20 15:31 ` [PATCH 2/3] Produce status messages during compacting Ben Gamari
2012-08-20 15:31 ` [PATCH 3/3] Add notmuch compact command Ben Gamari
2012-08-21  8:07 ` [PATCH RFC?] Compactification support Jani Nikula
2012-08-21 14:48   ` Ben Gamari
2012-08-21 15:25     ` Tomi Ollila [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2wr0s6ze5.fsf@guru.guru-group.fi \
    --to=tomi.ollila@iki.fi \
    --cc=bgamari.foss@gmail.com \
    --cc=jani@nikula.org \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).