Transaction execution method, apparatus, computer equipment and storage medium

An execution method and transaction technology, applied in the database field, can solve problems affecting transaction execution concurrency, transaction rollback, and affecting distributed database system transaction execution efficiency, etc., to achieve the effect of improving transaction execution efficiency and concurrency

Active Publication Date: 2022-08-05
TENCENT TECH (SHENZHEN) CO LTD +1
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since write-write conflicts are common in high-concurrency scenarios, the constraint mechanism of the concurrency control algorithm on write-write conflicts will greatly affect the concurrency of transaction execution, resulting in the rollback of a large number of transactions in the distributed database system, affecting the distributed database system. transaction execution efficiency

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
  • Transaction execution method, apparatus, computer equipment and storage medium
  • Transaction execution method, apparatus, computer equipment and storage medium
  • Transaction execution method, apparatus, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053] In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0054] In this application, the terms "first", "second" and other words are used to distinguish the same or similar items with basically the same function and function, and it should be understood that between "first", "second" and "nth" There are no logical or timing dependencies, and no restrictions on the number and execution order.

[0055] In this application, the term "at least one" refers to one or more, and the meaning of "plurality" refers to two or more, for example, a plurality of first positions refers to two or more first positions.

[0056] Before introducing the embodiments of the present application, it is necessary to introduce some basic concepts in database technology:

[0057] The fact database

[0058] The database ...

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 present application discloses a transaction execution method, device, computer equipment and storage medium, which belong to the technical field of databases. Based on the target time period, the present application obtains at least one active transaction whose submission time is within the target time period, detects whether the read set of the target transaction has an intersection with the write set of the at least one active transaction, and obtains the detection result. According to the detection result, Determine the transaction status information of the target transaction. The transaction status information is used to indicate the execution status corresponding to the detection result. When writing the target transaction globally, the transaction status information of the target transaction is stored, and the write-write conflict is still performed. However, regardless of whether the detection result indicates that there is a conflict, it does not affect the global writing of the target transaction, which improves the concurrency of transaction execution in the database system and improves the transaction execution efficiency in the database system.

Description

technical field [0001] The present application relates to the technical field of databases, and in particular, to a transaction execution method, apparatus, computer equipment and storage medium. Background technique [0002] With the development of database technology, distributed database systems have gradually become popular in order to adapt to business scenarios such as big data and cloud computing. Concurrency control algorithms used in distributed database systems generally do not allow write-write conflicts (write-write conflicts refer to two different transactions performing write operations on the same data item), and the concurrency control algorithm will use a rollback or delay mechanism. To block write-write conflict transaction commits. Since write-write conflicts are common in high concurrency scenarios, the concurrency control algorithm's constraint mechanism on write-write conflicts will greatly affect the concurrency of transaction execution, resulting in ...

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 Patents(China)
IPC IPC(8): G06F16/23
CPCG06F16/2329G06F16/2358
Inventor 李海翔卢卫赵展浩杜小勇潘安群
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products