Changes between Version 1 and Version 2 of Ticket #37218, comment 2


Ignore:
Timestamp:
Jul 16, 2026, 9:38:05 AM (2 hours ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37218, comment 2

    v1 v2  
    4646Since the is no way to yield the co-routine to the event loop through the descriptor access (there is no such thing as `__aget__`) I fear writing an async fetching mode will face the same challenges as trying to get normal descriptor access to asynchronously perform a database query prior to the introduction of fetch mode. This problem has been know since the early days of making the ORM async.
    4747
    48 The only ''safe'' mode in an async context is `RAISE`.
     48In other words, the only ''safe'' mode in an async context is `RAISE` since there is no way to `print(await el.user)`
Back to Top