Skip to content

Instantly share code, notes, and snippets.

@ideawu
Last active December 11, 2020 06:06
Show Gist options
  • Select an option

  • Save ideawu/a47cb30c2d25c98d23dfd779d4ef88cd to your computer and use it in GitHub Desktop.

Select an option

Save ideawu/a47cb30c2d25c98d23dfd779d4ef88cd to your computer and use it in GitHub Desktop.
数据库事务的一致性

比较难理解. 是指事务完成后, 结果必须和预期一致, 不能产生非期望的后果. 例如, 期望将某个数据修改为 1, 但最后得到的结果却是 30, 不符合预期, 和预期不一致.

结果是可预测的, 唯一的. 无论重放多少次, 结果都一样.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment