[ZODB-Dev] Updated BTree docs

Chris Withers chrisw at nipltd.com
Fri May 2 18:07:56 EDT 2003


Tim Peters wrote:
> 
> I'd like a method that did only that much a lot better.  Note that in
> ZCTextIndex we didn't sort the whole thing, instead we used an N-best
> priority queue to remember just the best N scoring items.  Even running at
> Python speed, and using a dirt-dumb list for the queue, this was usually
> much faster than sorting the whole result sequence (at C speed) first (&
> that's generally true if N is much less than the # of items in the whole
> result sequence).

This all sounds cool but how is it exposed via ZCatalog.
In particular:

http://mail.zope.org/pipermail/zope-dev/2003-April/019456.html

In this context, the addendum I'd add to that mail would ask how I could tell 
ZCTextIndex via a ZCatalog search that I only cared about result x to y.

I'm thinking batched search results here...

cheers,

Chris




More information about the ZODB-Dev mailing list