[Xapian-discuss] Merging with quartzcompact

Olly Betts olly at survex.com
Wed Feb 15 20:15:23 GMT 2006


On Wed, Feb 15, 2006 at 02:53:23PM -0500, Jim Lynch wrote:
> Before I go off and clobber my database, when I'm merging into an 
> existing db, do I specifiy the existing db as the destination as well as 
> the source?

No (quartzcompact actually checks that you haven't specified the same
path for both, though it's just a simple string compare so not
infallible).

> Or do I merge into a new database and swap pointers after it is done?

Yes.  On Unix, using a symlink for your database allows atomic swapping.

Cheers,
    Olly



More information about the Xapian-discuss mailing list