Course / 14

Databases

Design a data model and follow a query through storage, indexes and execution, then explain concurrent changes, recovery and the boundary between transactional and analytical systems.

Read SQL through constraints and client transactions, or know the same material. The Python client chapter is a separate bridge. Pages, memory, input/output and network sessions are introduced when needed; a full operating-systems course is optional background.

  1. Models and Integrity
  2. Storage and Execution
  3. Concurrency and Recovery
  4. Operating a Data Model
  1. 01

    Models and Integrity

    Turn a domain into relations and make its invariants explicit.

    After this section: Choose keys and decompose a schema without losing information.

    5 of 5 notes published
  2. 02

    Storage and Execution

    Explain how the same SQL result can have very different execution costs.

    After this section: Read a physical plan and justify an index or a join algorithm.

    6 of 6 notes published
  3. 03

    Concurrency and Recovery

    Keep invariants while operations overlap and machines fail.

    After this section: Explain an isolation anomaly and distinguish crash recovery from restoring a backup.

    5 of 5 notes published
  4. 04

    Operating a Data Model

    Control access, change the schema and recognize a different workload.

    After this section: Explain roles, a compatible migration and the move from OLTP to OLAP.

    3 of 3 notes published