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 ...

Get Practical Cassandra: A Developer’s Approach now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.