tidb: update tidb_index_serial_scan_concurrency docs#21938
tidb: update tidb_index_serial_scan_concurrency docs#219380xPoe wants to merge 21 commits intopingcap:masterfrom
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR updates documentation to reflect the deprecation of the tidb_index_serial_scan_concurrency variable. The variable is no longer modifiable, and its functionality has been replaced by tidb_executor_concurrency for sequential index scans and tidb_analyze_distsql_scan_concurrency for ANALYZE operations.
Key Changes:
- Deprecates
tidb_index_serial_scan_concurrencywith a warning that directs users to the replacement variables - Removes references to the deprecated variable from troubleshooting and performance benchmarking guides
- Updates configuration examples to use
tidb_analyze_distsql_scan_concurrencyinstead of the deprecated variables
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| system-variables.md | Adds deprecation warning and updates description to indicate the variable is kept for backward compatibility only |
| statistics.md | Consolidates documentation by removing the separate section for tidb_index_serial_scan_concurrency and updating tidb_analyze_distsql_scan_concurrency to note its expanded role |
| troubleshoot-tidb-oom.md | Removes deprecated variable from the list of concurrency controls for reducing memory usage |
| tidb-cloud/v8.5-performance-benchmarking-with-tpcc.md | Replaces deprecated variables with tidb_analyze_distsql_scan_concurrency in TPC-C test setup |
| tidb-cloud/v8.1-performance-benchmarking-with-tpcc.md | Replaces deprecated variables with tidb_analyze_distsql_scan_concurrency in TPC-C test setup |
| best-practices/tidb-best-practices.md | Updates reference from deprecated variable to tidb_executor_concurrency for controlling index scan behavior |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
f87d569 to
bb45b6d
Compare
0xPoe
left a comment
There was a problem hiding this comment.
🔢 Self-check (PR reviewed by myself and ready for feedback)
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/cc @terry1purcell |
|
@0xPoe: GitHub didn't allow me to request PR reviews from the following users: terry1purcell. Note that only pingcap members and repo collaborators can review this PR, and authors cannot review their own PRs. DetailsIn 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. |
fix: v8.1 fix: v8.5 fix: tidb_analyze_distsql_scan_concurrency fix: tidb_index_serial_scan_concurrency fix: fix: 8.1 fix: 8.5 fix: update links fix: update fix fix: typo fix: update fix: default value fix: update fix: update fix: update fix: update
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: 0xPoe <techregister@pm.me>
898ec85 to
7eebdb3
Compare
|
|
||
| #### `tidb_distsql_scan_concurrency` | ||
| Used to control the concurrency for saving analyze results (writing TopN and histograms to system tables). The default value is `2`. The default value is `1` for v7.4.0 and earlier versions. | ||
|
|
There was a problem hiding this comment.
Does tidb_analyze_partition_concurrency only take effect on partitioned tables, as "partition" is included in the variable name?
There was a problem hiding this comment.
No, it also affects other non-partitioned tables. The name is poor and confusing. We plan to merge and deprecate this in the near future.
[LGTM Timeline notifier]Timeline:
|
Co-authored-by: Grace Cai <qqzczy@126.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Co-authored-by: Grace Cai <qqzczy@126.com>
Co-authored-by: Grace Cai <qqzczy@126.com>
Co-authored-by: Grace Cai <qqzczy@126.com>
Co-authored-by: Grace Cai <qqzczy@126.com>
Co-authored-by: Grace Cai <qqzczy@126.com>
Co-authored-by: Grace Cai <qqzczy@126.com>
Co-authored-by: Grace Cai <qqzczy@126.com>
Co-authored-by: Grace Cai <qqzczy@126.com>
Co-authored-by: Grace Cai <qqzczy@126.com>
Co-authored-by: Grace Cai <qqzczy@126.com>
Co-authored-by: Grace Cai <qqzczy@126.com>
Co-authored-by: Grace Cai <qqzczy@126.com>
|
@winoros: adding LGTM is restricted to approvers and reviewers in OWNERS files. DetailsIn 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. |
First-time contributors' checklist
What is changed, added or deleted? (Required)
See: pingcap/tidb#64023
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.
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?