[sqlalchemy] Re: Attribute expiration

2009-03-30 Thread Christiaan Putter
Thanks for the the advice Domen, that seems to clear up many of my problems :-) So right now I'm able to create a session, pull a few thousand records and then close that session. Then those instances get displayed in the gui and might get changed by some other threads, which will commit them

[sqlalchemy] Re: Attribute expiration

2009-03-29 Thread Domen Kožar
You may want to take a look at expire_on_commit: http://www.sqlalchemy.org/docs/05/reference/orm/sessions.html?highlight=sessionmaker#sqlalchemy.orm.sessionmaker On Mar 30, 1:30 am, Christiaan Putter ceput...@googlemail.com wrote: Hi guys, I haven't been able to figure out how to work with