Skip to content

Commit

Permalink
tidb-limitations: add index length limitation (#19684) (#19685)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Jan 24, 2025
1 parent 89219f6 commit 0f2f20e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tidb-limitations.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ summary: TiDB 中的使用限制包括标识符长度限制、数据库、表、
|:----------|:----------|
| Size | 默认为 6 MiB,可通过 [`txn-entry-size-limit`](/tidb-configuration-file.md#txn-entry-size-limit-从-v4010-和-v500-版本开始引入) 配置项调至 120 MiB |

## 索引的限制

索引的最大长度为 3072 字节,相当于使用 4 字节 UTF-8 编码时的 768 个字符。

你可以通过 [`max-index-length`](/tidb-configuration-file.md#max-index-length) 配置项调整此限制。

## 数据类型限制

| 类型 | 最大限制 |
Expand Down

0 comments on commit 0f2f20e

Please sign in to comment.