Y
Hacker News
new
|
ask
|
show
|
jobs
by
fizx
5729 days ago
Even/odd isn't the end of the world, but you would then be best jumping to mod 4.
1 comments
moe
5729 days ago
Actually for anonymous sharding (without a central index) a consistent hash is about the closest you can get to ideal distribution and flexibility. I haven't looked but I presume that's what mongo uses under the hood for their auto-sharding, too.
link