Skip to content

docs: clarify large-value type limits in TiDB limitations - #24528

Merged
ti-chi-bot[bot] merged 3 commits into
pingcap:masterfrom
doc-claw-bot:docs/fix-limitations-large-types-20261022
Dec 4, 2026
Merged

ti-chi-bot[bot] merged 3 commits into
pingcap:masterfrom
doc-claw-bot:docs/fix-limitations-large-types-20261022

Conversation

@doc-claw-bot

@doc-claw-bot doc-claw-bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

What is changed, added, or deleted? (Required)

  • Expand the tidb-limitations.md data type table to include MEDIUMTEXT, LONGTEXT, MEDIUMBLOB, LONGBLOB, and JSON.
  • Clarify that values larger than 65,535 bytes are still supported through the larger text and blob types, and that the actual stored value size is bounded by the single-row size limit controlled by txn-entry-size-limit.

Which TiDB version(s) do your changes apply to? (Required)

Tips for choosing the affected version(s):

By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.

For details, see tips for choosing the affected versions.

  • master (the latest development version)
  • v9.0 (TiDB 9.0 versions)
  • v8.5 (TiDB 8.5 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)

What is the related PR or file link(s)?

AI agent involvement

  • The changes in this PR were primarily made by an AI agent on behalf of the PR author.

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

Summary by CodeRabbit

  • Documentation
    • Added separate reference columns for maximum value sizes and the single-row size limit across supported data types.
    • Listed the single-row limit as 6 MiB by default, adjustable up to 120 MiB.
    • Expanded the table to include MEDIUMTEXT, LONGTEXT, MEDIUMBLOB, LONGBLOB, and JSON; JSON’s limit is not separately specified.
    • Clarified that TEXT and BLOB limits match MySQL, recommended larger types for values over 65,535 bytes, and noted that both individual values and the entire row must meet their respective limits.

@ti-chi-bot ti-chi-bot Bot added contribution This PR is from a community contributor. missing-translation-status This PR does not have translation status info. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 22, 2026
@doc-claw-bot doc-claw-bot added type/bugfix This PR fixes a bug. area/general Relates to TiDB overview, architecture, and other general descriptions. needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR. labels Oct 22, 2026
@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Explain Change →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The limitations documentation updates the data type limits table and explains how per-value limits relate to the single-row limit.

Changes: Data type size limits

Layer / File(s) Summary
Document single-row size limits
tidb-limitations.md
The table lists separate per-value and single-row limits. It adds MEDIUMTEXT, LONGTEXT, MEDIUMBLOB, LONGBLOB, and JSON. The note describes the 6 MiB default single-row limit, its 120 MiB maximum, and the txn-entry-size-limit setting.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: qiancai

Merge Risk: Minimal · up to 9c080

This documentation update clarifies data type size limits and how they relate to the single-row limit. It does not change runtime behavior, and no merge-blocking risk is identified.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change, which is clarifying large-value type limits in the TiDB limitations documentation. The PR adds MEDIUMTEXT, LONGTEXT, MEDIUMBLOB, LONGBLOB, and JSON to the data type li…
Description check Passed The description fills in the 'What is changed' section with two bullets that list the new data types and the clarification about values above 65,535 bytes and txn-entry-size-limit. It also fills in th…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change, which is clarifying large-value type limits in the TiDB limitations documentation. The PR adds MEDIUMTEXT, LONGTEXT, MEDIUMBLOB, LONGBLOB, and JSON to the data type limits table and explains the single-row size limit for values above 65,535 bytes. The title is concise, specific, and matches the changeset.

Full details: Description check

Explanation

The description fills in the 'What is changed' section with two bullets that list the new data types and the clarification about values above 65,535 bytes and txn-entry-size-limit. It also fills in the affected versions (master and v8.5), the AI agent involvement checkbox, and related reference links. The first-time contributor checklist and the 'Do your changes match' checkboxes are left unchecked. The template does not require these to be completed, and the CLA checkbox state is not confirmed in the description. The 'What is the related PR or file link(s)' section leaves the code change PR and translation fields blank, which is acceptable for a docs-only change. The description is mostly complete.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingcap/docs
  • Branch: master
  • File: .coderabbit.yaml
  • Commit: 54e4545
  • Layers: Repository YAML
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 84f2364a-792c-4bbe-a071-3067b5fb8c57
Commits

Reviewing files that changed from the base of the PR and between bc51830 and 9c080ba.

Files selected for processing: 1

  • tidb-limitations.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@ti-chi-bot ti-chi-bot Bot removed the missing-translation-status This PR does not have translation status info. label Oct 22, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository: pingcap/docs/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: b12cce03-7862-4892-b74c-61e5dfb72bc1
📥 Commits

Reviewing files that changed from the base of the PR and between 54e4545 and 29285d8.

📒 Files selected for processing: 1
  • tidb-limitations.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Comment thread tidb-limitations.md Resolved
Comment thread tidb-limitations.md Outdated
Comment on lines +90 to +93
| MEDIUMTEXT | Single-row size limit: 6 MiB by default, adjustable to 120 MiB via `txn-entry-size-limit` |
| LONGTEXT | Single-row size limit: 6 MiB by default, adjustable to 120 MiB via `txn-entry-size-limit` |
| MEDIUMBLOB | Single-row size limit: 6 MiB by default, adjustable to 120 MiB via `txn-entry-size-limit` |
| LONGBLOB | Single-row size limit: 6 MiB by default, adjustable to 120 MiB via `txn-entry-size-limit` |

