[Xapian-discuss] problem on closing writable databases
Olly Betts
olly at survex.com
Fri Feb 20 12:53:20 GMT 2009
On Mon, Feb 09, 2009 at 06:12:32PM -0800, Kevin Duraj wrote:
> You must use: copydatabase then your Xapian Index will free unused
> disk space from deleted documents.
>
> /usr/local/bin/copydatabase directory/old directory/new
This isn't necessary - xapian-compact will do just as well and is
significantly faster (because it doesn't need to rebuild the posting
lists).
Using copydatabase will eliminates gaps in the docid numbering from
deleted documents, while xapian-compact can only do so if there's a
gap at the start or end of the used docids.
Cheers,
Olly
More information about the Xapian-discuss
mailing list