feat(db): Update Django DB manager to use psycopg3 and connection pooling (#6541)

# Conflicts:
#	api/poetry.lock
#	api/pyproject.toml
This commit is contained in:
Víctor Fernández Poyatos
2025-01-23 14:07:34 +01:00
committed by Pepe Fagoaga
parent 33cadaa932
commit fd8361ae2c
10 changed files with 195 additions and 116 deletions
+4
View File
@@ -23,6 +23,10 @@ DJANGO_SECRETS_ENCRYPTION_KEY=""
DJANGO_MANAGE_DB_PARTITIONS=[True|False]
DJANGO_CELERY_DEADLOCK_ATTEMPTS=5
DJANGO_BROKER_VISIBILITY_TIMEOUT=86400
DJANGO_DB_CONNECTION_POOL_MIN_SIZE=4
DJANGO_DB_CONNECTION_POOL_MAX_SIZE=10
DJANGO_DB_CONNECTION_POOL_MAX_IDLE=36000
DJANGO_DB_CONNECTION_POOL_MAX_LIFETIME=86400
# PostgreSQL settings
# If running django and celery on host, use 'localhost', else use 'postgres-db'