forked from 0xWheatyz/SPARC
Bug: get_db_client() in auth.py creates a new DatabaseClient on every call, exhausting the connection pool #274
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
auth.py calls get_db_client() which instantiates a new DatabaseClient each time it is invoked. This bypasses the connection pool and will exhaust database connections under load. Under high traffic the service will fail with connection limit errors.
Acceptance Criteria
References
Roadmap: P1 Error handling and resilience -- get_db_client() bypasses connection pool.