03-Storage1 Slides
03-Storage1 Slides
Relational Databases
Storage
Execution
Concurrency Control
Recovery
Distributed Databases
Potpourri
Relational Databases
Storage
Execution
Concurrency Control
Recovery
Distributed Databases
Potpourri
1 2 3 4 5 …
1 2 3 4 5 …
1 2 3 4 5 …
1 2 3 4 5 …
Directory
1 2 3 4 5 …
Directory Header
1 2 3 4 5 …
Directory Header
1 2 3 4 5 …
Directory Header
1 2 3 4 5 …
Directory Header
1 2 3 4 5 …
Directory Header
1 2 3 4 5 …
Directory Header
1 2 3 4 5 …
File Storage
Page Layout
Tuple Layout
…
of free slots per page.
Page0
Data
The DBMS maintains special pages
that tracks the location of data pages Directory
Page1
in the database files.
Data
…
of free slots per page.
…
Page100
Page0
Data
The DBMS maintains special pages
that tracks the location of data pages Directory
Page1
in the database files.
Data
…
of free slots per page.
…
Page100
File Storage
Page Layout
Tuple Layout
Two approaches:
→ Tuple-oriented
→ Log-structured
Two approaches:
→ Tuple-oriented
→ Log-structured
File Storage
Page Layout
Tuple Layout
Log-Structured Storage
Value Representation
Storage Models