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

Transaction identifier processing method and device and electronic equipment

A technology of transaction identification and processing method, which is applied in the field of transaction identification processing methods, devices and electronic equipment, which can solve the problems that cannot meet the continuous increase of transaction identification, and achieve the effects of reducing generation frequency, increasing high availability, and high efficiency

Pending Publication Date: 2021-01-15
BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF0 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In a distributed database system, distributed transactions need to be uniquely identified, and if each server node in the system independently obtains the transaction ID by using the database auto-increment primary key, many duplicate transaction IDs will be generated, which cannot satisfy the global transaction ID requirements. ever-increasing demand

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 identifier processing method and device and electronic equipment
  • Transaction identifier processing method and device and electronic equipment
  • Transaction identifier processing method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. the embodiment. 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.

[0028] Considering that the acquisition of transaction identifiers by means of database self-incrementing primary keys cannot meet the problem of continuously increasing transaction identifiers in distributed database systems, the embodiments of the present invention provide a transaction identifier processing method, device, and electronic equipment. The technology can be applied to...

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 transaction identifier processing method and device and electronic equipment, and relates to the technical field of computers. The method comprises the steps of receiving an acquisition request of a client for a transaction identifier; reading a transaction identifier currently pointed by a queue pointer from a preset first queue, and moving the queue pointer according toa preset step length, so that the queue pointer points to a next transaction identifier in the first queue, wherein a plurality of sequentially increasing transaction identifiers are pre-stored in thefirst queue; and returning the read transaction identifier to the client. According to the embodiment of the invention, a plurality of transaction identifiers which are sequentially increased are generated in advance and stored in the queue, and when the transaction identifier acquisition request of the client is received, the transaction identifiers are sequentially read from the queue and returned to the client, so that the transaction identifiers provided for the client are continuously increased, and the mode can meet the requirement of the client for the continuously increasing transaction identifier.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a transaction identification processing method, device and electronic equipment. Background technique [0002] The database auto-increment primary key means that the value of the id field is set to auto-increment when designing the table, so that when inserting a row of data, there is no need to specify the id, but the id value of the previous field is automatically increased by 1 for filling. For example, in a MySQL database, the sql statement AUTO_INCREMENT can be used to enable auto-increment assignment for a specific field, and the atomicity of the field can be guaranteed by using the auto-increment id as the primary key. [0003] In a distributed database system, distributed transactions need to be uniquely identified, and if each server node in the system independently obtains the transaction ID by using the database auto-increment primary key, many duplicate tran...

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): G06F9/46
CPCG06F9/466
Inventor 邱海港
Owner BEIJING KINGSOFT CLOUD NETWORK TECH 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