[ZODB-Dev] ZODB-level indexing

Roché Compaan roche at upfrontsystems.co.za
Wed Nov 5 10:20:32 EST 2003


* Christian Robottom Reis <kiko at async.com.br> [2003-11-05 14:47]:
> This is more or less the idea I had: do the unindex/index step just
> before an object is pickled. It's actually what IC does, except it is
> done upon setattr(). 
> 
> This points to one of the fundamental issues with this approach, however
> -- the indexes will only be updated at commit() time, which is when the
> ZEO server actually receives the change notifications. If your
> application does updates and queries without commit()ing, the query will
> not return the updated objects. 
> 
> You'll have to reason whether this constraint is acceptable to you.

Not really, we have a lot of calls in our app which depends on indexing
during the transaction. At least this points out a thorny issue one will
have to deal with when tackling this problem.

-- 
Roché Compaan
Upfront Systems                 http://www.upfrontsystems.co.za



More information about the ZODB-Dev mailing list