Skip to content

Instantly share code, notes, and snippets.

@ideawu
Created December 21, 2020 09:51
Show Gist options
  • Save ideawu/05bf35f150c1e34d9c7ae3815db6c646 to your computer and use it in GitHub Desktop.
Save ideawu/05bf35f150c1e34d9c7ae3815db6c646 to your computer and use it in GitHub Desktop.
事务与MVCC

除了维护对象的多个版本, 还要维护每一个版本在其它地方的引用. 例如, 对象有 score 属性, 按 score 维护了一个排序列表. 那么, 每一个版本都要按版本的 score, 在排序列表中创建一个 shadow.

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