Combining mapped_column(deferred=True, deferred_raiseload=True), and AsyncAttrs/awaitable_attrs #13224
Unanswered
indrat
asked this question in
Usage Questions
Replies: 1 comment
-
|
Hi, Yes, since currently awaitable_attrs is a lazy load from sqlalchemy point of view. I think a case could be made that it should not be the case. What do you think @zzzeek ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to use AsyncAttrs/
awaitable_attrsin combination with a deferred/raiseload column?The following attempts to use
awaitable_attrsto access the attribute, whendeferred_raiseload=Falseaccessing theawaitable_attrs.itemsucceeds, however whendeferred_raiseload=Truethen attempting to load the deferred attribute withawaitable_attrsfails. Is this expected behaviour?Results in:
Beta Was this translation helpful? Give feedback.
All reactions