ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

What is a database transaction?

2022-07-13 15:33:38  阅读:42  来源: 互联网

标签:What transaction database system doesn state committed change


  A transaction is a way of representing a state change. Transactions ideally have four properties, commonly known as ACID:
  • Atomic (if the change is committed, it happens in one fell swoop; you can never see "half a change")
  • Consistent (the change can only happen if the new state of the system will be valid; any attempt to commit an invalid change will fail, leaving the system in its previous valid state)
  • Isolated (no-one else sees any part of the transaction until it's committed)
  • Durable (once the change has happened - if the system says the transaction has been committed, the client doesn't need to worry about "flushing" the system to make the change "stick")

See the Wikipedia ACID entry for more details.

Although this is typically applied to databases, it doesn't have to be. (In particular, see Software Transactional Memory.)

标签:What,transaction,database,system,doesn,state,committed,change
来源: https://www.cnblogs.com/kungfupanda/p/16474053.html

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有