Search code examples
cassandrakeyload-balancingdatabase-cluster

Cassandra Clustering Order vs OPP


I'm studying through Cassandra and ran into the concept of OPP (which is highly discouraged) and Clustering Key

http://www.datastax.com/documentation/cql/3.0/cql/cql_reference/create_table_r.html

They seem to do the same job i.e. order rows in a specific column family by a specific column. Can anyone distinguish the difference here?


Solution

  • Clustering and partitioning are 2 different things. Clustering concerns data ordering within a partition (aka wide row) and not the order of partitions (what opp was: order preserving partitioner).

    HTH, Carlo