What are Storage-Attached Indexes (SAI) in Cassandra, and how do they improve on older secondary indexes?
Last updated
SAI(Storage-Attached Indexes) attaches index structures to SSTables, sharing the write path and compaction, so writes stay cheap and disk footprint is small.Unlike legacy indexes, it supports range queries, text/prefix matching, multiple
AND'd predicates, and handles cardinality far better.It is still a local per-node index, so combine it with a partition-key restriction for low latency.
- https://axonops.com/docs/data-platforms/cassandra/architecture/storage-engine/indexes/sai/
- https://www.youtube.com/watch?v=vWpAgEiWiz8
- https://docs.datastax.com/en/dse/6.9/tutorials/sai-quickstart.html
- https://cassandra.apache.org/doc/stable/cassandra/developing/cql/indexing/sai/sai-concepts.html
- https://www.ksolves.com/blog/big-data/apache-cassandra/sai-data-modeling
- https://docs.datastax.com/en/cql/hcd/develop/indexing/sai/sai-concepts.html
- https://www.instaclustr.com/blog/introduction-to-similarity-search-part-2/
- https://www.instaclustr.com/blog/vector-search-apache-cassandra-rag-retrieval/