Skip to main content

Part IV β€” Data & storage: databases from the disk up

Goal. The deepest part of the book, taught bottom-up. Establish the relational model and SQL, treat data modeling as a discipline, internalize transactions/ACID/isolation/MVCC, then derive index and engine choice from storage internals (pages, WAL, B-tree vs LSM) before going deep on PostgreSQL. Then learn NoSQL thinking and MongoDB, Redis beyond caching, and search infrastructure. Single-node correctness is mastered here, before distribution.

Milestone. You can model data correctly across relational and document paradigms; reason precisely about isolation levels and anomalies; read EXPLAIN and choose indexes from first principles; operate PostgreSQL in production; and use Redis and a search engine as first-class data tools β€” choosing each from mechanics, not cargo cult.

Pulsely increment. Persistence β€” a modeled, indexed, transactionally-sound Postgres clinical core; a Mongo RPM (remote-monitoring) firehose; Redis sessions/eligibility cache; a patient/clinical search index; a SKIP LOCKED claims/results worker table.

Chapters 15. Relational Foundations: Model, SQL, Keys, Constraints, Joins 16. Data Modeling as a Discipline 17. Transactions, ACID, Isolation & Concurrency Anomalies 18. How Databases Store Bytes: Pages, WAL, B-tree vs LSM, OLTP vs OLAP 19. PostgreSQL Deep Dive 20. NoSQL Thinking & MongoDB 21. Redis Beyond Caching 22. Search Infrastructure