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

Deterministic concurrency control method and system based on pre-transaction processing

A transaction processing and control method technology, applied in the field of distributed concurrency control, can solve problems such as high index overhead, low single-threaded scheduling performance, and limited transaction types, so as to improve performance, avoid blocking transaction execution, and avoid additional overhead. Effect

Active Publication Date: 2019-11-29
SHANGHAI JIAO TONG UNIV
View PDF7 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At the same time, deterministic locks need to apply for fine-grained locks for all read and write sets of transactions, and the index overhead of locks is large, which further leads to low performance of single-thread scheduling
[0007] 2. Limit the concurrency of transactions
Deterministic locks use locks to ensure that all transactions that may conflict cannot be executed in parallel. Therefore, this conservative scheduling method causes transactions that could have been parallelized to have to wait for one party, resulting in a decline in overall transaction processing performance.
[0008] 3. Transaction types are limited
Therefore, the previous work on the transaction scheduling of deterministic databases is not comprehensive, and there is still a certain gap

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
  • Deterministic concurrency control method and system based on pre-transaction processing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] The present invention will be described in detail below in conjunction with specific embodiments. The following examples will help those skilled in the art to further understand the present invention, but do not limit the present invention in any form. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0050] According to a deterministic concurrency control method for pre-transaction processing provided by the present invention, when a client initiates a request, it will send the transaction to be executed to the server storing the required data. According to the concurrency control method, after receiving the transaction sent by the client, the server will assign a unique identifier to the transaction, which is used to determine the global execution sequence for the transaction. This concurrency cont...

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 deterministic concurrency control method and a system based on pre-transaction processing, and the method comprises the steps: fully improving the expandability and performance of transaction processing on the basis of deterministic transaction processing through enabling the execution of a transaction to be before the scheduling of the transaction; ensuring the correctness of affair execution through verification and re-execution; satisfying the deterministic execution of the affairs through explicit waiting, and each affair is ensured to be re-executed once at most;using multi-version data storage, so that read-only transactions are prevented from blocking transaction processing; by recording the address of the data required by the transaction, accelerating there-execution after the transaction verification fails. Compared with the prior art, the method has the advantages that the concurrency of transactions can be fully utilized, and the transaction processing capacity of a deterministic database is greatly improved; data information collected during transaction execution can be reused to accelerate transaction scheduling; and the complete read-write set of the transaction is determined without an additional mechanism, so that additional performance overhead in the prior art is avoided.

Description

technical field [0001] The present invention relates to the field of distributed concurrency control, in particular to a deterministic concurrency control method and system based on pre-transaction processing. Background technique [0002] In order to cope with the explosive data growth of the Internet, distributed databases are widely used in different fields, and the requirements for database performance and distributed scalability are getting higher and higher. In recent years, the concept of deterministic databases has been proposed. This type of database system predetermines the global execution order for transactions, and ensures that transactions are executed in this order on each server. Compared with the traditional distributed database, each server of the deterministic database can independently reach a consensus on whether to commit the transaction, and does not need to use the distributed commit protocol to ensure the atomicity of the transaction commit, avoidin...

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
IPC IPC(8): G06F9/46G06F9/48G06F16/2453
CPCG06F16/24532G06F9/466G06F9/4843
Inventor 王肇国徐海宁董致远陈海波臧斌宇管海兵
Owner SHANGHAI JIAO TONG UNIV
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