The workshop log
Archives
Every essay, tool teardown, and build note, newest first.
-

SQLite in Production: database is locked, 37 ms Commits and a WAL That Never Checkpoints – a Measured Runbook
Four processes lost 180 of 240 units to SQLITE_BUSY, and on this network mount a rollback-journal commit costs 37.2 ms against 8.8 ms in WAL.
Read the article → -

SQLAlchemy 2.0 Async in Production: Resolving MissingGreenlet, Connection Pool Leaks, N+1 Queries & Transaction Deadlocks
A measured runbook for SQLAlchemy 2.0 async: MissingGreenlet on expired attributes, N+1 behind run_sync, leaked pool slots, and which SQLSTATEs to retry.
Read the article → -

FastAPI in Production: Gunicorn + UvicornWorker Deadlocks, Event Loop Starvation, Connection Pool Exhaustion & Graceful Shutdown
Measured FastAPI on Gunicorn and UvicornWorker: starved heartbeats, blocked loops, real thread deadlines, pool math and shutdown order.
Read the article → -

PostgreSQL Slow Query Optimization for Python Engineers: Triage EXPLAIN ANALYZE, Eliminate Pool Starvation & Fix Index Scans in SQLAlchemy & Asyncpg
Measured on PostgreSQL 16.2: how a slow query is diagnosed from EXPLAIN, fixed with the right index, and kept fixed in asyncpg and SQLAlchemy.
Read the article →