[Grok-dev] Re: Keeping indexes up to date

Lennart Regebro regebro at gmail.com
Sun Aug 12 05:25:57 EDT 2007


On 8/10/07, Martijn Faassen <faassen at startifact.com> wrote:
> > This data may be persisted by the ZODB and the ZODB may have ways to
> > find out which attributes changed, but this is rarely enough information
> > for an IObjectModifiedEvent (remember, this event contains information
> > about which fields of which schema were changed).
>
> IObjectModifiedEvent doesn't have to contain this information, right?
> The minimum case is just to say the object changed, and that's it.

Right, but then you would send it each time you modify the object,
which in the ZODB case more or less becomes everytime you make a
settattr, which results in a huge amount of IObjectModifiedEvents per
modification.

If you have a method to change all fields in a schema, that method
could reasonably send the event, but on a lower level it's not very
practical.

-- 
Lennart Regebro: Zope and Plone consulting.
http://www.colliberty.com/
+33 661 58 14 64


More information about the Grok-dev mailing list