Database Internals

2024 Jun 11

Leanstore: High Performance Low-Overhead Buffer Pool

A dash of pointer swizzling, a sprinkle of optimistic locking and a touch of lean eviction, that’s the secret to a high performance buffer pool!

2024 Jun 10

Tiered Storage via 2-Tree

Split a data-structure into two: a memory-optimized ’top’-tree and a disk optimized ‘bottom’-tree. Implement a lightweight migration protocol for hot records to move up and cold records down.

2024 Jun 09

Pointer Swizzling Buffer Pools

Switching pointers as the data pointed to moves to and fro memory and secondary storage

2024 Jun 08

Compacting Transactional Data in HyPer

Keep hot tuples uncompressed, organize cold data into chunks of columns then use lightweight compression, handle both OLTP and OLAP workloads

2024 Jun 07

Virtual Memory Hot/Cold Data Re-organization for OLTP

Hot/Cold aware memory allocation with locking of the hot region to physical memory and letting the OS swap out cold LRU pages as needed.

2024 Jun 06

Offline (but Faster and more Accurate) Classification of Hot and Cold Data

Hint, it’s based on exponential smoothing

2024 Jun 05

Anti-Caching

Track hot/cold data at tuple-level granularity. Evict LRU cold data in blocks.

2024 Jun 04

Larger-Than-Memory Data Management

For when the database exceeds the main memory size