Skip to content

Commit

Permalink
sql: update tidb_ddl_reorg_priority and format
Browse files Browse the repository at this point in the history
  • Loading branch information
lilin90 committed Sep 12, 2018
1 parent 9c4905f commit d8a1c1b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sql/tidb-specific.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,35 +318,35 @@ TiDB 在 MySQL 的基础上,定义了一些专用的系统变量和语法用
这个变量用来设置是否禁用显式事务自动重试,设置为 1 时,不会自动重试,如果遇到冲突需要在应用层重试。
是否需要禁用自动重试,请参考[自动重试的风险](./transaction-isolation.md#乐观事务注意事项)

## tidb_enable_table_partition
### tidb_enable_table_partition

作用域:SESSION

默认值:0

这个变量用来设置是否开启 TABLE PARTITION 特性。

## tidb_backoff_lock_fast
### tidb_backoff_lock_fast

作用域:SESSION | GLOBAL

默认值:100

这个变量用来设置读请求遇到锁的 backoff 时间。

## tidb_ddl_reorg_worker_cnt
### tidb_ddl_reorg_worker_cnt

作用域: SESSION | GLOBAL

默认值:16

这个变量用来设置 DDL 操作 re-organize 阶段的并发度。

## tidb_ddl_reorg_priority
### tidb_ddl_reorg_priority

作用域:SESSION | GLOBAL

默认值:PRIORITY_NORMAL
默认值:PRIORITY_LOW

这个变量用来设置 `ADD INDEX` 操作 re-organize 阶段的执行优先级,可设置为 PRIORITY_LOW/PRIORITY_NORMAL/PRIORITY_HIGH。

Expand Down

0 comments on commit d8a1c1b

Please sign in to comment.