Skip to content

Commit

Permalink
feat(doc): update cosid-generator.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahoo-Wang committed Jan 2, 2024
1 parent 441daed commit 1ba2f54
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions documentation/docs/guide/cosid-generator.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,14 @@ _CosIdGenerator_ *单机 TPS 性能:1557W/s*,三倍于 `UUID.randomUUID()`

## Radix62CosIdGenerator

使用62进制格式化的_CosId生成器_
使用62进制格式化的*CosId生成器*

`[timestamp(44)]-[machineId-(20)]-[sequence-(16)] = 80 BITS = 15 CHARS=[timestamp(9)]-[machineId(4)]-[sequence(4)]`

- 时间戳由原来的44位缩减为9位
- 机器号由原来20位缩减为4位
- 序列号由原来的16位缩减为3位


## 配置

[CosIdGenerator 配置](../reference/config/cosid-generator.md)

0 comments on commit 1ba2f54

Please sign in to comment.