每次数据库调用需要一个新会话和事务。
与内存中的操作相比较,数据库调用的性能是非常低的。
Performance of database calls, when compared to in-memory operations, is very slow.
这是数据库调用乐观(optimistic)锁的简单方式。
This represents a simplified form of what the database world calls optimistic locking.
应用推荐