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

Database transaction request processing method, related equipment and storage medium

A request processing and database technology, applied in the computer field, can solve the problems of not being able to make full use of the idle resources of the database system, not conducive to improving the transaction throughput rate of the database system, and increasing the workload of MySQL users, etc.

Pending Publication Date: 2020-12-15
TENCENT TECH (SHENZHEN) CO LTD
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The implementation of the above-mentioned related technologies needs to change the SQL syntax, which increases the workload of the MySQL user. If the user wants to use the hot data row function, the SQL statement of the original application needs to be changed to provide the SQL statement that meets the above-mentioned functional syntax format; in addition, because MySQL The user needs to provide the primary key of the hot data row, so the perception of the hot data row needs to be done by the user, which means that the user program needs to allocate some system resources to count which data rows are hot, for example, an additional key-value cache system is needed to Store information such as the access frequency and primary key of data rows in the database, and at the same time need to update and maintain these information in real time as hot spots change, which greatly increases the maintenance cost of database users; and at the server layer, locks are used to update transaction requests for hot data rows Serialization reduces the concurrency between updating transactions for the same hot data row, and cannot make full use of idle resources of the database system, which is not conducive to improving the transaction throughput rate of the database system under high concurrency

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
  • Database transaction request processing method, related equipment and storage medium
  • Database transaction request processing method, related equipment and storage medium
  • Database transaction request processing method, related equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0056] It should be noted that the terms "first" and "second" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrate...

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 discloses a transaction request processing method of a database, related equipment and a storage medium. The method comprises the steps of receiving an update transaction request for a first data line in the database; if the first hot line update waiting queue of the first data line exists in the storage engine, writing the update transaction request into the first hot line update waiting queue; if the first hot line update waiting queue corresponding to the first data line does not exist in the storage engine, determining the queue length of a first line lock waiting queue corresponding to the first data line in the storage engine; when the queue length of the first row lock waiting queue exceeds a preset length threshold, creating a corresponding first hot row update waiting queue for the first data row in the storage engine, and writing the update transaction request into the first hot row update waiting queue; and in response to a preset trigger signal, adding the update transaction request in the first hot line update waiting queue into the first line lock waiting queue. According to the invention, the transaction throughput rate of the database system under thehigh concurrency condition is improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a database transaction request processing method, related equipment and storage media. Background technique [0002] In the database system, when a large number of concurrent transactions issue update operations on the same data row in the database, the data row becomes a hot data row. In order to ensure the transaction throughput rate of the database system under high concurrency conditions, current limiting processing is generally performed on update transaction requests for hot data rows. [0003] Taking the relational database system MySQL as an example, in related technologies, by adding SQL hotspot data row update hint syntax, MySQL users can provide the primary key of the hotspot data row when submitting SQL statements (that is, transaction requests), and MySQL receives the hint of the hotspot data row After the SQL statement, extract the primary key of the hot data row...

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): G06F16/23
CPCG06F16/2308
Inventor 赖铮周信静
Owner TENCENT TECH (SHENZHEN) CO LTD
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