Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Concurrency control method and device

A control method and control device technology, applied in the database field, can solve problems such as low transaction control concurrency and poor system performance, and achieve the effect of improving concurrency and concurrency control effect

Active Publication Date: 2009-12-30
ZTE CORP
View PDF0 Cites 35 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] The present invention aims to provide a concurrency control method and device, which can solve the concurrency control method in the related art so that all other concurrent transactions that request to operate on the same database record enter the waiting queue until the locked transaction is executed and the lock is released After that, other concurrent transactions can operate on the database again, resulting in low concurrency of transaction control and poor system performance.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Concurrency control method and device
  • Concurrency control method and device
  • Concurrency control method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments.

[0029] figure 1 A flow chart of a concurrency control method according to a first embodiment of the present invention is shown, and the method includes the following steps:

[0030] Step S101, judge whether there is a lock conflicting with the lock to be granted in the position to be operated of the transaction according to the lock relationship table, and the lock relationship table is used to store the relationship between the transaction and the lock;

[0031] Step S102, granting a lock to the transaction according to the judgment result, and executing the transaction;

[0032] Step S103 , when the execution of the transaction ends, the locks held by the transaction are released, and among the released locks, the locks that do not need to continue to wait are granted to other concurrent transactions.

[0033] In this embodiment,...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a concurrency control method, which comprises the following steps: judging whether locks conflicted with locks to be granted exist at a position of a transaction to be operated according to a lock relation table which is used for storing the relation of the transaction and the locks; granting the locks to the transaction according to a judgment result, and executing the transaction; and when the execution of the transaction is finished, releasing the locks held by the transaction, and granting the locks not needing continuously waiting in the released locks to other concurrency transactions. The invention also provides a concurrency control device, which comprises a judgment module, an execution module and a release module. The method solves the problems of low concurrency and poor system performance of transaction control by a concurrency method in related technology so as to improve the concurrency of the transaction control and concurrency control effect.

Description

technical field [0001] The present invention relates to the field of databases, in particular to a concurrency control method and device. Background technique [0002] The database is a shared resource, and there may be multiple concurrently executing transactions in the database system at the same time. When multiple users access the database concurrently, it will cause multiple transactions to access the same database at the same time. For example, transactions T1 and T2 may have the following three conflicts during concurrent execution: [0003] 1) WR (Write / Read, write-read) conflict, that is, T2 reads data that has just been modified by T1 and has not yet been committed, so that T2 reads dirty data, also known as "dirty read"; [0004] 2) RW (Read / Write, read-write) conflict, that is, T2 modifies the data just read by T1 and T1 has not yet ended, so if T1 reads the same object again, its value will change, also known as "impossible repeat read"; [0005] 3) WW (Writ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F9/526G06F17/30362G06F16/2343
Inventor 印和平常二鹏卢勤元丁奇鹏陈河堆
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products