[sqlalchemy] Re: SqlAlchemy use in Twisted threads

2013-06-13 Thread writes_on
Hi all, Based on some comments here and in the SqlAlchemy IRC chat room, I've updated my decorator to make some changes. Here is the updated version: class ScopedSession(object): SESSIONMAKER = None # this is the single sessionmaker instance def __init__(self, engine,

[sqlalchemy] SqlAlchemy use in Twisted threads

2013-06-12 Thread writes_on
I'm building a Twisted application in Python 2.7 and am trying to use SqlAlchemy to interact with the database. I've got a working application that is leaking memory, and am not sure how to find the leaks. As a maybe this is the problem I'm asking if how I'm using SqlAlchemy might be the