Re: [sqlalchemy] Ensure that relationships aren't loaded in query

2011-10-24 Thread Michael Bayer
the relationship will not be fetched if it is never accessed. If you'd like to call append()/remove() on it, but not have it load when this occurs, lazy="dynamic" will do that. To disable loading under all circumstances including iteration, lazy="noload". On Oct 24, 2011, at 6:10 PM, Devr

[sqlalchemy] Ensure that relationships aren't loaded in query

2011-10-24 Thread Devraj Mukherjee
Hi all, I have a model that loads a many relationship (User has many addresses) class User(Base): __table__ = Base.metadata.tables['user'] addresses = relationship("Address", backref="user") For one of our queries I want to ensure that the relationship is not fetched. Is this possible?