[ZODB-Dev] RFC: Pre-commit hooks
Christian Robottom Reis
kiko at async.com.br
Mon Apr 4 11:23:24 EDT 2005
On Mon, Apr 04, 2005 at 10:53:05AM -0400, Jim Fulton wrote:
> Sometimes, applications want to execute some code when
> a transaction is committed. For example, one might want to
> delay object indexing until a transaction commits, rather
> than indexing every time an object is changed. Or, someone
> might want to check invariants only after a set of operations.
+1. The IndexedCatalog Shelf, for instance, does exactly this, flushing
the cached changes into the index when shelf.commit() is called.
Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 2331
More information about the ZODB-Dev
mailing list