That's not a current feature, as SQLAlchemy is not too comfortable maintaining a Query beyond the span of when the objects were first loaded. "Subquery loading" is the first feature that even gets close to this but that still invokes within an "eager" context.
If you do in fact emit a query() for the target objects using the undefer() option, you'll get the same effect, just not as an "on load" event. On Nov 28, 2011, at 9:46 AM, erikj wrote: > Hello, > > Is it possible to configure a deferred column in such a way > that when the column is fetched for one object, it is fetched > for all objects in a session with a single query ? > > Thanks, > > Erik > > -- > You received this message because you are subscribed to the Google Groups > "sqlalchemy" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sqlalchemy?hl=en. > -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
