Re: [sqlalchemy]Close database connection in SQLAlchemy

2012-01-26 Thread Fayaz Yusuf Khan
On Sunday 22 Jan 2012 12:57:33 AM Sana wrote: • On page load im displaying data from the database each time the page is refreshed the query hits the database to retrieve the data there by taking long time for the page to load is thr any way by which the query hit the table oly for new

Re: [sqlalchemy]Close database connection in SQLAlchemy

2012-01-23 Thread Sana klh
Thank you for the document . im currently using SQLSoup to connect to my database like this SqlSoup('mysql://@localhost:portnumbr/databasename') How can i achieve the same using SQLAlchemy? On Mon, Jan 23, 2012 at 4:37 AM, Jackson, Cameron cameron.jack...@thalesgroup.com.au wrote: *

RE: [sqlalchemy]Close database connection in SQLAlchemy

2012-01-22 Thread Jackson, Cameron
* http://www.sqlalchemy.org/docs/orm/session.html#sqlalchemy.orm.session.Session.close * Not too sure if there is a pre-written or easy way to do caching, or if you'd have to write it yourself. -Original Message- From: sqlalchemy@googlegroups.com