If I have an instance "MyInstance" with an attribute "itsLazyAttribute" from a relationship, where everything is defined and queried with lazy loading, then the attribute is lazily loaded, and only filled in when I access it (perhaps, x=len(MyInstance.itsLazyAttribute). But if not accessed before the instance is detached (session closed, or expunge called) then the attribute will be unavailable, and trigger a DetachedInstanceError (not bound, lazy load operation cannot proceed).
All fine, but is there any way to automatically trip all the lazy triggers before detaching an instance? Something like a "session.fullyLoad(MyInstance)" type of call? I couldn't seem to see anything that would do this. I can redo things to do an eager query, but I was wondering if I was missing something? -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To view this discussion on the web visit https://groups.google.com/d/msg/sqlalchemy/-/XWYRwybYM-EJ. To post to this group, send email to sqlalchemy@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.