Page Layout
每个 page 由两部分组成:
- header:存储 meta-data,包含 page size, checksum, dbms version, transcation visibility, compression information(可能还包含了 schema,如 oracle)
- data:
- Tuple-oriented:常见做法是 Slotted Pages
- 每个 tuple 都有自己唯一的记录id,通常为 page_id + offset/slot
- Log-structed:见Log-Structured Storage
- Tuple-oriented:常见做法是 Slotted Pages