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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37218, comment 2

    initial v1  
    4343django.core.exceptions.SynchronousOnlyOperation: You cannot call this from an async context - use a thread or sync_to_async.
    4444}}}
     45
     46Since 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.
     47
     48The only ''safe'' mode in an async context is `RAISE`.
Back to Top