learning-transaction

command module
v0.0.0-...-bfe6062 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

README

learning-transaction

it is a simple transaction test

  1. 正常情況下,交易只針對資料的隔離性做處理,也就是讀取的部分, 如果要防止寫入還是要靠 lock
  2. 當 rows 被select for update 鎖住的時候,如果要針對這筆資料做寫入的動作, 必須要等 for update 的鎖被解除

Reference: http://www.asktheway.org/2020/04/12/261/ https://blog.xuite.net/vexed/tech/22289223-%E7%94%A8+SELECT+...+FOR+UPDATE+%E9%81%BF%E5%85%8D+Race+condition

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL