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

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 → -

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 →