On Mar 20, 2007, at 1:08 PM, Andreas Jung wrote:
> In a traditional application you can insert a new row and read the > row within the same transaction. What is the typical usage pattern > to deal with this in SA? In our particular setup (Zope) a new > session is created for > each new HTTP request and flushed automatically at the end of > request when > Zope commits the transaction. A solution might be to flush the session > explicitly in such a case however I don't think that this is a > smart idea. > Any better idea? if you are using an enclosing SessionTransaction, the flushes in between dont get committed until the end, so not such a big deal. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
