You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lsm-tree.cabal
+65-2Lines changed: 65 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -185,15 +185,78 @@ description:
185
185
The total size of an LSM-tree must not exceed \(2^{41}\) physical entries.
186
186
Violation of this condition /is/ checked and will throw a 'TableTooLargeError'.
187
187
188
-
=== Fine-tuning #fine_tuning#
188
+
=== Fine-tuning Table Layout #fine_tuning#
189
+
190
+
The configuration parameters @confMergePolicy@, @confMergeSchedule@, @confSizeRatio@, and @confWriteBufferAlloc@ affect the way in which the table organises its data.
191
+
To understand what effect these parameters have, one must have a basic understand of how an LSM-tree stores its data.
192
+
An LSM-tree stores key–operation pairs, which pair a key with an operation such as an @Insert@ with a value or a @Delete@.
193
+
These key–operation pairs are organised into /runs/, which are sequences of key–operation pairs sorted by their key.
194
+
Runs are organised into /levels/, which are unordered sequences or runs.
195
+
Levels are organised hierarchically.
196
+
Level 0 is kept in memory, and is referred to as the /write buffer/.
197
+
All subsequent levels are stored on disk, with each run stored in its own file.
198
+
The following shows an example LSM-tree layout, with each run as a boxed sequence of keys and each level as a row.
0 commit comments