Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LemonLiTree committed Nov 27, 2023
1 parent 1441387 commit 14bb92a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docs/en/docs/admin-manual/multi-tenant.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ Through the above 4 steps, we can smoothly use the resource division function af

```sql
CREATE DATABASE db1 PROPERTIES (
"replication_allocation" = "tag.location.group_a:1, tag.location.group_b:2"
"replication_allocation" = "tag.location.group_c:1, tag.location.group_b:2"
)
```

Expand All @@ -262,10 +262,10 @@ Through the above 4 steps, we can smoothly use the resource division function af
(k1 int, k2 int)
distributed by hash(k1) buckets 1
properties(
"replication_allocation"="tag.location.group_c:1, tag.location.group_b:2"
"replication_allocation"="tag.location.group_a:1, tag.location.group_b:2"
)
```

The table creation statements for table2, table3, and table4 do not need to specify `replication_allocation` again.

Note: Changing the replica distribution policy of the database will not affect existing tables.
Note: Changing the replica distribution policy of the database will not affect existing tables.
6 changes: 3 additions & 3 deletions docs/zh-CN/docs/admin-manual/multi-tenant.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ FE 不参与用户数据的处理计算等工作,因此是一个资源消耗

```sql
CREATE DATABASE db1 PROPERTIES (
"replication_allocation" = "tag.location.group_a:1, tag.location.group_b:2"
"replication_allocation" = "tag.location.group_c:1, tag.location.group_b:2"
)
```

Expand All @@ -260,10 +260,10 @@ FE 不参与用户数据的处理计算等工作,因此是一个资源消耗
(k1 int, k2 int)
distributed by hash(k1) buckets 1
properties(
"replication_allocation"="tag.location.group_c:1, tag.location.group_b:2"
"replication_allocation"="tag.location.group_a:1, tag.location.group_b:2"
)
```

table2,table3,table4的建表语句无需再指定`replication_allocation`

注意事项:更改database的副本分布策略不会对已有的table产生影响。
注意事项:更改database的副本分布策略不会对已有的table产生影响。

0 comments on commit 14bb92a

Please sign in to comment.