Skip to content

Commit

Permalink
connection pooling?
Browse files Browse the repository at this point in the history
  • Loading branch information
catgirlinspace committed Nov 12, 2024
1 parent 07092c5 commit c33368e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions splashcat/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,17 @@
if FLY_REGION != FLY_PRIMARY_REGION:
database_connection_details["PORT"] = 5433

if database_connection_details.get("OPTIONS"):
database_connection_details["OPTIONS"]["pool"] = True
else:
database_connection_details["OPTIONS"] = {
"pool": True,
}

DATABASES = {
"default": database_connection_details,
}

CONN_MAX_AGE = None
CONN_HEALTH_CHECKS = False

# Password validation
# https://docs.djangoproject.com/en/4.2/ref/settings/#auth-password-validators

Expand Down

0 comments on commit c33368e

Please sign in to comment.