Category Archives: cassandra

Cassandra – data modeling for historical data(Netflix)

View at Medium.com View at Medium.com

Posted in cassandra, Programming | Leave a comment

Cassandra – Cassandra tuning guide

https://tobert.github.io/pages/als-cassandra-21-tuning-guide.html

Posted in cassandra, Programming | Leave a comment

Cassandra – Save a table in CSV and loading a CSV to a table in CQLSH

Posted in cassandra, Programming | Leave a comment

Cassandra – Docker run example for Cassandra version 2.1 with PropertyFileSnitch

Posted in cassandra, Programming | Leave a comment

Cassandra – Evolvement of Cassandra column oriented row

The following blog explain how Cassandra has been improved the column oriented row. https://www.datastax.com/dev/blog/cql3-for-cassandra-experts

Posted in cassandra, Programming | Leave a comment

Java – Converting Cassandra ResultSet to Java 8 Stream

As input stream is sorted by partition key and input order is important, the following example can be used.

Posted in cassandra, Java, Programming | Leave a comment

Cassandra – import snapshot tables(column family)

The following command will import a table(column family) to the destination Cassandra node.

Posted in cassandra, Programming | Leave a comment

Cassandra – Resuming pagination

Cassandra provides the page state information and it can be reused to get next iteration. Then it can be serialized in below way It can be reconstructed and resume the query as shown following example.

Posted in cassandra, Programming | Leave a comment

Cassandra – Allow Filtering example

Allow Filtering can only work with the clustering key. Some useful cassandra commands

Posted in cassandra, Programming | Leave a comment

Cassandra – Partition Key, Clustering key

Partition Key: It will be hashed and saved across nodes. Clustering Key: It will group in the same partition key. PRIMARY KEY((partion key), clustering key) Example) create table User( email text, name text, desc text, user_id uuid PRIMARY KEY((email), name, … Continue reading

Posted in cassandra, Programming | Leave a comment