Database object blocking method and device, equipment and storage medium
A database and object technology, applied in the field of database management, can solve the problems of dictionary blocking global concurrency conflicts and reducing the execution efficiency of database systems.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0025] Embodiment 1 of the present invention provides a method for locking a database object. The method can be executed by the locking device of the database object, wherein the device can be implemented by software and / or hardware, generally can be integrated in the database management equipment, and is suitable for dictionary locking of the database object before accessing the database object in the database Condition. figure 1 A schematic flow diagram of a method for locking database objects provided by Embodiment 1 of the present invention, as shown in figure 1 As shown, the blocking method of the database object includes:
[0026] S110. Obtain the current dictionary lock information table of the current transaction and the type information of the target dictionary lock that the current transaction needs to add to the current database object being accessed.
[0027] Specifically, when it is determined that the current transaction needs to access the current database obj...
Embodiment 2
[0049] figure 2 It is a schematic flowchart of a database object locking method provided by Embodiment 2 of the present invention. On the basis of the above embodiments, this embodiment optimizes "adding a target dictionary lock to the current database object according to the type information" as : Calling the global critical section object to create a target dictionary lock that matches the type information, marking the target dictionary lock as occupied, and adding the target dictionary lock to the global dictionary lock information table; adding the target dictionary lock A lock is added to the current dictionary lock information table, so as to lock the current database object with the target dictionary lock.
[0050] Further, before adding the target dictionary lock to the global dictionary lock information table, it also includes: determining that there is no target conflicting dictionary lock in an occupied state in the global dictionary lock information table, and the...
Embodiment 3
[0094] Embodiment 3 of the present invention provides a database object locking device. This device can be realized by software and / or hardware, and generally can be integrated in the database management equipment, is applicable to the situation that database object is carried out dictionary lock before accessing the database object in the database, can lock the database object by executing the lock method of database object to block. image 3 A schematic structural diagram of the locking device for database objects provided by Embodiment 3 of the present invention, as shown in image 3 As shown, the device includes an information acquisition module 301 and a lock determination module 302, wherein,
[0095] The information acquisition module 301 is used to obtain the current dictionary lock information table of the current transaction and the type information of the target dictionary lock that the current transaction needs to add to the current database object accessed;
[0...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


