Optimistic Lock & Pessimistic Lock Back

  • Optimistic Lock(樂觀鎖): 指的是數據庫樂觀認為你取數據時不會修改數據,因此不會在你讀取數據的時候對關鍵區上鎖. 當你讀取數據後,數據庫會判斷數據是否產生更改.
  • Pessimistic Lock(悲觀鎖): 指的是數據庫悲觀認為你取數據時會修改數據,因此會在你讀取數據時對關鍵區上鎖,保證其他用戶讀取數據時不會進入關鍵區讀取錯誤數據.
Empty Comments
Sign in GitHub

As the plugin is integrated with a code management system like GitLab or GitHub, you may have to auth with your account before leaving comments around this article.

Notice: This plugin has used Cookie to store your token with an expiration.