* status: new => closed
* resolution: => wontfix
* component: Uncategorized => Database layer (models, ORM)
* type: Uncategorized => New feature
Comment:
> For example, when using Postgres, the psycopg database driver is thread-
safe and appears to work fine with the thread_sensitive flag disabled.
>
> The issue here is not whether thread_sensitive should be True by
default, but rather there should be a way to disable it when the user
knows it's safe to do so. In particular, for the async ORM and async cache
interfaces, it would be wonderful to configure thread sensitivity via a
setting.
Define "appears" :) — I think this needs a **proof-of-concept**, and
discussion on the [https://forum.djangoproject.com/c/internals/async/8
Internals > Async category of the forum] to be able to move forward.
(AFAICS there are a number of issues, from connections, to model
instances, to signals, to... that mean we can't just toggle this off.
**Showing** that it's safe in circumstance X or Y or Z is prerequisite to
change here.) Thanks!
--
Ticket URL: <https://code.djangoproject.com/ticket/34359#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.