Re: [sqlalchemy] Mixins and lazy (query) attributes

2019-06-06 Thread Christian Barra
Il giorno mercoledì 5 giugno 2019 18:17:48 UTC+2, Mike Bayer ha scritto: > > > > On Wed, Jun 5, 2019, at 12:02 PM, Christian Barra wrote: > > Hi, I am trying to understand what the best approach is to have lazy > attributes defined on a mixin and then used them on the subclasses. > > Ideally

Re: [sqlalchemy] Mixins and lazy (query) attributes

2019-06-05 Thread Mike Bayer
On Wed, Jun 5, 2019, at 12:02 PM, Christian Barra wrote: > Hi, I am trying to understand what the best approach is to have lazy > attributes defined on a mixin and then used them on the subclasses. > > Ideally I'd would like to defer the load of that attribute (controller) and > use `undefer`

[sqlalchemy] Mixins and lazy (query) attributes

2019-06-05 Thread Christian Barra
Hi, I am trying to understand what the best approach is to have lazy attributes defined on a mixin and then used them on the subclasses. Ideally I'd would like to defer the load of that attribute (controller) and use `undefer` when I know that that attribute is needed, to execute only one