The question basically means can I use session.query() after session.close()? I use pooled connection
On Friday, December 13, 2013 10:50:13 AM UTC-8, 史永宏 wrote: > > Hi there, > I have a long running thread which will sleep for 5min after one step of > work. And I use session = scoped_session() / session.query() to do some > query. To avoid "My sql has gone away", I call session.close() each time > before sleep(). Just want to make sure this is a good way to use session. > Or should I use session.remove()? > > Thanks > -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/groups/opt_out.