@qiancai qiancai Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| MEDIUMTEXT | Single-row size limit: 6 MiB by default, adjustable to 120 MiB via `txn-entry-size-limit` |
| LONGTEXT | Single-row size limit: 6 MiB by default, adjustable to 120 MiB via `txn-entry-size-limit` |
| MEDIUMBLOB | Single-row size limit: 6 MiB by default, adjustable to 120 MiB via `txn-entry-size-limit` |
| LONGBLOB | Single-row size limit: 6 MiB by default, adjustable to 120 MiB via `txn-entry-size-limit` |
| MEDIUMTEXT | Maximum size for a single value: 16,777,215 bytes; single-row size limit: 6 MiB by default, adjustable to 120 MiB via `txn-entry-size-limit` |
| LONGTEXT | Maximum size for a single value: 4,294,967,295 bytes; single-row size limit: 6 MiB by default, adjustable to 120 MiB via `txn-entry-size-limit` |
| MEDIUMBLOB | Maximum size for a single value: 16,777,215 bytes; single-row size limit: 6 MiB by default, adjustable to 120 MiB via `txn-entry-size-limit` |
| LONGBLOB | Maximum size for a single value: 4,294,967,295 bytes; single-row size limit: 6 MiB by default, adjustable to 120 MiB via `txn-entry-size-limit` |

Comment thread tidb-limitations.md Outdated

> **Note:**
>
> The `TEXT` and `BLOB` limits in the preceding table match the corresponding MySQL type limits. To store values larger than 65,535 bytes, use `MEDIUMTEXT`, `LONGTEXT`, `MEDIUMBLOB`, or `LONGBLOB`. The size of `JSON` values is also bounded by the single-row size limit.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> The `TEXT` and `BLOB` limits in the preceding table match the corresponding MySQL type limits. To store values larger than 65,535 bytes, use `MEDIUMTEXT`, `LONGTEXT`, `MEDIUMBLOB`, or `LONGBLOB`. The size of `JSON` values is also bounded by the single-row size limit.
> The `TEXT` and `BLOB` limits in the preceding table match the corresponding MySQL type limits. To store values larger than 65,535 bytes, use `MEDIUMTEXT`, `LONGTEXT`, `MEDIUMBLOB`, or `LONGBLOB`. The size of `JSON` values is also subject to the single-row size limit.

@ti-chi-bot ti-chi-bot Bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Oct 22, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository: pingcap/docs/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 4beed652-eb6f-4055-9b9a-75b2494310f4
📥 Commits

Reviewing files that changed from the base of the PR and between 29285d8 and bc51830.

📒 Files selected for processing: 1
  • tidb-limitations.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

Comment thread tidb-limitations.md Resolved
@qiancai

qiancai commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

/cc @joechenrh

@ti-chi-bot

ti-chi-bot Bot commented Nov 20, 2026

Copy link
Copy Markdown

@qiancai: GitHub didn't allow me to request PR reviews from the following users: joechenrh.

Note that only pingcap members and repo collaborators can review this PR, and authors cannot review their own PRs.

Details

In response to this:

/cc @joechenrh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ti-chi-bot

ti-chi-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown

@joechenrh: adding LGTM is restricted to approvers and reviewers in OWNERS files.

Details

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@ti-chi-bot ti-chi-bot Bot added the needs-1-more-lgtm Indicates a PR needs 1 more LGTM. label Dec 4, 2026
@ti-chi-bot

ti-chi-bot Bot commented Dec 4, 2026

Copy link
Copy Markdown

[LGTM Timeline notifier]

Timeline:

  • 2026-12-04 06:02:48.157739559 +0000 UTC m=+609872.149992122: ☑️ agreed by qiancai.

@qiancai

qiancai commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

/approve

@qiancai qiancai added the lgtm label Dec 4, 2026
@ti-chi-bot

ti-chi-bot Bot commented Dec 4, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: qiancai

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot added the approved label Dec 4, 2026
@qiancai qiancai added the ONCALL Relates to documentation oncall. label Dec 4, 2026
@ti-chi-bot
ti-chi-bot Bot merged commit 4a63df9 into pingcap:master Dec 4, 2026
12 checks passed
@qiancai

qiancai commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

/cherry-pick release-8.5

@ti-chi-bot

ti-chi-bot Bot commented Dec 4, 2026

Copy link
Copy Markdown

@qiancai: new pull request created: #24801

If you need to push to the cherry-pick branch, comment /cherry-pick-invite on #24801 to be invited as a collaborator of the ti-chi-bot/docs fork.

Details

In response to this:

/cherry-pick release-8.5

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved area/general Relates to TiDB overview, architecture, and other general descriptions. contribution This PR is from a community contributor. lgtm needs-1-more-lgtm Indicates a PR needs 1 more LGTM. needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. ONCALL Relates to documentation oncall. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. translation/done This PR has been translated from English into Chinese and updated to pingcap/docs-cn in a PR. type/bugfix This PR fixes a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants