Skip to content

Commit c13bec4

Browse files
authored
Merge pull request #537 from insidieux/disable-server-side-cursors-option
Disable server side cursors option
2 parents 9953d11 + dd41d09 commit c13bec4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

configuration/configuration.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ def _read_secret(secret_name, default = None):
4848
# Database connection SSLMODE
4949
'CONN_MAX_AGE': int(environ.get('DB_CONN_MAX_AGE', '300')),
5050
# Max database connection age
51+
'DISABLE_SERVER_SIDE_CURSORS': environ.get('DB_DISABLE_SERVER_SIDE_CURSORS', 'False').lower() == 'true',
52+
# Disable the use of server-side cursors transaction pooling
5153
}
5254

5355
# Redis database settings. Redis is used for caching and for queuing background tasks such as webhook events. A separate

0 commit comments

Comments
 (0)