You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/10/31 08:02:38 UTC

[GitHub] [incubator-shardingsphere] AL-Liang opened a new issue #3422: About key generated by built-in snowflake algorithm

AL-Liang opened a new issue #3422: About key generated by built-in snowflake algorithm
URL: https://github.com/apache/incubator-shardingsphere/issues/3422
 
 
   I found a fact about the sharding key generated by built-in snowflake algorithm. The result of the key mod 4 always is 0/1, to me, it is wierd. What I expected is, the result should be 0/1/2/3, and the key should evenly distributed to all the sharded tables. I am new to ShardingSphere and the snowflake algorithm. What caused it?
   
   Thanks.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services