I was thinking about a way of optimizing in-clause like id in (1,2,3,....)?
- Get a hold of Murmur3Partitioner hashing function
- group in-clause by values that result in the same hash like "id in (x1, x3, ...)" with x1 and x3 having the same hash.
- passing that query to driver, the driver should be able to go to the partition-owner node?
So, how do I get a hold of Cassandra's Murmur3Partitioner hashing function so that I can calculate the hash in my code?
Is this theory going to work with Cassandra?