forked from pingcap/docs-cn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the introduced version clear for "txn-entry-size-limit" (pingcap…
- Loading branch information
1 parent
c55a596
commit e44ec55
Showing
6 changed files
with
75 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,69 @@ | ||
--- | ||
title: TiDB 使用限制 | ||
--- | ||
|
||
# 使用限制 | ||
|
||
本文会将详细描述 TiDB 中常见的使用限制,包括:标识符长度,最大支持的数据库、表、索引、分区表、序列等的个数。 | ||
|
||
## 标识符长度限制 | ||
|
||
| 标识符类型 | 最大长度(字符)| | ||
|:---------|:--------------| | ||
| Database | 64 | | ||
| Table | 64 | | ||
| Column | 64 | | ||
| Index | 64 | | ||
| View | 64 | | ||
| Sequence | 64 | | ||
|
||
## Databases、Tables、Views、Connections 总个数限制 | ||
|
||
| 标识符类型 | 最大个数 | | ||
|:----------|:----------| | ||
| Databases | unlimited | | ||
| Tables | unlimited | | ||
| Views | unlimited | | ||
| Connections| unlimited| | ||
|
||
## 单个 Database 的限制 | ||
|
||
| 类型 | 最大限制 | | ||
|:----------|:----------| | ||
| Tables |unlimited | | ||
|
||
## 单个 Table 的限制 | ||
|
||
| 类型 | 最大限制(默认值) | | ||
|:----------|:------------------------------| | ||
| Columns | 默认为 1017,最大可调至 4096 | | ||
| Indexs | 默认为 64,最大可调至 512 | | ||
| Rows | 无限制 | | ||
| Size | 无限制 | | ||
| Partitions| 8192 | | ||
|
||
* Columns 的最大限制可通过 [`table-column-count-limit`](/tidb-configuration-file.md#table-column-count-limit-从-v50-版本开始引入) 修改。 | ||
* Indexs 的最大限制可通过 [`index-limit`](/tidb-configuration-file.md#index-limit-从-v50-版本开始引入) 修改。 | ||
|
||
## 单行的限制 | ||
|
||
| 类型 | 最大限制 | | ||
|:----------|:----------| | ||
| Size | 默认为 6MB,可通过 [`txn-entry-size-limit`](/tidb-configuration-file.md#txn-entry-size-limit-从-v50-版本开始引入) 配置项调整 | | ||
|
||
## 字符串类型限制 | ||
|
||
| 类型 | 最大限制 | | ||
|:----------|:----------| | ||
| CHAR | 256 字符 | | ||
| BINARY | 256 字节 | | ||
| VARBINARY | 65535 字节 | | ||
| VARCHAR | 16383 字符 | | ||
| TEXT | 6MB 字节 | | ||
| BLOB | 6MB 字节 | | ||
|
||
## SQL Statements 的限制 | ||
|
||
| 类型 | 最大限制 | | ||
|:----------|:----------| | ||
| 单个事务最大语句数 | 在使用乐观事务并开启事务重试的情况下,默认限制 5000,可通过 [`stmt-count-limit`](/tidb-configuration-file.md#stmt-count-limit) 调整 | | ||
--- | ||
title: TiDB 使用限制 | ||
--- | ||
|
||
# 使用限制 | ||
|
||
本文会将详细描述 TiDB 中常见的使用限制,包括:标识符长度,最大支持的数据库、表、索引、分区表、序列等的个数。 | ||
|
||
## 标识符长度限制 | ||
|
||
| 标识符类型 | 最大长度(字符)| | ||
|:---------|:--------------| | ||
| Database | 64 | | ||
| Table | 64 | | ||
| Column | 64 | | ||
| Index | 64 | | ||
| View | 64 | | ||
| Sequence | 64 | | ||
|
||
## Databases、Tables、Views、Connections 总个数限制 | ||
|
||
| 标识符类型 | 最大个数 | | ||
|:----------|:----------| | ||
| Databases | unlimited | | ||
| Tables | unlimited | | ||
| Views | unlimited | | ||
| Connections| unlimited| | ||
|
||
## 单个 Database 的限制 | ||
|
||
| 类型 | 最大限制 | | ||
|:----------|:----------| | ||
| Tables |unlimited | | ||
|
||
## 单个 Table 的限制 | ||
|
||
| 类型 | 最大限制(默认值) | | ||
|:----------|:------------------------------| | ||
| Columns | 默认为 1017,最大可调至 4096 | | ||
| Indexes | 默认为 64,最大可调至 512 | | ||
| Rows | 无限制 | | ||
| Size | 无限制 | | ||
| Partitions| 8192 | | ||
|
||
* Columns 的最大限制可通过 [`table-column-count-limit`](/tidb-configuration-file.md#table-column-count-limit-从-v50-版本开始引入) 修改。 | ||
* Indexes 的最大限制可通过 [`index-limit`](/tidb-configuration-file.md#index-limit-从-v50-版本开始引入) 修改。 | ||
|
||
## 单行的限制 | ||
|
||
| 类型 | 最大限制 | | ||
|:----------|:----------| | ||
| Size | 默认为 6MB,可通过 [`txn-entry-size-limit`](/tidb-configuration-file.md#txn-entry-size-limit-从-v4010-和-v500-版本开始引入) 配置项调整 | | ||
|
||
## 字符串类型限制 | ||
|
||
| 类型 | 最大限制 | | ||
|:----------|:----------| | ||
| CHAR | 256 字符 | | ||
| BINARY | 256 字节 | | ||
| VARBINARY | 65535 字节 | | ||
| VARCHAR | 16383 字符 | | ||
| TEXT | 6MB 字节 | | ||
| BLOB | 6MB 字节 | | ||
|
||
## SQL Statements 的限制 | ||
|
||
| 类型 | 最大限制 | | ||
|:----------|:----------| | ||
| 单个事务最大语句数 | 在使用乐观事务并开启事务重试的情况下,默认限制 5000,可通过 [`stmt-count-limit`](/tidb-configuration-file.md#stmt-count-limit) 调整 | |