On Wednesday, January 12, 2011 2:16:00 PM UTC-5, Michael Bayer wrote:
see expire_on_commit=False as well as Session.commit() for further detail:
http://www.sqlalchemy.org/docs/orm/session.html#committing
http://www.sqlalchemy.org/docs/orm/session.html#sqlalchemy.orm.session.Session.commit
To
On Jan 13, 2011, at 10:18 PM, Russ wrote:
On Wednesday, January 12, 2011 2:16:00 PM UTC-5, Michael Bayer wrote:
see expire_on_commit=False as well as Session.commit() for further detail:
http://www.sqlalchemy.org/docs/orm/session.html#committing
On Thursday, January 13, 2011 10:29:10 PM UTC-5, Michael Bayer wrote:
So you're looking to do a write-through cache here, i.e. write the DB, then
write the value straight to the cache. I think if you were to say
session.flush(), which emits the SQL, then detach all the objects using