From b0f11021be958a0706f3d6c59382f8ced07cccda Mon Sep 17 00:00:00 2001
From: Frank945946 <108602632+Frank945946@users.noreply.github.com>
Date: Thu, 11 Sep 2025 10:37:30 +0800
Subject: [PATCH 1/3] Update TiDB configuration max-index-length
---
tidb-configuration-file.md | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/tidb-configuration-file.md b/tidb-configuration-file.md
index 2d18402dbf506..3578056447da8 100644
--- a/tidb-configuration-file.md
+++ b/tidb-configuration-file.md
@@ -157,7 +157,12 @@ The TiDB configuration file supports more options than command-line parameters.
- Sets the maximum allowable length of the newly created index.
- Default value: `3072`
- Unit: byte
-- Currently, the valid value range is `[3072, 3072*4]`. MySQL and TiDB (version < v3.0.11) do not have this configuration item, but both limit the length of the newly created index. This limit in MySQL is `3072`. In TiDB (version =< 3.0.7), this limit is `3072*4`. In TiDB (3.0.7 < version < 3.0.11), this limit is `3072`. This configuration is added to be compatible with MySQL and earlier versions of TiDB.
+- Value range: `[3072, 3072*4]`
+- Version history:
+- - MySQL: The maximum index length is fixed at 3072 Bytes.
+- - TiDB v3.0.7 and earlier: The limit is 3072 × 4 Bytes.
+- - TiDB v3.0.8 ~ v3.0.10: The limit is 3072 Bytes.
+- - TiDB v3.0.11 and later: Introduced the `max-index-length` configuration option to ensure compatibility with different TiDB versions and MySQL.
### `table-column-count-limit` New in v5.0
From f557c6bba7e83b281ff7aab76b73cc2d9873cfb9 Mon Sep 17 00:00:00 2001
From: Frank945946 <108602632+Frank945946@users.noreply.github.com>
Date: Thu, 11 Sep 2025 11:01:39 +0800
Subject: [PATCH 2/3] Apply suggestions from code review
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
---
tidb-configuration-file.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tidb-configuration-file.md b/tidb-configuration-file.md
index 3578056447da8..bfff5ec1d90af 100644
--- a/tidb-configuration-file.md
+++ b/tidb-configuration-file.md
@@ -159,10 +159,10 @@ The TiDB configuration file supports more options than command-line parameters.
- Unit: byte
- Value range: `[3072, 3072*4]`
- Version history:
-- - MySQL: The maximum index length is fixed at 3072 Bytes.
-- - TiDB v3.0.7 and earlier: The limit is 3072 × 4 Bytes.
-- - TiDB v3.0.8 ~ v3.0.10: The limit is 3072 Bytes.
-- - TiDB v3.0.11 and later: Introduced the `max-index-length` configuration option to ensure compatibility with different TiDB versions and MySQL.
+- - MySQL: The maximum index length is fixed at 3072 bytes.
+- - TiDB v3.0.7 and earlier: The limit is 3072 * 4 bytes.
+- - TiDB v3.0.8 ~ v3.0.10: The limit is 3072 bytes.
+- - TiDB v3.0.11 and later: Introduces the `max-index-length` configuration option to ensure compatibility with different TiDB versions and MySQL.
### `table-column-count-limit` New in v5.0
From bd4b12e3396b40ee5da8b4c9322077a8c4caabe7 Mon Sep 17 00:00:00 2001
From: Grace Cai
Date: Thu, 11 Sep 2025 11:50:02 +0800
Subject: [PATCH 3/3] sync with zh
---
tidb-configuration-file.md | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/tidb-configuration-file.md b/tidb-configuration-file.md
index bfff5ec1d90af..9cd4e13d88a1b 100644
--- a/tidb-configuration-file.md
+++ b/tidb-configuration-file.md
@@ -157,12 +157,13 @@ The TiDB configuration file supports more options than command-line parameters.
- Sets the maximum allowable length of the newly created index.
- Default value: `3072`
- Unit: byte
-- Value range: `[3072, 3072*4]`
-- Version history:
-- - MySQL: The maximum index length is fixed at 3072 bytes.
-- - TiDB v3.0.7 and earlier: The limit is 3072 * 4 bytes.
-- - TiDB v3.0.8 ~ v3.0.10: The limit is 3072 bytes.
-- - TiDB v3.0.11 and later: Introduces the `max-index-length` configuration option to ensure compatibility with different TiDB versions and MySQL.
+- Range: `[3072, 3072*4]`
+- Compatibility:
+ - MySQL: the maximum index length is fixed at 3072 bytes.
+ - Earlier versions of TiDB:
+ - v3.0.7 and earlier: the maximum index length is fixed at 3072 × 4 bytes.
+ - v3.0.8 ~ v3.0.10: the maximum index length is fixed at 3072 bytes.
+ - v3.0.11 and later versions: introduces the `max-index-length` configuration item to ensure compatibility with different TiDB versions and with MySQL.
### `table-column-count-limit` New in v5.0