Column locking is useful for when you want to freeze a column or collection of columns while scrolling and reviewing data in the other columns.
当您想要在滚动或查看其他列数据时冻结一个或一组列时将会很有用。
In fact, with the exception of column c, every run with biased locking turned on ended up providing approximately the same boost in performance.
事实上,除了C列以外,每次运行时如果开启偏向锁最终都会提供大致相同的性能提升。
We add an extra integer column to the table for which optimistic locking is required; this holds a revision counter.
向要使用乐观锁定的表中添加一个额外的整数列;该列保存修订计数器。
The next statement tells Grails that the table does not have a version column. (GORM normally creates one to help facilitate optimistic locking.)
下一条语句通知Grails表没有version列(GORM通常会创建一个 version列来优化乐观锁定)。
Such a column is need for optimistic locking to implement long conversion (application transaction).
乐观锁需要这个字段来实现长对话(应用程序事务)[译注:session译为会话,conversion译为对话,以示区别]。
Optimistic locking will not work if Hibernate is not the sole database user, unless you create database triggers to increment the version column for the same data change by other applications.
如果Hibernate不是独占数据库用户,乐观锁会失效,除非创建数据库触发器为其他应用程序对相同数据的变更增加版本字段值。
Optimistic locking will not work if Hibernate is not the sole database user, unless you create database triggers to increment the version column for the same data change by other applications.
如果Hibernate不是独占数据库用户,乐观锁会失效,除非创建数据库触发器为其他应用程序对相同数据的变更增加版本字段值。
应用推荐