unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH RFC?] Compactification support
@ 2012-08-20 15:31 Ben Gamari
  2012-08-20 15:31 ` [PATCH 1/3] Add notmuch_database_close_compact Ben Gamari
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Ben Gamari @ 2012-08-20 15:31 UTC (permalink / raw)
  To: notmuch


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.
This is due to it being not entirely clear whether one is allowed to compact
the database while it is being held open for read/write.


Since it is nice to be able to hold the read/write lock while compacting, I
close the database only after the compaction has finished which Xapian seems to
be fine with. That being said, the database is moved after compaction, so it seems appropriate to lump compaction in with closing the database.

Lastly, I wasn't entirely sure whether/how Xapian's status messages should be
presented to the user. At the moment I simply spit them out on stderr. Perhaps
I should just pass a callback to notmuch_database_close_compact and leave this
to the caller?

Cheers,

- Ben

^ permalink raw reply	[flat|nested] 15+ messages in thread
* [PATCH] notmuch compact support
@ 2012-10-17 15:28 Ben Gamari
  2012-10-17 15:28 ` [PATCH 1/3] Add notmuch_database_close_compact Ben Gamari
  0 siblings, 1 reply; 15+ messages in thread
From: Ben Gamari @ 2012-10-17 15:28 UTC (permalink / raw)
  To: notmuch

Here is a new spin of my patchset introduced in late August
(id:"1345476704-17091-1-git-send-email-bgamari.foss@gmail.com") adding a
compact command to libnotmuch and the command line frontend.

I believe the concerns raised in August have been addressed, but correct me if
I'm wrong.

Cheers,

- Ben

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-10-18  6:44 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
  -- strict thread matches above, loose matches on Subject: below --
2012-10-17 15:28 [PATCH] notmuch compact support Ben Gamari
2012-10-17 15:28 ` [PATCH 1/3] Add notmuch_database_close_compact Ben Gamari
2012-10-17 18:56   ` Jani Nikula
2012-10-18  6:44   ` Tomi Ollila

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