Skip to content

docs: add TiDB Cloud Essential/Premium limitations and defaults for transaction variables#21645

Closed
ekexium wants to merge 5 commits into
pingcap:release-8.5from
ekexium:doc/tidb-x-vars-68388
Closed

docs: add TiDB Cloud Essential/Premium limitations and defaults for transaction variables#21645
ekexium wants to merge 5 commits into
pingcap:release-8.5from
ekexium:doc/tidb-x-vars-68388

Conversation

@ekexium
Copy link
Copy Markdown
Member

@ekexium ekexium commented May 18, 2026

What is changed, added or deleted? (Required)

补充 TiDB Cloud Essential 和 TiDB Cloud Premium 在事务相关变量和配置项上的限制及默认值差异:

  • tidb_dml_type:TiDB Cloud Essential 和 TiDB Cloud Premium 只支持 "standard",不支持 "bulk",因此不能通过该变量启用 Pipelined DML。
  • tidb_replica_read:TiDB Cloud Essential 和 TiDB Cloud Premium 只支持 leader,其他读取模式会被拒绝。
  • tidb_txn_assertion_level:TiDB Cloud Essential 和 TiDB Cloud Premium 的默认值为 STRICT
  • pessimistic-auto-commit:TiDB Cloud Essential 和 TiDB Cloud Premium 的默认值为 true,其他 TiDB 集群仍保持现有的 false 默认值。

同时在 Pipelined DML 和 Follower Read 文档中补充对应限制。

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

  • master (the latest development version)
  • v8.5 (TiDB 8.5 versions)
  • v8.4 (TiDB 8.4 versions)
  • v8.3 (TiDB 8.3 versions)
  • v8.2 (TiDB 8.2 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)
  • v6.1 (TiDB 6.1 versions)
  • v5.4 (TiDB 5.4 versions)
  • v5.3 (TiDB 5.3 versions)

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

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

Validation

  • npx markdownlint-cli system-variables.md tidb-configuration-file.md pipelined-dml.md follower-read.md
  • ./scripts/verify-links.sh
  • ./scripts/verify-link-anchors.sh

@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented May 18, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@ti-chi-bot ti-chi-bot Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 18, 2026
@ti-chi-bot
Copy link
Copy Markdown

ti-chi-bot Bot commented May 18, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign lichunzhu for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found 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 missing-translation-status This PR does not have translation status info. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 18, 2026
@ekexium ekexium marked this pull request as ready for review May 18, 2026 06:46
Copilot AI review requested due to automatic review settings May 18, 2026 06:46
@ti-chi-bot ti-chi-bot Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 18, 2026
@ekexium ekexium requested review from cfzjywxk and qiancai May 18, 2026 06:47
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

本 PR 为 TiDB v8.5 文档补充 TiDB X 在事务相关系统变量与配置项上的默认值差异与功能限制说明,避免用户在 TiDB X 上按普通 TiDB 的方式配置导致误解或配置被拒绝。

Changes:

  • 在系统变量文档中补充 TiDB X 对 tidb_dml_typetidb_replica_read 的限制,以及 tidb_txn_assertion_level 的默认值差异。
  • 在配置文件文档中补充 pessimistic-auto-commit 在 TiDB X 的默认值差异说明。
  • 在 Pipelined DML 与 Follower Read 专题文档中补充 TiDB X 不支持/受限的提示。

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
tidb-configuration-file.md 补充 pessimistic-auto-commit 在 TiDB X 的默认值说明。
system-variables.md 补充 TiDB X 对 tidb_dml_type/tidb_replica_read 的限制与 tidb_txn_assertion_level 默认值差异。
pipelined-dml.md 在使用限制中注明 TiDB X 不支持 Pipelined DML 及其启用方式不可用。
follower-read.md 增加 TiDB X 仅支持 leader 读取模式的注意事项。

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tidb-configuration-file.md Outdated
+ 对于不存在冲突的场景,如果有大量自动提交事务(例如自动提交事务数量占业务数量的比例超过一半甚至更多,需要根据实际情况分析)且单个事务操作数据量较大的情况下,开启该配置项会造成性能回退。例如,自动提交的 `INSERT INTO SELECT` 语句。
+ 当 SESSION 级系统变量 [`tidb_dml_type`](/system-variables.md#tidb_dml_type-从-v800-版本开始引入) 设置为 `"bulk"` 时,在该 SESSION 中,该配置项的效果等同于设置为 `false`。
+ 默认值:false
+ 在 TiDB X 中,该配置项的默认值为 true。普通 TiDB 的默认值仍为 false。
Comment thread system-variables.md Outdated
Comment on lines +5670 to +5674
- 默认值:`FAST`
- 可选值:`OFF`,`FAST`,`STRICT`
- 这个变量用于设置 assertion 级别。assertion 是一项在事务提交过程中进行的数据索引一致性校验,它对正在写入的 key 是否存在进行检查。如果不符则说明数据索引不一致,会导致事务 abort。详见[数据索引一致性报错](/troubleshoot-data-inconsistency-errors.md)。
- 对于新创建的 v6.0.0 及以上的集群,默认值为 `FAST`。对于升级版本的集群,如果升级前是低于 v6.0.0 的版本,升级后默认值为 `OFF`。
- 在 TiDB X 中,该变量的默认值为 `STRICT`。
- 对于普通 TiDB,新创建的 v6.0.0 及以上的集群默认值为 `FAST`。对于升级版本的集群,如果升级前是低于 v6.0.0 的版本,升级后默认值为 `OFF`。
Comment thread follower-read.md Outdated

> **注意:**
>
> 在 TiDB X 中,不支持非 `leader` 读取模式,`tidb_replica_read` 仅可设置为 `leader`。如果设置为其他读取模式,设置会被拒绝。
@ekexium ekexium changed the title docs: add TiDB X limitations and defaults for transaction variables docs: add TiDB Cloud Essential and Premium limitations and defaults for transaction variables May 18, 2026
@ekexium ekexium changed the title docs: add TiDB Cloud Essential and Premium limitations and defaults for transaction variables docs: add TiDB Cloud Essential/Premium limitations and defaults for transaction variables May 18, 2026
@qiancai qiancai added the needs-cherry-pick-master Should cherry pick this PR to master branch. label May 18, 2026
@ekexium ekexium closed this May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

missing-translation-status This PR does not have translation status info. needs-cherry-pick-master Should cherry pick this PR to master branch. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants