What is a Memtable, and what happens when it's full?

Last updated 11 July 2026

  • A Memtable is an in-memory, per-table write buffer sorted by clustering key that receives every write (with the commit log for durability) and merges updates to the same cell.

  • It flushes when a size/memory threshold (e.g. memtable_cleanup_threshold), a time limit, or nodetool flush is hit.

  • On flush it is written sequentially as a new immutable SSTable, its commit log segments become recyclable, and a fresh Memtable takes writes with no downtime.

  • https://www.scylladb.com/glossary/cassandra-memtable/
  • https://www.instaclustr.com/blog/cassandra-architecture/
  • https://docs.datastax.com/en/cassandra-oss/2.1/cassandra/dml/dml_write_path_c.html
  • https://cassandra.apache.org/doc/stable/cassandra/architecture/storage-engine.html
  • https://aicassindra.com/blogs/cassandra/cassandra_memtable_flush.html
  • https://arpitbhayani.me/blogs/cassandra-writes/
  • https://aicassindra.com/blogs/cassandra/cassandra_commit_log.html
  • https://medium.com/@priyaskulkarni/cassandra-internals-how-data-is-written-stored-tuned-for-performance-628572812444
All Cassandra interview questions