Re: [sqlalchemy] SelectIn loader joining on parent table

2017-08-17 Thread Aidan Kane
, Mike Bayer wrote: > > On Wed, Aug 16, 2017 at 7:48 AM, Aidan Kane <aida...@gmail.com > > wrote: > > I'm sure there's a great reason for this, but why does the new selectin > > loader join the parent table and use the parent ids instead of using the > > foreig

[sqlalchemy] SelectIn loader joining on parent table

2017-08-16 Thread Aidan Kane
I'm sure there's a great reason for this, but why does the new selectin loader join the parent table and use the parent ids instead of using the foreign key directly on the child table? Is it just the complexity of knowing what to filter for / how to build the criteria for the selectin query?