πŸ“š Study Notes / Home / ADBMS
Subject 04 Β· Adv. Database Management Systems

Adv. Database Management Systems

How databases work inside β€” storage engines, B+ trees, query execution, transactions, recovery, and distribution.

πŸ“„ 1-page cheat sheet πŸ“š 16 sessions ⏱ ~5.8 h total reading πŸ“„ Original course notes

πŸ“Ž Assignments & course material (original docs shared in the course)

SESSION 01

What's actually inside a database?

⏱ 19 min read Β· πŸ“– 4 topics

Welcome to your very first database class.

Read notes β†’
SESSION 02

The Storage Engine β€” Pages & Records

⏱ 22 min read Β· πŸ“– 4 topics

In Session 1 we looked at the big picture: how a database is organised into layers, from the query parser at the top down to the bits sitting on disk.

Read notes β†’
SESSION 03

The Storage Engine β€” Heap Files & Free Space

⏱ 20 min read Β· πŸ“– 4 topics

Welcome back!

Read notes β†’
SESSION 04

Where the database keeps its pages while it works

⏱ 22 min read Β· πŸ“– 4 topics

Disks are slow and memory is fast β€” so a database keeps a private stash of recently used disk pages in RAM and reuses them instead of fetching from…

Read notes β†’
SESSION 05

Keeping the right pages in memory

⏱ 28 min read Β· πŸ“– 4 topics

In Session 4 we built the buffer pool β€” the database's in-memory cache of disk pages β€” and we used plain LRU to decide what to throw out.

Read notes β†’
SESSION 06

How databases find a row without reading the whole table

⏱ 26 min read Β· πŸ“– 4 topics

Imagine a phone book with a million names and no alphabetical order.

Read notes β†’
SESSION 07

How databases delete, build, and choose the right index

⏱ 22 min read Β· πŸ“– 4 topics

Welcome back!

Read notes β†’
SESSION 08

How your SQL becomes a plan the database can run

⏱ 17 min read Β· πŸ“– 4 topics

You type a line of SQL and an answer comes back β€” but a lot happens in between.

Read notes β†’
SESSION 09

How a database actually runs your query

⏱ 18 min read Β· πŸ“– 4 topics

In Session 8 we watched your SQL get parsed and turned into a plan β€” a tree of operations.

Read notes β†’
SESSION 10

How databases sort, join, and group data that's too big for memory

⏱ 27 min read Β· πŸ“– 4 topics

In Session 9 we met the building blocks of query execution β€” operators, scans, and how rows flow through a plan.

Read notes β†’
SESSION 11

How a database turns your SQL into the fastest possible plan

⏱ 20 min read Β· πŸ“– 4 topics

You write a short, simple SQL query β€” and behind the scenes the database has to choose how to actually run it, out of thousands of possible ways.

Read notes β†’
SESSION 12

Transactions β€” how databases keep promises

⏱ 18 min read Β· πŸ“– 4 topics

Today we learn what happens when a database has to do several things that all have to succeed together β€” like moving money between two accounts.

Read notes β†’
SESSION 13

How a database keeps everyone honest at once

⏱ 20 min read Β· πŸ“– 4 topics

In Session 12 we learned what a transaction is and why we want ACID guarantees.

Read notes β†’
SESSION 14

What happens to your data when the database crashes?

⏱ 24 min read Β· πŸ“– 4 topics

Power cuts out.

Read notes β†’
SESSION 15

How modern databases store and scan data fast

⏱ 23 min read Β· πŸ“– 4 topics

For most of this course we treated a database as one kind of thing β€” tables on disk, a B+ tree index, transactions.

Read notes β†’
SESSION 16

When one machine isn't enough: databases that span many computers

⏱ 19 min read Β· πŸ“– 4 topics

This is the final session of the whole DBMS course β€” congratulations on making it here!

Read notes β†’