~/talk

A deep dive into a database engine internals

Talkat DotNext 2021 Piter · 2021-04-20..04-23· [databases, distributed-systems]
slides:none on file

Hands-on peek at RavenDB internals: data lives in 8KB pages, indexes use B+Tree layout to minimize seeks (random read latencies jump from ~50ns in RAM to 100,000ns+ on NVMe), large values go to overflow pages, and page splits fragment trees. Durability relies on a write-ahead log with fsync tradeoffs, batching and transaction merging to amortize expensive commits. Concurrency uses page-level MVCC with copy-on-write, writing only page diffs so rollback, crash-recovery and startup replay stay tractable.

AI-written summary · about

  1. 0:00Introduction and RavenDB background
  2. 6:11Database engine internals overview
  3. 7:15Persistent phone book challenge
  4. 8:19What is a database engine
  5. 11:53Cost of disk I/O and data locality
  6. 14:01B-trees and page-based storage
  7. 21:52B-trees and memory hierarchy
  8. 24:41Page splits and fragmentation
  9. 29:16Clustered vs non-clustered indexes
  10. 35:36B-tree operations and queries
  11. 40:59Seek vs scan in B-trees
  12. 42:05Logical vs physical row IDs
  13. 47:37Durability challenges in databases
  14. 50:31fsync limitations and write-ahead logs
  15. 57:13Transaction models and performance
  16. 1:02:33Concurrency and MVCC explained
  17. 1:08:18MVCC in PostgreSQL vs RavenDB
  18. 1:10:46Optimizing disk writes and batching
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.