Skip to content

Commit e5cee2d

Browse files
authored
sql: update tidb_batch_insert/delete autocommit (#462)
* sql: update tidb_batch_insert autocommit Via: pingcap/docs-cn#721 * sql: update tidb_batch_insert autocommit
1 parent 469800b commit e5cee2d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/tidb-specific.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,15 @@ If you need to set the global variable, run:
128128

129129
- Scope: SESSION | GLOBAL
130130
- Default value: 0
131-
- This variable is used to set whether to divide the inserted data automatically.
131+
- This variable is used to set whether to divide the inserted data automatically. It is valid only when `autocommit` is enabled.
132132
- When inserting a large amount of data, you can set the variable value to true. Then the inserted data is automatically divided into multiple batches and each batch is inserted by a single transaction.
133133

134134
### tidb_batch_delete
135135

136136
- Scope: SESSION | GLOBAL
137137
- Default value: 0
138-
- This variable is used to set whether to divide the data for deletion automatically.
139-
- When deleting a large amount of data, you can set the variable value to true. Then the data for deletion is automatically divided into multiple batches and each batch is deleted by a single transaction.
138+
- This variable is used to set whether to divide the data for deletion automatically. It is valid only when `autocommit` is enabled.
139+
- When deleting a large amount of data, you can set the variable value to true. Then the data for deletion is automatically divided into multiple batches and each batch is deleted by a single transaction.
140140

141141
### tidb_dml_batch_size
142142

0 commit comments

Comments
 (0)