[Xapian-devel] Something to think about

James Aylett james-xapian at tartarus.org
Fri Oct 12 16:45:13 BST 2007


On Fri, Oct 12, 2007 at 02:22:32PM +0100, Olly Betts wrote:

> > One way to fix this would be to add a flag (or similar mechanism) 
> > telling a multiple database to generate composite IDs by sequentially 
> > combining the databases; so DB1 might have IDs from 1 to 13498 and DB2 
> > might have IDs from 13499 onwards.  [...]
> 
> I think it would be useful to support this in some way anyway.
> Interleaving isn't a perfect solution either.  Really its main benefit
> is simply that it does provide stable merged document ids even if the
> constituent databases are updated.

Could we have a mechanism where the size of each opened database is
taken into account, perhaps doubled to provide padding, and if any one
overflows its padding a new exception is raised? If that were an
optional strategy, it would work in the majority of cases (could even
be the default).

J

-- 
/--------------------------------------------------------------------------\
  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org



More information about the Xapian-devel mailing list