Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion statistics.md
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ When you run the `ANALYZE` statement, you can adjust the concurrency using the f

#### `tidb_build_stats_concurrency`

Currently, when you run the `ANALYZE` statement, the task is divided into multiple small tasks. Each task only works on one column or index. You can use the `tidb_build_stats_concurrency` parameter to control the number of simultaneous tasks. The default value is `4`.
This variable controls the concurrency for building statistics during manual `ANALYZE`, such as the number of table or partition analysis tasks that can be processed simultaneously. The default value is `4`.

#### `tidb_distsql_scan_concurrency`

Expand Down
10 changes: 5 additions & 5 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,8 @@ MPP is a distributed computing framework provided by the TiFlash engine, which a
- Scope: SESSION | GLOBAL
- Persists to cluster: Yes
- Default value: `1`
- This variable specifies the concurrency of reading and writing statistics for a partitioned table when TiDB analyzes the partitioned table.
- Range: `[1, 18446744073709551615]`
- For manual and auto `ANALYZE`, this variable controls the concurrency for saving `ANALYZE` results, including writing TopN and histograms to system tables.

### tidb_analyze_version <span class="version-mark">New in v5.1.0</span>

Expand Down Expand Up @@ -1028,7 +1029,7 @@ MPP is a distributed computing framework provided by the TiFlash engine, which a
- Type: Integer
- Default value: `1`
- Range: `[1, 256]`
- This variable is used to set the concurrency of executing the automatic update of statistics.
- This variable controls the concurrency for building statistics during auto `ANALYZE`, such as the number of table or partition analysis tasks that can be processed simultaneously.

### tidb_backoff_lock_fast

Expand Down Expand Up @@ -1124,8 +1125,7 @@ MPP is a distributed computing framework provided by the TiFlash engine, which a
- Default value: `4`
- Range: `[1, 256]`
- Unit: Threads
- This variable is used to set the concurrency of executing the `ANALYZE` statement.
- When the variable is set to a larger value, the execution performance of other queries is affected.
- This variable controls the concurrency for building statistics during manual `ANALYZE`, such as the number of table or partition analysis tasks that can be processed simultaneously.

### tidb_capture_plan_baselines <span class="version-mark">New in v4.0</span>

Expand Down Expand Up @@ -3225,7 +3225,7 @@ For a system upgraded to v5.0 from an earlier version, if you have not modified
- Scope: SESSION | GLOBAL
- Persists to cluster: Yes
- Default value: `1`
- This variable specifies the concurrency of merging statistics for a partitioned table when TiDB analyzes the partitioned table.
- This variable controls the concurrency for merging TopN results of partitioned tables.

### tidb_metric_query_range_duration <span class="version-mark">New in v4.0</span>

Expand Down
Loading