Unlock instant, AI-driven research and patent intelligence for your innovation.

Sequence generation method and device and electronic equipment

A sequence generation and sequence technology, applied in the database field, can solve problems such as sequence holes, no correspondence, and serial numbers without corresponding data, and achieve the effect of preventing sequence holes and reducing the number of interactions

Pending Publication Date: 2022-05-13
ZHEJIANG DAHUA TECH CO LTD
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the above process, since the number of serial numbers assigned to computing nodes by the service center is fixed each time, there may be cases where the assigned serial numbers do not have corresponding data, resulting in a sequence void
[0006] For example, after the server assigns serial numbers to the computing nodes according to the preset parameters, and adds the operation of inserting and canceling data, at this time, the assigned serial numbers do not have corresponding values, resulting in empty serial numbers.
For another example, the computing node inserts 15 data at a time, and the service center allocates 20 serial numbers. At this time, there will be 5 serial numbers without corresponding data among the 20 serial numbers allocated by the service center. When , the 5 serial numbers will not be used, and in this case there will also be a sequence empty situation

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
  • Sequence generation method and device and electronic equipment
  • Sequence generation method and device and electronic equipment
  • Sequence generation method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0059] In order to make the purpose, technical solution and advantages of the application clearer, the application will be further described in detail below in conjunction with the accompanying drawings. The specific operation methods in the method embodiments can also be applied to the device embodiments or system embodiments. It should be noted that in the description of the present application, "plurality" is understood as "at least two". "And / or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and / or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The connection between A and B can mean: A and B are directly connected and A and B are connected through C. In addition, in the description of the present application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicati...

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 sequence generation method and device and electronic equipment, and the method comprises the steps: judging whether a first sequence number set in an unused state exists in a first sequence management table or not when N pieces of new data are obtained; if yes, binding the N newly-added data with a first serial number in a first serial number set; and if not, binding the N newly-added data with the second serial number in the unused state in the second serial management table. According to the method, the serial numbers in the unused state in the computing nodes are preferentially used to bind the newly added data, and then the preset number of serial numbers distributed by the service center are fully utilized, so that sequence holes can be prevented on the premise of reducing the number of times of interaction with the service center.

Description

technical field [0001] The present application relates to the technical field of databases, in particular to a sequence generation method, device and electronic equipment. Background technique [0002] In a database system, it is usually necessary to globally uniquely identify IDs for a large amount of data, and at the same time ensure that each time a data is added, the value of the ID of the newly added data will also be "+1". At this time, by finding the largest ID number, that is The total amount of data in the database can be known. The above process is to generate an auto-increment sequence, and the ID number is the sequence number. In the distributed database scenario, since multiple nodes are involved, and each node has a corresponding database, it is more difficult to generate an auto-increment sequence. [0003] Such as figure 1 As shown, it is a schematic diagram of a distributed database application scenario, in figure 1 Among them, the coordinating node is co...

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): G06F16/23G06F16/25G06F16/27
CPCG06F16/23G06F16/25G06F16/27
Inventor 黄乐周明伟
Owner ZHEJIANG DAHUA TECH CO LTD