[sqlalchemy] In ORM relationship list don't get refreshed even after refreshing

2015-06-22 Thread Balaji Pattewar
Hi all, I am using simple SQLALCHEMY implementation. I have two classes Svc, Mani class Svc(Base): ''' class to map 'service' table in database ''' __tablename__ = 'svc' __table_args__ = {'autoload': True} manis = relationship('Mani') What I found that upon

Re: [sqlalchemy] In ORM relationship list don't get refreshed even after refreshing

2015-06-22 Thread Mike Bayer
1. check on the isolation level you're using, and as a guarantee that you read new rows, make sure the second reader session is beginning its transaction *after* the first transaction is completed. 2. if the second session wishes to re-read the rows within its own transaction, and you are