Re: [sqlalchemy] Getting "MySQL Server has gone away" when closing session

2018-10-24 Thread Travis Briggs
On Wed, Oct 24, 2018 at 3:35 PM Mike Bayer wrote: > On Wed, Oct 24, 2018 at 4:54 PM Travis Briggs wrote: > > > > Hi, > > > > I'm trying to apply a unit of work pattern, where I'm processing all of > the "items" in a category, and I'm opening m

[sqlalchemy] Getting "MySQL Server has gone away" when closing session

2018-10-24 Thread Travis Briggs
Hi, I'm trying to apply a unit of work pattern, where I'm processing all of the "items" in a category, and I'm opening my session before I query for the items in the category, then closing the session when the items are all processed. However, this still could take several minutes and I'm