[ZODB-Dev] Using Catalog and BTrees

Michel Pelletier michel@digicool.com
Tue, 22 May 2001 16:22:57 -0700 (PDT)


On Tue, 22 May 2001, Christian Robottom Reis wrote:

> If you (or Jim) can point me out to what needs to be done, I'll be busy
> reading and hacking away to get something useful.

I honestly couldn't tell you where to begin, perhaps you should try
getting some goals, requirements, use cases, etc?  Then you'll know more
about your problem.

> I'd also like to know how far away from the current Catalog we are allowed
> to go -- should the interface stay stable, but the internals break, or can
> we break the interface, too?

I don't know, that depends on your requirements.

> > etc.  Zope indexes are complicated slightly by the fact that they
> > store the 'old values' for unindexing purposes in a reverse BTree
> > since the object may have be gone or no longer have the old values at
> > unindexing time.
> 
> Hmmm. Isn't indexing/unindexing done automagically on attribute
> alteration?

No, an index is a persistent object that sits inside the same ZODB as the
persistent objects it indexes.  If you change one object, ZODB does not
know, or care, that that object is indexes in some other object so it will
not automagically do anything.

-Michel