[ZODB-Dev] Using Catalog and BTrees

John D. Heintz jheintz@isogen.com
Tue, 22 May 2001 21:54:08 -0500


On Tue, May 22, 2001 at 04:22:57PM -0700, Michel Pelletier wrote:
> 
> 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
> 

Perhaps  Persistent objects could be made to follow the observer pattern
wrt Indexes.  That is when an object is first added to an Index any update
to that object could trigger a reindex call on any 'observers' automagically.

This reindex call could have the field changed as a parameter to help optimize
away needless indexing checks.

Just thinking with my fingers...
John Heintz