Skip to main content

Databases

Database concepts for backend engineers: storage internals, transaction semantics, and operational patterns.

IndexesB-tree, hash, GIN/GiST, partial, composite — when each wins
TransactionsACID guarantees, isolation levels, phantom reads, MVCC
Connection poolingSizing the pool, pgBouncer, connection overhead
Query planningEXPLAIN ANALYZE, index scan vs seq scan, statistics
MigrationsRolling migrations, backward compatibility, zero-downtime