From 63f60f1c9035972e68691ca391581b60692fbc96 Mon Sep 17 00:00:00 2001 From: Ti Chi Robot Date: Wed, 21 Jun 2023 17:17:43 +0800 Subject: [PATCH] *: remove the limit on single column data size (#13949) (#13953) --- data-type-string.md | 22 ++++++++++++++++++++-- tidb-limitations.md | 6 ------ 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/data-type-string.md b/data-type-string.md index d06cedcf73d69..805a211710fe0 100644 --- a/data-type-string.md +++ b/data-type-string.md @@ -61,7 +61,16 @@ MEDIUMTEXT [CHARACTER SET charset_name] [COLLATE collation_name] ### `LONGTEXT` type -The `LONGTEXT` type is similar to the [`TEXT` type](#text-type). The difference is that the maximum column length of `LONGTEXT` is 4,294,967,295. But due to the [Limitation on a single column in TiDB](/tidb-limitations.md#limitation-on-a-single-column), the maximum storage size of a single column in TiDB is 6 MB. + + +The `LONGTEXT` type is similar to the [`TEXT` type](#text-type). The difference is that the maximum column length of `LONGTEXT` is 4,294,967,295. But due to the limitation of [`txn-entry-size-limit`](/tidb-configuration-file.md#txn-entry-size-limit-new-in-v50), the maximum storage size of a single row in TiDB is 6 MiB by default and can be increased to 120 MiB by changing the configuration. + + + + +The `LONGTEXT` type is similar to the [`TEXT` type](#text-type). The difference is that the maximum column length of `LONGTEXT` is 4,294,967,295. But due to the limitation of [`txn-entry-size-limit`](https://docs.pingcap.com/tidb/stable/tidb-configuration-file#txn-entry-size-limit-new-in-v50), the maximum storage size of a single row in TiDB is 6 MiB by default and can be increased to 120 MiB by changing the configuration. + + ```sql LONGTEXT [CHARACTER SET charset_name] [COLLATE collation_name] @@ -109,7 +118,16 @@ MEDIUMBLOB ### `LONGBLOB` type -The `LONGBLOB` type is similar to the [`BLOB` type](#blob-type). The difference is that the maximum column length of `LONGBLOB` is 4,294,967,295. But due to the [Limitation on a single column in TiDB](/tidb-limitations.md#limitation-on-a-single-column), the maximum storage size of a single column in TiDB is 6 MB. + + +The `LONGBLOB` type is similar to the [`BLOB` type](#blob-type). The difference is that the maximum column length of `LONGBLOB` is 4,294,967,295. But due to the limitation of [`txn-entry-size-limit`](/tidb-configuration-file.md#txn-entry-size-limit-new-in-v50), the maximum storage size of a single row in TiDB is 6 MiB by default and can be increased to 120 MiB by changing the configuration. + + + + +The `LONGBLOB` type is similar to the [`BLOB` type](#blob-type). The difference is that the maximum column length of `LONGBLOB` is 4,294,967,295. But due to the limitation of [`txn-entry-size-limit`](https://docs.pingcap.com/tidb/stable/tidb-configuration-file#txn-entry-size-limit-new-in-v50), the maximum storage size of a single row in TiDB is 6 MiB by default and can be increased to 120 MiB by changing the configuration. + + ```sql LONGBLOB diff --git a/tidb-limitations.md b/tidb-limitations.md index e3e66772c8feb..48d949e30dee6 100644 --- a/tidb-limitations.md +++ b/tidb-limitations.md @@ -62,12 +62,6 @@ You can adjust the size limit via the [`txn-entry-size-limit`](/tidb-configurati -## Limitation on a single column - -| Type | Upper limit | -|:----------|:----------| -| Size | 6 MB | - ## Limitations on string types | Type | Upper limit |