You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2022/04/21 16:04:00 UTC
[shardingsphere] branch master updated: Add NanoId doc (#16976)
This is an automated email from the ASF dual-hosted git repository.
zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new e4425be56d5 Add NanoId doc (#16976)
e4425be56d5 is described below
commit e4425be56d560c5977f715a20a63d41a195c93aa
Author: sunhangda <lw...@126.com>
AuthorDate: Fri Apr 22 00:03:42 2022 +0800
Add NanoId doc (#16976)
* Add nano id doc
---
docs/document/content/features/sharding/concept/key-generator.cn.md | 4 ++++
docs/document/content/features/sharding/concept/key-generator.en.md | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/docs/document/content/features/sharding/concept/key-generator.cn.md b/docs/document/content/features/sharding/concept/key-generator.cn.md
index 491c52c682d..76689bbbc34 100644
--- a/docs/document/content/features/sharding/concept/key-generator.cn.md
+++ b/docs/document/content/features/sharding/concept/key-generator.cn.md
@@ -18,6 +18,10 @@ Apache ShardingSphere 不仅提供了内置的分布式主键生成器,例如
采用 `UUID.randomUUID()` 的方式产生分布式主键。
+### NanoID
+
+生成长度为21的字符串分布式主键。
+
### SNOWFLAKE
在分片规则配置模块可配置每个表的主键生成策略,默认使用雪花算法(snowflake)生成 64bit 的长整型数据。
diff --git a/docs/document/content/features/sharding/concept/key-generator.en.md b/docs/document/content/features/sharding/concept/key-generator.en.md
index a6c19816133..edd410f8367 100644
--- a/docs/document/content/features/sharding/concept/key-generator.en.md
+++ b/docs/document/content/features/sharding/concept/key-generator.en.md
@@ -23,6 +23,10 @@ Besides, we have also extracted a key generator interface to make users implemen
Use `UUID.randomUUID()` to generate the distributed key.
+### NanoID
+
+Generate a string of length 21 distributed key.
+
### SNOWFLAKE
Users can configure the strategy of each table in sharding rule configuration module, with default snowflake algorithm generating 64bit long integral data.