[Xapian-discuss] xapian-compact

Jim jim at fayettedigital.com
Tue Aug 21 20:49:09 BST 2007


What happens to the data in an existing db if that directory is the 
target of xapian-compact?

For instance, I have  db1 and db2 and temp directories.  temp is 
new/updated data, db1 and db2 are production databases that I swap on a 
daily basis, e. g.

db1
db2
current->db1

(psuedo code)
if (current ==db1)
xapian-compact temp db1 db2
ln -sf db2 current
else
xapian-compact temp db2 db1
ln -sf db1 current
endif

Do I need to clear out the target before I write?

Actually brings up another question.  If temp and db1 (first case) have 
duplicate records in each, which one gets selected?  Is there a date kept?

Thanks,
Jim.



More information about the Xapian-discuss mailing list