Re: [sqlalchemy] How to make sure all connections are closed?

2012-07-18 Thread Michael Bayer
some of that code looks a little weird, you've got "runs a statement and returns one result", but it appears to return the whole result set from execute() - but then you call close() on it, which means you won't be able to get any rows from it. so I'm guessing that's not the actual code. the

[sqlalchemy] How to make sure all connections are closed?

2012-07-18 Thread Oltmans
Hi all, I've a Django app, structure of which looks something like http://codepad.org/Tha7ySNL . This app is serving few hundred customers and lately network admin said he's been seeing lot of open connections. What can I do to make sure there are no open connections? Is there anything that