MCPcopy Create free account
hub / github.com/adambcomer/database-engine / MemTable

Class MemTable

src/mem_table.rs:17–20  ·  view source on GitHub ↗

MemTable holds a sorted list of the latest written records. Writes are duplicated to the WAL for recovery of the MemTable in the event of a restart. MemTables have a max capacity and when that is reached, we flush the MemTable to disk as a Table(SSTable). Entries are stored in a Vector instead of a HashMap to support Scans.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected