Skip to content

Is thread_sensitive required for ORM calls in async consumers? #2051

Answered by carltongibson
Archmonger asked this question in Q&A
Discussion options

You must be logged in to vote

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.)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Archmonger
Comment options

@carltongibson
Comment options

Answer selected by Archmonger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants