Hi Martijn

> [Christian]
> >>  Otherwise this function is likely to become a performance 
> killer, as
> >>  I'd have to go all over the place to remove stuff.
> > 
> > We do this everytime we delete a object. This is done with 
> subscribers 
> > and dispatching events to sublocations if a 
> ObjectRemoveEvent get fired. 
> Wouldn't this still be a performance killer? I.e. if a user 
> gets removed 
> in a large site, wouldn't an event need to be sent to all 
> objects that 
> have security annotations in the tree? And at the end, a large 
> transaction, or a lot of transactions, would need to be 
> committed. From 
> my experience with Zope 2, this sounds like a potentially 
> very expensive 
> operation, right?

Yes you are right. Do you have another idea?

How about to add a concept like intid? We could add objects
where contain annotated security info to a utility. This 
allows us to get the right objects from this utility and avoid
traversing a structure. 

Roger Ineichen

> Regards,
> Martijn
> _______________________________________________
> Zope3-dev mailing list
> Zope3-dev@zope.org
> Unsub: 
> http://mail.zope.org/mailman/options/zope3-dev/dev%40projekt01.ch

Zope3-dev mailing list
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to