Please enable JavaScript.
Coggle requires JavaScript to display documents.
Storage and Retrieval - Coggle Diagram
Storage and Retrieval
Data Structures
-
-
-
-
SSTables and LSM Trees
-
-
-
-
Constructing SSTables
-
-
size-capping; write to disk as as SSTable file; efficient as tree maintains key-value pairs sorted by key
reads find first in memtable, then in most recent on-disk segment
-
-
-
-
BTrees
-
-
-
BTrees break database into fixed size blocks or pages and write one page at a time; LSM engines break database into variable sized segments and write a segment sequentially
pages identified using addresses; on disk; tree of pages; one root; pages with references and leaf pages with values
-
-
-
-
BTree Optimizations
-
-
adding additional pointers; sibling pointers in leaf pages to avoid jumping back while scanning ranges.
layout BTree so leaf pages appear in sequential order on disk. Easier to maintain sequential order in LSM trees b/c of rewrite on merge
-
-