Course · 6 lessons ~48 hr Advanced

Advanced Topics & Production DBA

Advanced Topics & Production DBA covers: Learn PostgreSQL, Developing Time-Oriented Database Applications in SQL, Database Internals. Master the operational side of databases — replication, sharding, backup/recovery, zero-downtime migrations, monitoring, and time-series data. This is the module that prepares you to own database infrastructure in production. Zero-downtime migrations are the defining skill of a production Rails engineer. add_column is safe (no lock on reads or writes). add_index is NOT safe (locks writes) — use algorithm: :concurrently. rename_column is NOT safe (breaks running code) — use a three-step deploy: add new column, backfill, remove old column. change_column (type change) rewrites the entire table — use a new column instead. remove_column can break running code during deploy — use ignored_columns first. The strong_migrations gem enforces all of these. Understanding why each migration is dangerous (table locks, full table rewrites, cache invalidation) comes from understanding database internals (Module 4) and PostgreSQL operations (this module).

reading · we frame, you read MIT or the canonical taught · we author, no canonical fits ↺ spirals back to earlier lessons
Course locked

Complete Data Pipelines & Streaming first.

This course unlocks once you've finished its prerequisite. Open prerequisite →

6 lessons. Read in order; spiral back when you need to. By the end you'll have used the core ideas twice — once on the abstract, once on something you'll meet at work next week.