Introducing NoSQL | 107
1. It reaches its maximum allocated size in memory.
2. The number of minutes a memtable can stay in memory elapses.
3. Manually flushed by a user.
5.4.5 Cassandra Node Level Read Operation
Every Column Family stores data in a number of SSTables. Thus, data for a particular row can be
located in a number of SSTables and the memtable. Cassandra consults a bloom lter that checks
the probability of the table having the needed data. Therefore, for every read request, Cassandra
needs to read the data from all applicable SSTables (all SSTables for a column family through
compaction) and scan the memtable for applicable data fragments. This data is then merged and
returned to the coordinator. The read process of Cassandra has been depicted in Figure 5.8.
Figure 5.7 Cassandra write process
Write
mutation
Memory
Memtable
SSTable
Index
Flush
Key,
offset
pairs
Bloom
filters
Commit
log
Disk
Figure 5.8 Cassandra read process
Bloom
filter
Memory
Disk
Client
request
Merge
data
Memtable
SSTable SSTable
M05 Big Data Simplified XXXX 01.indd 107 5/20/2019 7:42:47 PM
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.157.6