Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion benchmark/sysbench-v4.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ This test aims to test the performance of TiDB 3.0 Beta on NVMe SSD.

## Test version, time, and place

TiDB version: 3.0 Beta
TiDB version: 3.0 Beta

Time: February, 2019

Place: Beijing

## Test environment
Expand Down
7 changes: 2 additions & 5 deletions sql/transaction-isolation.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ The MySQL Repeatable Read isolation level is not the snapshot isolation level. T

## Transaction retry

Transactions that fail may automatically be retried by TiDB, which may lead to lost updates. This feature can be disabled by setting both `tidb_disable_txn_auto_retry=TRUE` and `tidb_retry_limit = 0`.

In addition, you can control the number of retries by configuring the `retry-limit` parameter:
Transactions that fail may automatically be retried by TiDB, which may lead to lost updates. This feature can be disabled by setting `tidb_retry_limit = 0`.

```
[performance]
Expand Down Expand Up @@ -97,10 +95,9 @@ Example 2:

Under the automatic retry mechanism of TiDB, all the executed statements for the first time are re-executed again. Whether the subsequent statements are to be executed or not depends on the results of the previous statements, automatic retry can violate snapshot isolation, causing lost updates.

To disable the automatic retry of explicit transactions, configure the `tidb_disable_txn_auto_retry` and `tidb_retry_limit` variables:
To disable the automatic retry of explicit transactions, configure the `tidb_retry_limit` variable:

```sql
SET GLOBAL tidb_disable_txn_auto_retry = TRUE;
SET GLOBAL tidb_retry_limit = 0;
```

Expand Down
2 changes: 1 addition & 1 deletion sql/transaction-model.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Similarly, functions such as `GET_LOCK()` and `RELEASE_LOCK()` and statements su

### Transaction retry

By default, transactions that fail may automatically be retried by TiDB, which may lead to lost updates. This feature can be disabled by setting both `tidb_disable_txn_auto_retry = TRUE` and `tidb_retry_limit = 0`.
By default, transactions that fail may automatically be retried by TiDB, which may lead to lost updates. This feature can be disabled by setting `tidb_retry_limit = 0`.

### Large transactions

Expand Down