this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add memtable section

garrison 171a4a1f 80893886

+17
+17
rfds/001_xks_storage_engine.md
··· 284 284 285 285 The `pair_count` records the number of pairs in the subtable, 286 286 which is needed to binary search the slot array. 287 + 288 + ## Memtables 289 + 290 + A memtable is an in-memory table used to buffer writes before they are merged with the on-disk tables. 291 + There is one active memtable, which accepts writes and maintains sorted order. 292 + Once the active memtable grows large enough (64 MiB), it is frozen and a new active memtable is created. 293 + 294 + Once enough memtables are accumulated (four), they are merged with the first level of the LSM on disk. 295 + 296 + A memtable is implemented as an `:ets` table with the following layout: 297 + 298 + ``` 299 + Key: {key, version} 300 + Value: value 301 + ``` 302 + 303 + The `key` and `value` are binaries, and the `version` is the integer database version.