O'Reilly logo

Cassandra Design Patterns by Sanjay Sharma

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Additional interesting patterns

The following are a few other interesting patterns worth mentioning, which are useful for simplifying Cassandra usage:

Pattern name

Context/problem

Solution/usage

Valueless columns

In a Cassandra data model, the column name is stored against a column value. This ability allows schemaless data modeling in Cassandra, where each row in a Cassandra table can have its own set of columns.

Valueless column usage means having columns with just names and no values. This can sometimes be useful for inverted index tables where column names would contain the required information.

An easy way to implement this is using byte[0] as the value against a column.

This pattern is useful for simplifying data modeling.

Collection ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required