Documente Academic
Documente Profesional
Documente Cultură
Hasso Plattner
A Course in
In-Memory Data Management
The Inner Mechanics
of In-Memory Databases
September 4, 2015
Chapter 5
A Blueprint of SanssouciDB
33
34
5 A Blueprint of SanssouciDB
5.2 Column-Orientation
Another concept used in SanssouciDB was invented more than two decades
ago, that is, storing data column-wise [CK85] instead of row-wise. In columnorientation, complete columns are stored in adjacent blocks. This can be contrasted with row-oriented storage where complete tuples (rows) are stored in
adjacent blocks. Column-oriented storage, in contrast to row-oriented storage, is well suited for reading consecutive entries from a single column. This
can be useful for aggregation and column scans. More details on columnorientation and its differences to row-orientation can be found in Chapter 8.
To minimize the amount of data that needs to be transferred between storage and processor, SanssouciDB uses several different data compression
techniques, which will be discussed in Chapter 7.
35
Canvas 9
Financials
Manufacturing
Logistics
SQL Interface
Stored Procedures
Query Execution
Metadata
Sessions
Transactions
Main Memory
Storage
Read-onlyReplicas
Replicas
Read-only
Cold Store - 1
Main
Main
Main
Attribute Vectors
Attribute Vectors
Attribute Vectors
Dictionaries
Dictionaries
Index
Index
Merge
Cold Store - 2
Management
Layer
Delta
Attribute Vectors
Dictionaries
Dictionaries
Aggregate Cache
Index
Aggregate Cache
Index
History
Aggregate
Cache
Log
Checkpoint
Checkpoints
Durable
Storage
1/1
36
REFERENCES
5.5 References
[ADHW99] Anastassia Ailamaki, David J. DeWitt, Mark D. Hill, and
David A. Wood. Dbmss on a modern processor: Where does
time go? In Malcolm P. Atkinson, Maria E. Orlowska, Patrick
Valduriez, Stanley B. Zdonik, and Michael L. Brodie, editors,
VLDB, pages 266277, San Francisco, CA, USA, 1999. Morgan
Kaufmann.
[CK85]
George P. Copeland and Setrag N. Khoshafian. A Decomposition Storage Model. SIGMOD Rec., 14(4):268279, May 1985.
[HAMS08] Stavros Harizopoulos, Daniel J. Abadi, Samuel Madden, and
Michael Stonebraker. Oltp through the looking glass, and what
we found there. In Jason Tsong-Li Wang, editor, SIGMOD Conference, pages 981992. ACM, 2008.