00 /What You Will Learn
By the end you will be able to
- Explain how random UUIDv4 keys cause B-Tree leaf page splits.
- Measure leaf page density and fragmentation using the PostgreSQL
pgstattupleextension. - Compare Write-Ahead Log (WAL) volume generated by random vs monotonic insertions.
- Understand how RFC 9562 UUIDv7 encodes timestamps and randomness to keep sequential insert order.
- Articulate the production trade-off between right-edge latch contention and random page thrashing.
Before you start
Complete Lab 15 (Database Indexing) and Lab 28 (PostgreSQL MVCC Dead Tuples) first. You should know what a primary key index does and how PostgreSQL stores data on 8KB disk pages. Docker Desktop must be running.