-
Notifications
You must be signed in to change notification settings - Fork 681
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
faq, sql: Document tidb_force_priority #645
Changes from 4 commits
2e5c6c7
05ce0ac
40fdc90
4b78666
0e6a730
c29e5fd
0492492
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,6 +157,14 @@ Same as the "run-ddl" startup option | |
- Default: true | ||
- When you execute `join` on tables without any conditions on both sides, the statement can be run by default. But if you set the value to `false`, the server does not run such `join` statement. | ||
|
||
### force-priority | ||
|
||
- The default priority for statements | ||
- Default: `NO_PRIORITY` | ||
- TiDB supports the priorities `LOW_PRIORITY`, `NO_PRIORITY`, `HIGH_PRIORITY` and `DELAYED` for statements. One use case for changing the priority, is you may choose to dedicated a pool of servers for OLAP queries and set the value to `LOW_PRIORITY` to ensure that TiKV servers will provide priority to OLTP workloads which are routed to a different pool of TiDB servers. This helps ensure more uniform OLTP performance at the risk of slightly slower OLAP performance. | ||
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. TiDB supports the priorities (I delete a space before "One" and "This".) 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. It's better to use a union priority order, how about
or
|
||
|
||
Note that TIDB will automatically set table scans to `LOW_PRIORITY` and overwriting priority on a per-statement basis is possible by using the `HIGH PRIORITY` or `LOW PRIORITY` [dml modifier](dml.md). | ||
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. - TiDB will automatically set table scans to |
||
|
||
### join-concurrency | ||
|
||
- The goroutine number when the `join-concurrency` runs `join` | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -282,6 +282,13 @@ set @@global.tidb_distsql_scan_concurrency = 10 | |
- This variable is used to set the priority of executing the `ADD INDEX` operation in the `re-organize` phase. | ||
- You can set the value of this variable to `PRIORITY_LOW`, `PRIORITY_NORMAL` or `PRIORITY_HIGH`. | ||
|
||
### tidb_force_priority | ||
|
||
- Scope: SESSION | GLOBAL | ||
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. It is a session-only variable though it works on the server level. |
||
- Default value: `NO_PRIORITY` | ||
- This variable is used to change the default priority for statements executed on a TiDB server. A use case is to ensure that a particular user (or TiDB server) that is performing OLAP queries receives lower priority than users performing OLTP queries. | ||
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.
|
||
- You can set the value of this variable to `PRIORITY_LOW`, `NO_PRIORITY` or `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. It's better to use
tidb_force_priority uses SQL priority options as its available values which is not the same as tidb_ddl_reorg_priority does. |
||
|
||
## Optimizer Hint | ||
|
||
On the basis of MySQL’s `Optimizer Hint` Syntax, TiDB adds some proprietary `Hint` syntaxes. When using the `Hint` syntax, the TiDB optimizer will try to use the specific algorithm, which performs better than the default algorithm in some scenarios. | ||
|
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 delete the extra space before "Priority".