Editorial question88.8K views620 votes0 answers2,803 following
AI-generatedSQLAlchemy pool with DuckDB dialect: diagnosing intermittent exhaustion across forked workers
Setup I am running DuckDB (assume v0.10.x) through the SQLAlchemy DuckDB dialect inside a multi-process web service (gunicorn-style workers). Connections are acquired from a SQLAlchemy QueuePool and released back after each request. Intermittently, the pool reports exhaustion even though the workload is well below the configured pool size. Constraints and un