TiDB Limitations
This document describes the common usage limitations of TiDB, including the maximum identifier length and the maximum number of supported databases, tables, indexes, partitioned tables, and sequences.
Limitations on identifier length
Limitations on the total number of databases, tables, views, and connections
Limitations on a single database
Limitations on a single table
- The upper limit of
Columnscan be modified viatable-column-count-limit. - The upper limit of
Indexescan be modified viaindex-limit.
Limitation on a single row
You can adjust the size limit via the txn-entry-size-limit configuration item.
Limitations on indexes
The maximum index length is 3072 bytes, equivalent to 768 characters using 4-byte UTF-8 encoding. The maximum number of columns in a single index is limited to 16.
You can adjust this limit using the max-index-length configuration item.
Limitations on data types
Limitations on SQL statements
You can modify the limit via the stmt-count-limit configuration item.
Limitations on TiKV version
In your cluster, if the version of the TiDB component is v6.2.0 or later, the version of TiKV must be v6.2.0 or later.