Skip to content
Pierre Chalamet edited this page Jun 18, 2013 · 10 revisions

how to execute query to a natural endpoint ?

A natural endpoint is an endpoint managing a data. By routing queries to the right endpoint, operation latency can be enhanced.

Choose a partitionner Random or Murmur3 : this depends on your cluster configuration

Enable discovery service Choose SystemPeers or your own. Endpoint tokens can then be discovered.

Choose an endpoint strategy Choose TokenRing. This will allow selecting the right node when querying using a partition key.

Specify a partition key when querying 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.

Clone this wiki locally