SQLAlchemy + Postgres Cheatsheet 17 — pg_stat_statements and Slow Queries
Cheatsheet: enable pg_stat_statements, find top queries, auto_explain, slow-query log via SQLAlchemy events.
Cheatsheet: enable pg_stat_statements, find top queries, auto_explain, slow-query log via SQLAlchemy events.
Cheatsheet: N+1, query optimization, connection pool, caching, pgbouncer.
Cheatsheet: TanStack Virtual, react-window, infinite scroll, keyed updates.
Practical load testing: pick the right tool, model real traffic, find capacity ceilings, integrate into CI, and avoid common pitfalls.
Practical Rust perf: criterion benchmarks, perf flamegraphs, dhat for allocations, common bottlenecks, and the discipline of measure-then-optimize.
Why connection pooling is non-negotiable for Postgres apps. PgBouncer transaction-mode quirks, modern alternatives (pgcat, Supavisor, Hyperdrive), and the patterns from production.
Why VACUUM matters, how MVCC creates bloat, autovacuum tuning, bloat detection, pg_repack, and the playbook for keeping Postgres healthy at scale.
What 3.13 brought, what’s experimental, and which features matter for production backend Python in 2026 — JIT, free-threaded mode, typing improvements, REPL.
Practical Postgres tuning cheat sheet. Config knobs that matter, indexing patterns, reading EXPLAIN ANALYZE BUFFERS, vacuum and bloat, connection pooling, and slow-query diagnostics.
When and how to partition Postgres tables. Range / list / hash, partition pruning, attach/detach, default partitions, and the gotchas at scale.