Re: [sqlalchemy] Re: Bulk Lazy Loader for relationships

2017-05-04 Thread mike bayer
On 05/04/2017 12:07 AM, David Chanin wrote: Interesting - so it will be possible in 1.2 to do more custom relationship loading in a "post load" hook? it will, however this hook is still local to the objects that are local to the results of that Query. Thanks for the feedback! That

Re: [sqlalchemy] Re: Bulk Lazy Loader for relationships

2017-05-03 Thread David Chanin
Interesting - so it will be possible in 1.2 to do more custom relationship loading in a "post load" hook? Thanks for the feedback! That definitely makes sense - I didn't fully understand all the logic in _emit_lazyload() initially so I wasn't sure what was OK to remove and what wasn't. I made

Re: [sqlalchemy] Re: Bulk Lazy Loader for relationships

2017-05-03 Thread mike bayer
Related note, in 1.2 I'm adding a new mechanism for loading things which is a "post load" hook, that is, a bunch of objects are loaded in a query, and then afterwards, more loaders can run on a batch of completed objects. The effect looks similar to how "subqueryload" works right now,