O'Reilly logo

Practical Cassandra: A Developer’s Approach by Eric Lubow, Russell Bradberry

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

3. Data Modeling

When creating a data model for your keyspace, the most important thing to remember is to forget everything you know about relational data modeling. Relational data models are designed for efficient storage, relational lookups and associations between concerns. The Cassandra data model is designed for raw performance and storage of vastly large amounts of data.

Unlike relational databases, the data model for Cassandra is based on the query patterns required. This means that you have to know the read/write patterns before you create your data model. This also applies to indexes. Indexes in Cassandra are a requirement for specific types of queries, unlike a relational database where indexes are a performance-tuning device.

In this ...

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