1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #30398 -- Added CONN_HEALTH_CHECKS database setting.

The CONN_HEALTH_CHECKS setting can be used to enable database
connection health checks for Django's persistent DB connections.

Thanks Florian Apolloner for reviews.
This commit is contained in:
Przemysław Suliga
2021-09-26 09:40:29 +02:00
committed by Mariusz Felisiak
parent 64c3f049ea
commit 4ce59f602e
6 changed files with 216 additions and 6 deletions

View File

@@ -208,6 +208,11 @@ Models
:class:`~django.db.models.expressions.Window` expression now accepts string
references to fields and transforms.
* The new :setting:`CONN_HEALTH_CHECKS` setting allows enabling health checks
for :ref:`persistent database connections <persistent-database-connections>`
in order to reduce the number of failed requests, e.g. after database server
restart.
Requests and Responses
~~~~~~~~~~~~~~~~~~~~~~