[Xapian-devel] Something to think about
James Aylett
james-xapian at tartarus.org
Sun Oct 14 15:27:39 BST 2007
On Sun, Oct 14, 2007 at 03:25:20PM +0100, Olly Betts wrote:
> > Umm, okay. So we need to think about how to assign the gap to retain
> > that for a little longer. That's harder, but could be a hint on
> > multi-db open or something. Not ideal, though :-(
>
> If we support something like this, I think it would have to be down to
> the user to manage in their own code. After all, only they will know
> what they want to do if the "buffer zone" proves too small...
Yeah, I think that's what I meant.
> But a fairly common design is for only one database to be being updated
> (and periodically older databases are merged, or the oldest one is
> just dropped entirely). In that case, you just need to make sure that
> the "live" database is last and numbering sequentially will work.
> Sequential numbering also works fine if you don't care about stable
> docids in your application. So I think perhaps it's best to keep it
> simple and point people to the interleaved approach if they want
> stable docids in multi-databases.
Okay, that's simpler. I suspect it'll be easier if interleaving is the
default, however. Only suspect, mind.
J
--
/--------------------------------------------------------------------------\
James Aylett xapian.org
james at tartarus.org uncertaintydivision.org
More information about the Xapian-devel
mailing list