Managing Indexes in Cassandra using Async Triggers
Friday, August 20, 2010 at 12:00PM |
Derek Stainer So yesterday we spoke about an extension to Cassandra that provides asynchronous triggers. Now we will see a use case in action, managing a secondary index with triggers. In this post, Maxim Grinev and Martin Hentschel are at it again, they describe the use case here:
Cassandra does not support secondary indexes at first, but storing redundant data (in a different layout) will give you the same effect. The main drawback is that your application (the code that writes to the DB) needs to take care of managing the index. Every time you write to the DB, you also need to maintain your index.
So by using the asynchronous triggers you can maintain the secondary index without the performance impact.
Check it out: Managing Indexes in Cassandra using Async Triggers
Follow Up: Cassandra is planning native support for secondary indexes in Cassandra. Here is the JIRA (CASSANDRA-749) full of the discussion among the committers.

