From b5c95a310655e6a2c7bed14cd3531ea4628a96b2 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/4] 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 5424b16a0f13f..e8ff84a168d7f 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 b2c2d197b3512f06dab5d27937bcb2e5a8f2e827 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/4] 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 e8ff84a168d7f..55f425f91d1f0 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 a4e7469e247dbc80e7811259862bd5bf78dc69bc Mon Sep 17 00:00:00 2001
From: Grace Cai
Date: Thu, 11 Sep 2025 11:50:02 +0800
Subject: [PATCH 3/4] 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 55f425f91d1f0..56fc3be545922 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
From 7776f0c45fa7e0d5032dc718f0867f7c2126dabb Mon Sep 17 00:00:00 2001
From: Grace Cai
Date: Thu, 11 Sep 2025 13:47:56 +0800
Subject: [PATCH 4/4] Update tidb-configuration-file.md
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
---
tidb-configuration-file.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tidb-configuration-file.md b/tidb-configuration-file.md
index 56fc3be545922..ce6c6809211cb 100644
--- a/tidb-configuration-file.md
+++ b/tidb-configuration-file.md
@@ -157,13 +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
-- Range: `[3072, 3072*4]`
+- 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.
+ - v3.0.11 and later versions: TiDB 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