M.J. van der Veen
2006-Nov-08 12:45 UTC
[Xapian-discuss] Updating xapian entries with omega
Hi, I'm using omega and xapian to index a discussion board. Now, I have defined a UNIQUE field in my index file. When I supply two records with the same unique value sequentially to the omega scriptindex binary it returns that 2 entries are added. I would have expected that the first is an addition and the second an update. Can anyone explain how we can use omega to update records? Moreover, what is the cost of an update to the database? Would it make a big difference to update multiple records in a single run instead of executing the scriptindex seperately for each update? Cheers, Maarten
On Wed, Nov 08, 2006 at 01:45:53PM +0100, M.J. van der Veen wrote:> I'm using omega and xapian to index a discussion board. Now, I have defined > a UNIQUE field in my index file.Which Xapian version are you using?> When I supply two records with the same unique value sequentially to the > omega scriptindex binary it returns that 2 entries are added.That sounds like a bug. Do you have a simple example which shows this? The index script and dump file should be enough.> Moreover, what is the cost of an update to the database? Would it make a big > difference to update multiple records in a single run instead of executing > the scriptindex seperately for each update?It will be much faster to update multiple records in a single run. Cheers, Olly