We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42fdd7e commit d2c71ebCopy full SHA for d2c71eb
tcf_core/settings/base.py
@@ -104,6 +104,17 @@
104
"PASSWORD": env.str("AWS_RDS_PASSWORD"),
105
"HOST": env.str("AWS_RDS_HOST"),
106
"PORT": env.int("AWS_RDS_PORT"),
107
+ # Connection pooling - reuse connections between requests
108
+ "CONN_MAX_AGE": 60, # Keep connections alive for 60 seconds
109
+
110
+ # Health checks (Django 4.1+) - verify connection is still valid
111
+ "CONN_HEALTH_CHECKS": True,
112
113
+ # Database connection options
114
+ "OPTIONS": {
115
+ "connect_timeout": 10, # Timeout for establishing connection
116
+ "options": "-c statement_timeout=30000", # 30 second query timeout
117
+ },
118
}
119
120
0 commit comments