What role do bloom filters, partition index, summary, and key/row cache play in the read path?
Last updated
Bloom filter: in-memory probabilistic check saying a key is definitely not in an SSTable or maybe is (false positives, never false negatives), so whole SSTables can be skipped.
Partition summary (in-memory sample of the index) points to a region of the on-disk partition index, which maps the key to its exact data-file offset.
Key cache stores key-to-offset mappings to skip summary and index lookups. Row cache holds whole rows in memory to bypass SSTables entirely (off by default).
- https://axonops.com/docs/data-platforms/cassandra/architecture/storage-engine/read-path/
- https://medium.com/@rupeshksinghmit/apache-cassandra-internals-how-data-is-stored-read-and-written-6d00e7dcb695
- https://docs.datastax.com/en/cassandra-oss/2.2/cassandra/dml/dmlAboutReads.html
- https://cassandra.apache.org/_/glossary.html
- https://www.scylladb.com/glossary/bloom-filter/
- https://dataxschool.medium.com/cassandra-internals-architecture-9824897ff11e
- https://blog.nashtechglobal.com/apache-cassandra-reads-and-writes/
- https://saugereau.github.io/blog/2014/12/cassandra-cache/