首页> 外国专利> CONCURRENCY CONTROL METHOD OF DATABASE TRANSACTION COMBINING OPTIMISTIC LOCK AND PESSIMISTIC LOCK

CONCURRENCY CONTROL METHOD OF DATABASE TRANSACTION COMBINING OPTIMISTIC LOCK AND PESSIMISTIC LOCK

机译:数据库事务的并发控制方法结合乐观锁和悲观锁定

摘要

A concurrency control method of database transaction combining an optimistic lock and a pessimistic lock includes: integrating a lock in each fragment in a storage range, using a lock table globally, and recording a lock status of the each fragment in the lock table; before reading a data object of a fragment in the storage range, first querying in the lock table whether the data object of the fragment is locked by other reading-writing transactions; if the data object of the fragment is locked by other reading-writing transactions, blocking the current reading operation, and repeating the current reading operation, and if the current reading operation is blocked for more than a given time limit, since the pessimistic lock is invalid, intervening by the optimistic lock, and continuing reading the single row data of the current fragment.
机译:组合乐观锁和悲观锁的数据库事务的并发控制方法包括:将锁定在存储范围内的每个片段中,使用全局锁定表,并记录锁定表中的每个片段的锁定状态; 在读取存储范围内的片段的数据对象之前,首先在锁定表中查询碎片的数据对象是否被其他阅读写入交易锁定; 如果片段的数据对象被其他读写事务锁定,则阻止当前读取操作,并重复当前读取操作,并且如果当前读取操作被阻止超过给定的时间限制,因为悲观锁是 无效,通过乐观锁存干预,并继续读取当前片段的单行数据。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号