-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql: add some new tidb specific system variables #852
Merged
Merged
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f579487
sql: add some new tidb specific system variables
XuHuaiyu 307bcab
address comment
XuHuaiyu 247736d
address comment
XuHuaiyu 50187a7
Merge branch 'master' of https://github.com/pingcap/docs-cn into tidb…
XuHuaiyu d57158c
address comment
XuHuaiyu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,6 +136,30 @@ TiDB 在 MySQL 的基础上,定义了一些专用的系统变量和语法用 | |
|
||
这个变量用来设置顺序 scan 操作的并发度,AP 类应用适合较大的值,TP 类应用适合较小的值。 | ||
|
||
### tidb_projection_concurrency | ||
|
||
作用域:SESSION | GLOBAL | ||
|
||
默认值:4 | ||
|
||
这个变量用来设置 Projection 算子的并发度。 | ||
|
||
### tidb_hashagg_partial_concurrency | ||
|
||
作用域:SESSION | GLOBAL | ||
|
||
默认值:4 | ||
|
||
这个变量用来设置并行 hash aggregation 算法 partial 阶段的执行并发度。对于聚合函数参数不为 distinct 的情况,HashAgg 分为 partial 和 final 阶段分别并行执行。 | ||
|
||
### tidb_hashagg_final_concurrency | ||
|
||
作用域:SESSION | GLOBAL | ||
|
||
默认值:4 | ||
|
||
这个变量用来设置并行 hash aggregation 算法 final 阶段的执行并发度。对于聚合函数参数不为 distinct 的情况,HashAgg 分为 partial 和 final 阶段分别并行执行。 | ||
|
||
### tidb_index_join_batch_size | ||
|
||
作用域:SESSION | GLOBAL | ||
|
@@ -294,6 +318,37 @@ TiDB 在 MySQL 的基础上,定义了一些专用的系统变量和语法用 | |
这个变量用来设置是否禁用显式事务自动重试,设置为 1 时,不会自动重试,如果遇到冲突需要在应用层重试。 | ||
是否需要禁用自动重试,请参考[自动重试的风险](./transaction-isolation.md#乐观事务注意事项) | ||
|
||
## tidb_enable_table_partition | ||
|
||
作用域:SESSION | ||
|
||
默认值:0 | ||
|
||
这个变量用来设置是否开启 TABLE PARTITION 特性。 | ||
|
||
## tidb_backoff_lock_fast | ||
|
||
作用域:SESSION | GLOBAL | ||
|
||
默认值:100 | ||
|
||
这个变量用来设置读请求遇到锁的 backoff 时间 | ||
|
||
## tidb_ddl_reorg_worker_cnt | ||
|
||
作用域: SESSION | GLOBAL | ||
|
||
默认值:16 | ||
|
||
这个变量用来设置 DDL 操作 re-organize 阶段的并发度。 | ||
|
||
## tidb_ddl_reorg_priority | ||
|
||
作用域:SESSION | GLOBAL | ||
|
||
默认值:PRIORITY_NORMAL | ||
|
||
这个变量用来设置 ADD INDEX 操作 re-organize 阶段的执行优先级, 可设置为 PRIORITY_LOW/PRIORITY_NORMAL/PRIORITY_HIGH。 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
## Optimizer Hint | ||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add a period in the end of the sentence, to keep it consistent with others.