[Xapian-discuss] How to rebuild database from scratch without preventing searches
William Crawford
william at sciencephoto.co.uk
Tue Apr 12 14:10:17 BST 2011
I have a process which wants to recreate a database nightly (it takes ~10
minutes, and is much faster than trying to figure out what to remove and add
from the existing contents). However, opening the database with the flag
DB_CREATE_OR_OVERWRITE destroys the existing database and prevents searches
from taking place until the rebuild process is finished.
We'd like to rebuild the database while still allowing searches to proceed,
naturally ... what's the, uh, "recommended" way to do this? Build into a
temporary copy and move a symlink? Is there any way to clear the contents and
start over without removing the existing version so readers can continue to
work (other than scanning through all the existing documents and removing them
...)?
More information about the Xapian-discuss
mailing list