Category Archives: Cassandra

Apache Cassandra Secondary Indices

How are Secondary Indices really stored ? This is based on the article from Datastax found here;¬†https://www.datastax.com/blog/2016/04/cassandra-native-secondary-index-deep-dive Let’s just create a simple table

Or visualized as a table : Column Type Key id int Primary Key city text name … Continue reading

Posted in Cassandra | Leave a comment

UDF/User Defined Functions in Cassandra 3.x

I was just playing around with Cassandra WRITETIME and thought it was somewhat difficult to figure out the date / timestamp of a number like this (microseconds since EPOC) 1470645914253000. So in my example it looked like this

So … Continue reading

Posted in Cassandra, JAVA | 1 Comment

Cassandra set the writetime explicitly with a PreparedStatement

This is a quick one, I wanted to set the writetime of a row explicitly when I populate the database for testing purposes. We use the writetime of a column to filter them out. It required some looking around to … Continue reading

Posted in Cassandra, JAVA, Scala | 1 Comment