Skip to content

master: correct stats variable defaults#21731

Open
qiancai wants to merge 4 commits into
pingcap:masterfrom
qiancai:fix-stats-var-defaults-master-23115
Open

master: correct stats variable defaults#21731
qiancai wants to merge 4 commits into
pingcap:masterfrom
qiancai:fix-stats-var-defaults-master-23115

Conversation

@qiancai

@qiancai qiancai commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

What is changed, added or deleted? (Required)

Correct the documented default values for stats-related system variables:

  • tidb_auto_analyze_concurrency: 1 -> 3 starting from v8.5.7
  • tidb_auto_build_stats_concurrency: 1 -> 2 starting from v8.5.7
  • tidb_sysproc_scan_concurrency: 1 -> 4 starting from v8.5.7

Also update the statistics.md auto-analyze variable table so it is consistent with system-variables.md, and mention the upgrade behavior in the variable descriptions.

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

  • 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)
  • v6.1 (TiDB 6.1 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

@qiancai qiancai added area/planner Indicates that the Issue or PR belongs to the area of SQL planner or optimizer. translation/from-docs This PR is translated from a PR in pingcap/docs. labels Jun 24, 2026
@ti-chi-bot ti-chi-bot Bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 24, 2026
Synced from: pingcap/docs#23115
Target PR: pingcap#21731
AI Provider: azure

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Auto-sync completed successfully

Source PR: pingcap/docs#23115
Target PR: #21731

Chinese documentation has been updated based on English documentation changes.

@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 Jun 24, 2026
Comment thread system-variables.md Outdated
Comment thread system-variables.md Outdated
Comment thread system-variables.md Outdated
@qiancai qiancai added the needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. label Jun 24, 2026
@qiancai qiancai self-assigned this Jun 24, 2026
Comment thread system-variables.md Outdated
Comment thread system-variables.md Outdated
Comment thread system-variables.md Outdated
@ti-chi-bot

ti-chi-bot Bot commented Jun 24, 2026

Copy link
Copy Markdown

[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 ask for approval from qiancai. 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

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

Labels

area/planner Indicates that the Issue or PR belongs to the area of SQL planner or optimizer. needs-cherry-pick-release-8.5 Should cherry pick this PR to release-8.5 branch. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant