yeah just load the object again w/ the eagerloads option you want.
On 04/24/2017 04:12 PM, Jonathan Vanasco wrote:
[I couldn't find any docs on this, and my luck with the list archives
only showed some potential work for this in 2008.]
Is it currently possible to eager-load a ORM relationship after a query?
For example, I have loaded an instance of `Foo`, but I did not do an
eager load on `Foo.bars` and 'Foo.bars.widget`. I'd like to instruct
Foo to eagerload the `Foo.bars.widget`, instead of lazyloading them as
iterated.
--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper
http://www.sqlalchemy.org/
To post example code, please provide an MCVE: Minimal, Complete, and
Verifiable Example. See http://stackoverflow.com/help/mcve for a full
description.
---
You received this message because you are subscribed to the Google
Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.
--
SQLAlchemy -
The Python SQL Toolkit and Object Relational Mapper
http://www.sqlalchemy.org/
To post example code, please provide an MCVE: Minimal, Complete, and Verifiable
Example. See http://stackoverflow.com/help/mcve for a full description.
---
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.