O'Reilly logo

Learning Cassandra for Administrators by Vijay Parthasarathy

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

Data modeling

Now that we know a bit more about Cassandra and its architecture, let's dive into data modeling. Cassandra supports both dynamic and static/fixed column names:

  • Fixed columns: Similar to the RDBMS table structure, Cassandra defines (explicitly created during the table creation), validates, and inserts columns ahead of time. Secondary indexes can also be created on them. There are cases where this model has advantages, such as where the data store is shared between multiple applications and the data needs to be validated before it is inserted.

    Note

    The column names still need to be of the same type. The Cassandra data storage structure is very different from traditional databases; when a column is not there, instead of storing a null ...

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