From 4d696ab993ae5a281a381375cfd2bdb1a6edaa34 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 d633d18708aee..9c91b9b890cde 100644
--- a/tidb-configuration-file.md
+++ b/tidb-configuration-file.md
@@ -156,7 +156,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 ce01a81623c56c3a994cbb7abee1c6d62b34c62c 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 9c91b9b890cde..607ea91347e39 100644
--- a/tidb-configuration-file.md
+++ b/tidb-configuration-file.md
@@ -158,10 +158,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 1af5fe3cc1ccd71e40174b93a1eebb7771427578 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 607ea91347e39..2f0855dda0168 100644
--- a/tidb-configuration-file.md
+++ b/tidb-configuration-file.md
@@ -156,12 +156,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 1dd87a811112c6cff4333722507b40aacadf0cfa Mon Sep 17 00:00:00 2001
From: Grace Cai
Date: Thu, 11 Sep 2025 13:48:03 +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 2f0855dda0168..10f4f18410bdc 100644
--- a/tidb-configuration-file.md
+++ b/tidb-configuration-file.md
@@ -156,13 +156,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