Skip to content

Commit 88d8a40

Browse files
authored
Update TiDB configuration max-index-length (pingcap#21751) (pingcap#21761)
1 parent fe15366 commit 88d8a40

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tidb-configuration-file.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,13 @@ The TiDB configuration file supports more options than command-line parameters.
138138
- Sets the maximum allowable length of the newly created index.
139139
- Default value: `3072`
140140
- Unit: byte
141-
- 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.
141+
- Range: `[3072, 3072*4]`
142+
- Compatibility:
143+
- MySQL: the maximum index length is fixed at 3072 bytes.
144+
- Earlier versions of TiDB:
145+
- v3.0.7 and earlier: the maximum index length is fixed at 3072 × 4 bytes.
146+
- v3.0.8 ~ v3.0.10: the maximum index length is fixed at 3072 bytes.
147+
- v3.0.11 and later versions: TiDB introduces the `max-index-length` configuration item to ensure compatibility with different TiDB versions and with MySQL.
142148

143149
### `table-column-count-limit` <span class="version-mark">New in v5.0</span>
144150

0 commit comments

Comments
 (0)