Give the differences between the different types of Primary Keys in Cassandra?

devquora
devquora

Posted On: Feb 22, 2018

 

    • Single primary key

In this case, only one column is used as a primary key. This column is also referred to as partitioning key which is used to partition the data. By virtue of the partition key, data has been spread on various nodes.

    • Compound Primary Key

In this, the data is partitioned and then grouped. race_name is referred to as partitioning key while the race_position is referred to as clustering key. Former decides the partition of data and the latter decides the clustering of data.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Cassandra Interview Questions

    What do you understand by Cassandra?

    It is a NoSQL based technology which is highly selected by the users and customers...

    Cassandra Interview Questions

    What are the main benefits of using Cassandra?

    First of all, the extraordinary points that makes the people so attracted to it that it has no chance of failure..

    Cassandra Interview Questions

    What do you mean by Tunable Consistency?

    Tunable Consistency is used to keep the fresh and co-exist data rows on all their replicas..