Configure SQLAlchemy connection pool for production load #14
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
classroom_engine/database.pycreates the SQLAlchemy engine with default pool settings:pool_size=5— exhausted under moderate load (10+ concurrent requests)pool_timeout— requests block indefinitely waiting for a connectionpool_pre_ping=True— stale connections after DB restart cause errorsRequired Actions
create_engine()call with production-safe settings:Acceptance Criteria
QueuePool limit exceedederrors