In cassandra sstables are stored on disk and memtable are in cache so is there is 100% conversion from sstable to memtable i.e. if 10 GB of sstable is there then will it required 10 GB of ram ?
Asked
Active
Viewed 298 times
1 Answers
1
No that is not true. For better understanding check memtable related cassandra configuration, for example : memtable_heap_space_in_mb – This is the total allocated space for allmemtables on an Apache Cassandranode. By default, this is one-fourth your heap size.
Also read about write and read path of cassandra.

Laxmikant
- 1,551
- 1
- 13
- 30
-
Thanks Laxmikant. So does that mean for every read query first it checks into in memory memtable and then in sstable using bloom filter thats why read is slow relative to write as write are direcly flused to memtable and commit log. Out of curosity how does it know in memtable, is there is bloom filter for memtables also ? – agrawal1084 Jul 21 '18 at 04:18
-
1bloom filter in cassandra is related to sstables only and not memtables as in memory reads are already very fast. For more info check this link https://docs.datastax.com/en/cassandra/3.0/cassandra/dml/dmlAboutReads.html – Laxmikant Jul 21 '18 at 10:25