3 ms·
If I were you guys I'd strongly consider adding support for hashing of the shard key. There are many cases where you care about distributing your writes(1) a lo
by harryh 14y ago
If I were you guys I'd strongly consider adding support for hashing of the shard key. There are many cases where you care about distributing your writes(1) a lot more than fast range queries on the PK.
-harryh
1. Yes, I know there are other ways to do this besides hashing the shard key, but this is often the best way.
- coffeemug 14y agoWe actually support hash sharding underneath -- each range shard is further broken down into hash shards internally to support multicore scalability. This isn't exposed to the users currently, but it can be. Another option is to allow the user to provide a hash function on the PK (I think this is what you're suggesting). We'll be addressing this at some point, we have to sort through the list of feature requests first. It's a long list :)
- harryh 14y agoI don't feel the need to provide the hash function, as long as it's something reasonable. I understand that it's a long list! Just adding a vote to one particular item. Good luck!