Posted before I was done, sorry...

   - Is it safe to do all these things from Mapper event "after_update"?
   - Is it harmful to invoke session.flush() from within "after_update"?
   

On Wednesday, September 12, 2012 2:30:45 PM UTC-4, Kent wrote:
>
> You've mentioned multiple times (to me and others) that some operations, 
> such as reaching across relationships or loading relationships from within 
> a before_update Mapper event is not safe.
>
>
>    - I understand this is safe from within Session event before_flush(), 
>    correct?
>    - We mentioned at some point adding a Mapper level "before_flush()" 
>    event.  To avoid duplicate work, has that been done?
>
>
>    - I presume that other queries, particularly those with 
>    populate_existing() are also unsafe from within before_update?  Are such 
>    safe from before_flush()?
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sqlalchemy/-/T70Rs7rXpaYJ.
To post to this group, send email to sqlalchemy@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to