Skip to content

Commit

Permalink
Update tidb_dml_batch_size section (#7371)
Browse files Browse the repository at this point in the history
  • Loading branch information
leowangpingcap committed Apr 14, 2022
1 parent f60198b commit 96ad458
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions system-variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,13 @@ MPP is a distributed computing framework provided by the TiFlash engine, which a

In the case of a poor network environment, appropriately increasing the value of this variable can effectively alleviate error reporting to the application end caused by timeout. If the application end wants to receive the error information more quickly, minimize the value of this variable.

### tidb_batch_insert

- Scope: SESSION
- Default value: `OFF`
- This variable permits `tidb_dml_batch_size` to be used in `INSERT` statements.
- Only the value `OFF` provides ACID compliance. Setting this to any other value breaks the atomicity and isolation guarantees of TiDB, because an individual `INSERT` statement will be split into smaller transactions.

### tidb_broadcast_join_threshold_count <span class="version-mark">New in v5.0</span>

- Scope: SESSION | GLOBAL
Expand Down Expand Up @@ -638,6 +645,7 @@ Constraint checking is always performed in place for pessimistic transactions (d
- Range: `[0, 2147483647]`
- Unit: Rows
- When this value is greater than `0`, TiDB will batch commit statements such as `INSERT` or `LOAD DATA` into smaller transactions. This reduces memory usage and helps ensure that the `txn-total-size-limit` is not reached by bulk modifications.
- To use `tidb_dml_batch_size` in `INSERT` statements, you also need to set the system variable `tidb_batch_insert` to `ON`.
- Only the value `0` provides ACID compliance. Setting this to any other value will break the atomicity and isolation guarantees of TiDB.

### tidb_enable_1pc <span class="version-mark">New in v5.0</span>
Expand Down

0 comments on commit 96ad458

Please sign in to comment.