By doing cassandra data store on local node

What is an easy way to configure a cassandra cluster so that if I try to save the key in it, it will be saved in the local node with which I issue the set / write command?

I am looking at an IPartitioner that allows me to specify how the key will be hashed, but it looks a little heavy for something like the above.

Thank!

+3
source share
1 answer

If you could arbitrarily write keys to arbitrary nodes, then when searching, the system did not know where the data for this key lives. The system will need to perform a full search in the cluster, which will be very slow.

By design, Cassandra disseminates data in a manner known to be quick to search.

, .

+4

Source: https://habr.com/ru/post/1761765/


All Articles