[Xapian-discuss] Behavior of WritableDatabase against an
"add_database"
Olly Betts
olly at survex.com
Sat Nov 4 14:49:35 GMT 2006
On Sat, Nov 04, 2006 at 02:15:19PM +0000, James Aylett wrote:
> I'm still not convinced it's worth putting in core - we could write a
> note on the wiki. Again, it's only a few lines of code, and in general
> you really want to think about things in a little more detail...
Depends how complete a WritableDatabase you want. If you just want to
handle add_document, it's trivial to implement yourself. But e.g. the
termname variants of replace_document and delete_document will require
more work, and you'd need to write a lot of tedious dispatching code
for the other methods which is already in xapian-core.
Also, notice that the round-robin approach matches how we interleave
document ids when handling reading from several database together.
Cheers,
Olly
More information about the Xapian-discuss
mailing list