Skip to content

Commit

Permalink
*: remove the limit on single column data size (pingcap#13949) (pingc…
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-chi-bot authored Jun 21, 2023
1 parent d2098af commit ce6941f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions data-type-string.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ 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 on a single row in TiDB](/tidb-limitations.md#limitation-on-a-single-row), the maximum storage size of a single row in TiDB is 6 MB.

```sql
LONGTEXT [CHARACTER SET charset_name] [COLLATE collation_name]
Expand Down Expand Up @@ -110,7 +110,7 @@ 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 `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 row in TiDB](/tidb-limitations.md#limitation-on-a-single-row), the maximum storage size of a single row in TiDB is 6 MB.

```sql
LONGBLOB
Expand Down
6 changes: 0 additions & 6 deletions tidb-limitations.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@ This document describes the common usage limitations of TiDB, including the maxi
|:----------|:----------|
| Size | 6 MB by default. You can adjust the size limit via the [`txn-entry-size-limit`](/tidb-configuration-file.md#txn-entry-size-limit-new-in-v4010) configuration item. |

## Limitation on a single column

| Type | Upper limit |
|:----------|:----------|
| Size | 6 MB |

## Limitations on string types

| Type | Upper limit |
Expand Down

0 comments on commit ce6941f

Please sign in to comment.