Skip to content

Commit

Permalink
Update optimistic-transaction: remove reference to being "default" (p…
Browse files Browse the repository at this point in the history
…ingcap#4035) (pingcap#4036)

* cherry pick pingcap#4035 to release-3.0

Signed-off-by: ti-srebot <ti-srebot@pingcap.com>

* Update optimistic-transaction.md

Co-authored-by: JoyinQ <56883733+Joyinqin@users.noreply.github.com>
Co-authored-by: Keke Yi <40977455+yikeke@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 24, 2020
1 parent 6e5465b commit 7cb4eef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimistic-transaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ aliases: ['/docs-cn/v3.0/reference/transactions/transaction-optimistic/','/docs-

本文介绍 TiDB 乐观事务的原理,以及相关特性。本文假定你对 [TiDB 的整体架构](/architecture.md)[Percolator](https://www.usenix.org/legacy/event/osdi10/tech/full_papers/Peng.pdf) 事务模型以及事务的 [ACID 特性](/glossary.md#acid)都有一定了解。

TiDB 默认使用乐观事务模型,不会出现读写冲突,所有的读操作都不会被写操作阻塞。对于写写冲突,只有在客户端执行 `COMMIT` 时,才会触发两阶段提交并检测是否存在写写冲突
TiDB 的乐观事务模型只有在两阶段事务提交时才会检测是否存在写写冲突

> **注意:**
>
Expand Down Expand Up @@ -174,4 +174,4 @@ scheduler-concurrency = 2048000

## 更多阅读

- [Percolator 和 TiDB 事务算法](https://pingcap.com/blog-cn/percolator-and-txn/)
- [Percolator 和 TiDB 事务算法](https://pingcap.com/blog-cn/percolator-and-txn/)

0 comments on commit 7cb4eef

Please sign in to comment.