donnemartin / system-design-primer

Learn how to design large-scale systems. Prep for the system design interview. Includes Anki flashcards.
Other
264.36k stars 44.79k forks source link

Cassandra maintains only clustering keys in lexicographic order. #243

Open MaxNevermind opened 5 years ago

MaxNevermind commented 5 years ago

You can find this in the main README.md file:

... HBase, and Cassandra maintain keys in lexicographic order, allowing efficient retrieval of selective key ranges.

This part is misleading, Cassandra maintains only clustering keys in lexicographic order, partitioning key is responsible for distributing rows across nodes which means you can efficiently retrieve ranges only for rows with the same partitioning key.

kaczord commented 5 years ago

show