开发者

is sharding based on the first char of username an example of consistent hashing?

is sharding based on firstchar of user's name an example of consistent hashing?

To be sure, if i shard my database depending on the char-length of the user's name, is it Consistent hashing in the sense that addition or removal of one slot does not change the mapping of keys to slots?

(I know it is definitely not the most efficient way to shard data, but what i'm inte开发者_StackOverflow社区rested in is by the definition of consistent hashing, is that way of sharding considered consistent?)


it's consistent but it is not much of a hash

run a test sharding on actual data (using group by and count) and you will see how effective it is

my guess would be that it would be very uneven

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