[sqlalchemy] eagerloading on an already loaded object ?

2014-04-28 Thread Jonathan Vanasco
I'm not sure if there is a trick to do this or not, but it's worth asking... I have an object that has been loaded into the Session, as per whatever eager-loading requirements : foo = dbSession.query( Foo ).filter(...).options(...).one() I'm now in a position where I need to access

Re: [sqlalchemy] eagerloading on an already loaded object ?

2014-04-28 Thread Michael Bayer
it can be done with some API tinkering and I totally wrote this up for someone recently, and cannot find it. This is not a public thing and isn't covered by tests, however this should be a first class feature, if someone wants to work on it or propose a ticket or whatnot. The intricate part

Re: [sqlalchemy] eagerloading on an already loaded object ?

2014-04-28 Thread Michael Bayer
here's the ticket: https://bitbucket.org/zzzeek/sqlalchemy/issue/3037/support-setting-load-options-on-instances On Apr 28, 2014, at 1:38 PM, Michael Bayer mike...@zzzcomputing.com wrote: it can be done with some API tinkering and I totally wrote this up for someone recently, and cannot find

Re: [sqlalchemy] eagerloading on an already loaded object ?

2014-04-28 Thread Jonathan Vanasco
thanks for the writeup. i'll tinker with some ideas in my downtime. for now, i'll stick with the secondary , non-Foo, query I have that pulls that bar/baz stuff. -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To unsubscribe from this group and