O'Reilly logo

Cassandra High Performance Cookbook by Edward Capriolo

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

Hybrid Random Partitioner using Order Preserving Partitioner

An important decision when setting up your cluster is choosing a Partitioner . Two common choices are the Random Partitioner (RP) and the Order Preserving Partitioner (OPP).

The Random Partitioner hashes the user supplied key and uses the result to place this data on nodes in the cluster. The hash function distributes the data roughly evenly across the cluster in a pseudo random order.

The Order Preserving Partitioner uses the key itself to determine which nodes on the cluster the data should be stored on. This stores the keys in order, which allows ordered Range Scans on keys. If the keys do not have an even distribution, nodes can become unbalanced and some will have more data than ...

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