memtables
A memtable is an in-memory data structure used to store recently written data before it is persisted to durable storage in log-structured storage systems. It is a core component of many write-intensive databases and file systems that follow a log-structured approach, such as LSM-tree based databases.
Typically, a memtable holds key-value pairs in a sorted form, using a data structure like a skip
Durability and crash recovery rely on the write-ahead log: changes are persisted there before being visible
Memtables are typically per data structure unit in a database, such as per table or per column
Key considerations include memory usage, flush frequency, and the impact of compaction on performance. Proper sizing