From dd41d09b4312bc5fbd5ab22a52cff0d19120e8f9 Mon Sep 17 00:00:00 2001 From: Ageev Pavel Date: Thu, 24 Jun 2021 18:21:08 +0300 Subject: [PATCH] Add possibility to disable server side cursors --- configuration/configuration.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configuration/configuration.py b/configuration/configuration.py index 727f7b3..18e14a9 100644 --- a/configuration/configuration.py +++ b/configuration/configuration.py @@ -48,6 +48,8 @@ DATABASE = { # Database connection SSLMODE 'CONN_MAX_AGE': int(environ.get('DB_CONN_MAX_AGE', '300')), # Max database connection age + 'DISABLE_SERVER_SIDE_CURSORS': environ.get('DB_DISABLE_SERVER_SIDE_CURSORS', 'False').lower() == 'true', + # Disable the use of server-side cursors transaction pooling } # Redis database settings. Redis is used for caching and for queuing background tasks such as webhook events. A separate