sqldatabasecassandrasecondary-indexesnosql

Cassandra with SSTable Attached Secondary Index vs relational database


I am new to nosql database such as Cassandra, and currently I saw this secondary index and sstable attached secondary index. Some how I am confused about the purpose to use secondary index in Cassandra, what's the difference between relational database and Cassandra with secondary index ? Which one has better performance when being queried ?


Solution

  • In Cassandra :
    You should use SASI if:

    You should avoid SASI if:

    If you decide to try SASI in production, please keep in mind that SASI does impact your write/flush throughput, compaction throughput as well as repair and streaming operations. It is quite expected because SASI index files follow SSTable life-cycle.

    Source : http://www.doanduyhai.com/blog/?p=2058

    In RDBMS : There is no restriction like this. you can order your result, perform aggregation and grouping.