Re: [sqlalchemy] contains_eager, outerjoin, subquery, alias, and loading nested relationships of the same type

2018-08-08 Thread Nick Repole
Hm, I'll spend some time playing around with enable_relationship_loading and see if I can produce what I'm looking for. Thanks again for the help! On Tuesday, August 7, 2018 at 12:47:52 PM UTC-5, Mike Bayer wrote: > > On Mon, Aug 6, 2018 at 8:01 PM, Nick Repole > wrote: >

Re: [sqlalchemy] contains_eager, outerjoin, subquery, alias, and loading nested relationships of the same type

2018-08-06 Thread Nick Repole
/persisted,so such a scenario would accomplish what I'd need. But I realize my use case is pretty niche. On Monday, August 6, 2018 at 9:58:33 AM UTC-5, Mike Bayer wrote: > > On Sat, Aug 4, 2018 at 11:27 PM, Nick Repole > wrote: > > Hi, > > > > I'm attempting to load

[sqlalchemy] contains_eager, outerjoin, subquery, alias, and loading nested relationships of the same type

2018-08-04 Thread Nick Repole
Hi, I'm attempting to load some filtered relationships, and am running into issues when trying to independently load the same relationship multiple times. As an example, I'd like to load Album.tracks, and Album.tracks.album.tracks in different ways. In the first tracks relationship, I'm