此内容没有您所选择的语言版本。
11.4. Optimistic Concurrency Control
11.4.1. About Optimistic Concurrency Control 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
The only approach that is consistent with high concurrency and high scalability, is optimistic concurrency control with versioning. Version checking uses version numbers, or timestamps, to detect conflicting updates and to prevent lost updates. Hibernate provides three possible approaches to writing application code that uses optimistic concurrency. The use cases we discuss are in the context of long conversations, but version checking also has the benefit of preventing lost updates in single database transactions.