[Zope3-dev] Re: performance and BTrees

Stephan Richter stephan.richter@tufts.edu
Thu, 1 May 2003 10:10:28 -0400


On Thursday 01 May 2003 09:57, Steve Alexander wrote:
> > My idea was to maintain an index as a btree with the thread data using
> > the event service.
>
> You'd want to use the event service.
> Write a DateIndex and subscribe it to receive IObjectAddedEvents.
> When the object that is added is an IYourMessageThread, index its id
> (its path, I guess) against the date it was created.

That's the solution I chose for ZWiki, where I wrote a custom TextIndex.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training