Key Generate Algorithm
Snowflake
Type: SNOWFLAKE
Attributes:
Name | DataType | Description | Default Value |
---|---|---|---|
worker-id (?) | long | The unique ID for working machine | 0 |
max-tolerate-time-difference-milliseconds (?) | long | The max tolerate time for different server’s time difference in milliseconds | 10 milliseconds |
max-vibration-offset (?) | int | The max upper limit value of vibrate number, range [0, 4096) . Notice: To use the generated value of this algorithm as sharding value, it is recommended to configure this property. The algorithm generates key mod 2^n (2^n is usually the sharding amount of tables or databases) in different milliseconds and the result is always 0 or 1 . To prevent the above sharding problem, it is recommended to configure this property, its value is (2^n)-1 | 1 |
UUID
Type: UUID
Attributes: None
当前内容版权归 ShardingSphere 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 ShardingSphere .