Skip to content

Commit 67e8e51

Browse files
committed
HotFix: Reduce database connection max age to improve resource management
Signed-off-by: U039b <esther@pts-project.org>
1 parent 0e4b091 commit 67e8e51

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config/settings/production.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# ------------------------------------------------------------------------------
1313
DATABASES["default"] = env.db("DATABASE_URL") # noqa F405
1414
DATABASES["default"]["ATOMIC_REQUESTS"] = True # noqa F405
15-
DATABASES["default"]["CONN_MAX_AGE"] = env.int("CONN_MAX_AGE", default=60) # noqa F405
15+
DATABASES["default"]["CONN_MAX_AGE"] = env.int("CONN_MAX_AGE", default=3) # noqa F405
1616

1717
# CACHES
1818
# ------------------------------------------------------------------------------

0 commit comments

Comments
 (0)