Skip to content

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

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

ti-chi-bot[bot] merged 4 commits into
pingcap:masterfrom
doc-claw-bot:docs-cn/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)

  • Update tidb-limitations.md to add MEDIUMTEXT, LONGTEXT, MEDIUMBLOB, LONGBLOB, and JSON to the data type limits table.
  • Clarify that values larger than 65,535 bytes are 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 (in Chinese).

  • 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

  • 文档
    • 更新数据类型限制表,分别列出单个值的大小限制和单行数据大小限制,并补充 MEDIUMTEXT、LONGTEXT、MEDIUMBLOB、LONGBLOB 和 JSON。
    • 说明单行数据限制默认为 6 MiB,最高可调整至 120 MiB,并可通过 txn-entry-size-limit 调整。
    • 补充 TEXT 和 BLOB 的大小限制与 MySQL 对应类型一致;超过 65,535 字节的值应使用更大的类型。

@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. 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/from-docs This PR is translated from a PR in pingcap/docs. labels Oct 22, 2026
@ti-chi-bot ti-chi-bot Bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 22, 2026
@doc-claw-bot doc-claw-bot removed the missing-translation-status This PR does not have translation status info. label Oct 22, 2026
@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

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
Walkthrough

文档将原有最大限制列拆分为数据类型大小限制和单行大小限制,并新增多种数据类型。文档还补充 TEXT、BLOB 的大小说明及单行限制配置方式。

Changes: 数据类型单行大小限制

Layer / File(s) Summary
更新数据类型限制说明
tidb-limitations.md
数据类型表新增 MEDIUMTEXT、LONGTEXT、MEDIUMBLOB、LONGBLOB 和 JSON。单行大小限制默认为 6 MiB,最大可调整至 120 MiB,并可通过 txn-entry-size-limit 调整。文档说明 TEXT 和 BLOB 的大小限制与 MySQL 对应类型一致;超过 65,535 字节的值应使用更大的类型。

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

Change: Other

Possibly related PRs

  • pingcap/docs-cn#21830:说明除调整 TiDB 的 txn-entry-size-limit 外,还需调整 TiKV 的 raftstore.raft-entry-max-size。
  • pingcap/docs-cn#21834:将相同的 TiKV 行大小限制说明 cherry-pick 到 release-8.5 分支。

Suggested reviewers: qiancai

Merge Risk: Low · up to 9eee3

The new note on raising the single-row size limit omits two related settings. Users who raise only txn-entry-size-limit toward 120 MiB can still hit max_allowed_packet or txn-total-size-limit failures. Adding both prerequisites to the note is a small fix, and nothing else blocks the merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed 标题“docs: clarify large-value type limits in TiDB limitations”与变更内容相符。变更更新 tidb-limitations.md,新增 MEDIUMTEXT、LONGTEXT、MEDIUMBLOB、LONGBLOB 和 JSON 等类型,并说明大值类型的大小限制。标题简洁、具体,能说明主要变更。
Description check Passed 描述基本完整。已填写“变更内容”部分,说明新增数据类型及大值限制与 txn-entry-size-limit 的关系。已勾选适用版本(master 和 v8.5)并提供相关参考链接。已标记 AI 代理参与情况。主要缺口:“变更内容”部分未说明变更原因,且未在“相关 PR 或文件链接”中列出代码变更 PR(该项不适用时可留空)。模板中的 CLA 复选框未勾选,首次贡献者需确认是否适用。
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.
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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

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-cn/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 687ac095-2254-4165-a8e6-dd3913580e92
📥 Commits

Reviewing files that changed from the base of the PR and between 7df856d and 10c6c79.

📒 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
@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
Contributor

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-cn/.coderabbit.yaml
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: ad0ecf86-5e4d-4dae-bbeb-df6602a0ed7a
📥 Commits

Reviewing files that changed from the base of the PR and between 10c6c79 and 5bce595.

📒 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 self-assigned this Nov 19, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 5bce595 and 9eee3ca.

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
@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:45.081419509 +0000 UTC m=+609869.073672062: ☑️ 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
@qiancai

qiancai commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

/retest

@ti-chi-bot
ti-chi-bot Bot merged commit c7c68df 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: #22131

If you need to push to the cherry-pick branch, comment /cherry-pick-invite on #22131 to be invited as a collaborator of the ti-chi-bot/docs-cn 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/from-docs This PR is translated from a PR in pingcap/docs. type/bugfix This PR fixes a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants