Is thread_sensitive
required for ORM calls in async consumers?
#2051
-
Andrew Godwin seems to have implied that the Django ORM may not need
We are trying to figure out if we can safely turn off |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I take that as referring only to the consumer related code. Django's ORM definitely requires use of |
Beta Was this translation helpful? Give feedback.
I take that as referring only to the consumer related code. Django's ORM definitely requires use of
thread_sensitive=True
, but the effect of this is mitigated since Django introduced per-request async contexts (so it's one thread per-request, rather than being single threaded.)