- attached populate_existing.patch
Replacement for always_refresh in query method
Issue #660
resolved
Make a method like query.populate_existing().filter(...).all() which replacess all attributes of objects already in session. It should work with eagerloading too, in order to refresh a big set of different objects in one query.
Comments (4)
-
Account Deleted -
Account Deleted I submit patch wich allows to use new query option: populate_existing()
Should use like session.query(Class).options(populate_existing(),...).filter(..)..
All objects already in session and in query will reload attributes.
I think it's more logical to make this behavior an option of query rather than a generative method.
-
repo owner its a generative populate_existing(), added in changeset:2998
-
repo owner - removed milestone
Removing milestone: 0.4.0 (automated comment)
- Log in to comment
Patch adding new option to query - populate_existing()