mirror of
https://github.com/django/django.git
synced 2025-10-24 22:26:08 +00:00
[5.2.x] Fixed #33497 -- Doc'd that persistent DB connections should be disabled in ASGI and async modes.
Backport of 8713e4ae96 from main.
This commit is contained in:
@@ -40,6 +40,10 @@ database connection at the end of each request. To enable persistent
|
||||
connections, set :setting:`CONN_MAX_AGE` to a positive integer of seconds. For
|
||||
unlimited persistent connections, set it to ``None``.
|
||||
|
||||
When using ASGI, persistent connections should be disabled. Instead, use your
|
||||
database backend's built-in connection pooling if available, or investigate a
|
||||
third-party connection pooling option if required.
|
||||
|
||||
Connection management
|
||||
~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user