[PonyORM-list] Always prefetch some related entities ?

Tomislav Tustonic ttustonic at outlook.com
Sat Dec 13 21:20:28 UTC 2014


Gamesbrainiac wrote:
> Change the optional attribute `lazy` to False. So, for example:
>
> class File(database.Entity):
>     filename = Required(unicode, lazy=False)
>     ...
>
> And then try. Admittedly, I have not tried this out myself, but this should work.
>
Hmm, I think you misunderstood... I don't need eager filename attribute, I need 
to prefetch Directory related entity.
Adding lazy=False to directory attribute doesn't work. It was the first thing I 
tried :)

Tom




More information about the ponyorm-list mailing list