Re: what are the benefits of transaction and pyramid_tm / are they necessary ?

2012-02-15 Thread Marius Gedminas
On Tue, Feb 14, 2012 at 03:16:00PM -0800, Jonathan Vanasco wrote: I recently learned that pyramid_tm closes the session on a transaction.commit() I also learned that either transaction or pyramid_tm automatically commits at the end of a request I'm not comfortable with either of these

Re: what are the benefits of transaction and pyramid_tm / are they necessary ?

2012-02-15 Thread Mike Orr
On Wed, Feb 15, 2012 at 8:47 AM, Marius Gedminas mar...@gedmin.as wrote: On Tue, Feb 14, 2012 at 03:16:00PM -0800, Jonathan Vanasco wrote: I recently learned that pyramid_tm closes the session on a transaction.commit() I also learned that either transaction or pyramid_tm automatically

Re: what are the benefits of transaction and pyramid_tm / are they necessary ?

2012-02-15 Thread Jonathan Vanasco
Mike- From what I read: the multiple attempts are to deal with issues where you lose the database connection through an API. I think by default it tries 3 times, then fails for real. The exact error didn't happen on a get(), it happens like this: useraccount= add() or get()

Re: what are the benefits of transaction and pyramid_tm / are they necessary ?

2012-02-15 Thread Marius Gedminas
On Wed, Feb 15, 2012 at 10:26:50AM -0800, Mike Orr wrote: On Wed, Feb 15, 2012 at 8:47 AM, Marius Gedminas mar...@gedmin.as wrote: On Tue, Feb 14, 2012 at 03:16:00PM -0800, Jonathan Vanasco wrote: I recently learned that pyramid_tm closes the session on a transaction.commit() I also

Re: what are the benefits of transaction and pyramid_tm / are they necessary ?

2012-02-15 Thread Marius Gedminas
On Wed, Feb 15, 2012 at 09:05:01PM +0200, Marius Gedminas wrote: On Wed, Feb 15, 2012 at 10:26:50AM -0800, Mike Orr wrote: On Wed, Feb 15, 2012 at 8:47 AM, Marius Gedminas mar...@gedmin.as wrote: On Tue, Feb 14, 2012 at 03:16:00PM -0800, Jonathan Vanasco wrote: I recently learned that

what are the benefits of transaction and pyramid_tm / are they necessary ?

2012-02-14 Thread Jonathan Vanasco
I recently learned that pyramid_tm closes the session on a transaction.commit() I also learned that either transaction or pyramid_tm automatically commits at the end of a request I'm not comfortable with either of these behaviors, particularly the latter I've run into too many situations where