[Xapian-discuss] a strange type of alias/expanded term

Andreas Marienborg andreas at startsiden.no
Tue Oct 21 09:32:51 BST 2008

On Oct 21, 2008, at 10:27 AM, Olly Betts wrote:

> On Thu, Oct 16, 2008 at 01:03:34PM +0200, Andreas Marienborg wrote:
>> I have pretty persistent db-objects (I usually call reopen on
>> exceptions), what happens if another
>> process changes these synonyms? are they stored in the DB, or just in
>> the object-instance? Is a reopen on each search the best approach to
>> reread synonyms if the are persisted on disk?
> The synonyms are stored on disk and versioned along with the rest of  
> the
> data in the database.  So reopen() to make sure you have the latest.
> Calling reopen() when there are no changes is very cheap as of 1.0.7.
> However, if you're changing them daily, you only need to do that for  
> the
> first search after midnight each day anyway.

Ahh, ok :)

Then I can just store a timestamp in my objects, and make sure they  
reload if it's been a while since the last one.

Thanks for the responses and all the help :)

- andreas

More information about the Xapian-discuss mailing list