From 19a00bbd8fdd2683fca4148a523e988f1f34eae1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20S=2E=20Hansen?= Date: Sun, 18 Aug 2024 20:48:55 +0200 Subject: [PATCH 1/3] Update databases connection caveat --- docs/ref/databases.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index 3db1b57652..131c7a9e64 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -97,7 +97,7 @@ either restore Django's defaults at the end of each request, force an appropriate value at the beginning of each request, or disable persistent connections. -If a connection is created in a long-running process, outside of Django’s +If a connection is created in a long-running process or a sub-thread, outside of Django’s request-response cycle, the connection will remain open until explicitly closed, or timeout occurs. You can use ``django.db.close_old_connections()`` to close all old or unusable connections. From 97c681a05cbbc7461e3da3ae5b7b26023673d51d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20S=2E=20Hansen?= Date: Sun, 18 Aug 2024 21:01:14 +0200 Subject: [PATCH 2/3] Adjusments --- docs/ref/databases.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index 131c7a9e64..f550de9c08 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -97,7 +97,7 @@ either restore Django's defaults at the end of each request, force an appropriate value at the beginning of each request, or disable persistent connections. -If a connection is created in a long-running process or a sub-thread, outside of Django’s +If a connection is created in a process or a request sub-thread, outside of Django’s request-response cycle, the connection will remain open until explicitly closed, or timeout occurs. You can use ``django.db.close_old_connections()`` to close all old or unusable connections. From 98df7caf9670fc358bffe8990e8f87b41918c1f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20S=2E=20Hansen?= Date: Sun, 18 Aug 2024 21:06:18 +0200 Subject: [PATCH 3/3] Adjustments --- docs/ref/databases.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index f550de9c08..c175977a40 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -97,7 +97,7 @@ either restore Django's defaults at the end of each request, force an appropriate value at the beginning of each request, or disable persistent connections. -If a connection is created in a process or a request sub-thread, outside of Django’s +If a connection is created in a process or sub-thread, outside of Django’s request-response cycle, the connection will remain open until explicitly closed, or timeout occurs. You can use ``django.db.close_old_connections()`` to close all old or unusable connections.