Store multiple keys on the same node.
Is it possible to group certain keys so they fall on the same vBucket? I have a number of "related" keys that I'd like to keep on the same node.
Does couchbase have the concept of "partition keys" at all? (I didn't see anything like this).
If it doesn't (and it isn't planned), does this concept sound like it would be supported long term?
It appears that I could override the hash algorithm using the CouchbaseConnectionFactoryBuilder. The basic idea would be to extend DefaultHashAlgorithm, override "valueOf" and "computeMd5" to parse the key in a particular fashion:
Keys would be composed of 2 parts seperated by a "~":
would all be hashed to the same bucket since it would only hash the portion that is after the "~" character.
Is this something that would be a good strategy long term?