A transaction locking method, device, equipment, medium and product in a database

By acquiring and creating logical lock chains and physical locks, the problem of sequential locking during parallel database transactions is solved, enabling concurrent execution of multiple threads and improving transaction concurrency efficiency.

CN122412431APending Publication Date: 2026-07-17SHANGHAI DAMENG DATABASE

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHANGHAI DAMENG DATABASE
Filing Date
2026-06-01
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

When database transactions are executed in parallel, the sequential execution of multiple threads due to the need to access the same lock chain can lead to a locking problem, which affects the efficiency of concurrent transaction execution.

Method used

By acquiring the logical lock chain and the current locking mode, it is determined whether the first physical lock exists as a lock of the specified type. If it does not exist, the specified physical lock is searched for or created in the global lock resources, and the corresponding logical lock is created for the thread to avoid locking through the transaction critical section.

Benefits of technology

It implements concurrent execution blocking of multiple transaction threads, avoiding mutual blocking between threads and improving the efficiency of concurrent transaction execution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122412431A_ABST
    Figure CN122412431A_ABST
Patent Text Reader

Abstract

本发明公开一种数据库中事务封锁方法、装置、设备、介质及产品。包括:获取逻辑锁链和本次封锁模式;若第一物理锁中存在指定类型的第一物理锁,且第一逻辑锁中不存在指定类型的第一逻辑锁,则引用第一物理锁,为线程创建本次封锁模式下的第二逻辑锁;若第一物理锁中不存在指定类型的第一物理锁,则在全局锁资源中查找是否存在指定类型的第二物理锁;若存在指定类型的第二物理锁,则引用第二物理锁,为线程创建本次封锁模式下的第二逻辑锁;若不存在指定类型的第二物理锁,则创建指定类型的第三物理锁,并引用第三物理锁,为线程创建本次封锁模式下的第二逻辑锁;根据第二逻辑锁,完成本次对数据对象的事务封锁。提高事务并发时的执行效率。
Need to check novelty before this filing date? Find Prior Art