-
Notifications
You must be signed in to change notification settings - Fork 41
UsingPartitionKey
Pierre Chalamet edited this page Jun 18, 2013
·
10 revisions
A natural endpoint is an endpoint managing a data. By routing queries to the right endpoint, operation latency can be enhanced.
Random or Murmur3 : this depends on your cluster configuration
Choose SystemPeers or your own. Endpoint tokens can then be discovered.
Choose TokenRing. This will allow selecting the right node when querying using a partition key.
ICqlCommand.Execute accepts a PartitionKey as parameter. PartitionKey.From() will help you building such hint (composite key supported too).
If no partition key is provided, a round robin strategy is used instead.