Supercharge Your Innovation With Domain-Expert AI Agents!

Method and system for generating data global uniqueness identifier id

A data, the only technology, applied in the field of data encoding, can solve the problems of poor readability, consumption of performance, unable to do increments, etc., to achieve the effect of reducing memory consumption, reducing the number of storage bits, and being easy to remember

Pending Publication Date: 2020-05-08
武汉数元网络技术有限公司
View PDF7 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The UUID string is long and takes up a lot of space; it forms a meaningless string, which is poorly readable and unfriendly to users; when using the B+ tree to build an index, due to the disorder of the UUID, it will be added to the tree. Comparing consumption performance; it cannot be incremented, and if the sorting function needs to be realized, it is more difficult

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
  • Method and system for generating data global uniqueness identifier id
  • Method and system for generating data global uniqueness identifier id
  • Method and system for generating data global uniqueness identifier id

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] Such as figure 1 As shown, the embodiment of the present invention provides a method for generating a data global unique identifier id.

[0027] Include the following steps:

[0028] The upper-level system responds to the seed field acquisition request sent by the current system, and sends the seed field data to the current system;

[0029] After the upper-level system allocates the seed field data, it will increment the seed field data according to the specified step size, and use it as the seed field data for the next allocation.

[0030] Acquiring seed field data, the seed field consists of at least one digit and is used to uniquely identify the current system;

[0031] Generate a globally unique ID for the current target data object based on the seed field data;

[0032] A delimiter is added after the seed field, and a serial number is added after the delimiter; both the delimiter and the serial number are numbers.

[0033] The serial number is incremented by a ...

Embodiment 2

[0044] figure 2 The present invention provides a system structure for generating a globally unique identifier id for data, including a primary system and a secondary system, wherein the primary system distributes seed field data for the secondary system; the secondary system uses the seed field Based on the data, a globally unique ID is generated for the target data object; the globally unique ID includes a seed field, a delimiter and a serial number, and the delimiter and the serial number are numbers.

[0045] Further, after the primary system allocates the seed field data to the secondary system, it performs incremental processing on the seed field data according to a specified step size, and serves as the seed field data allocated by the next subsystem.

[0046] Further, the secondary system increments the serial number by a specified step size after the serial number is allocated, and uses the incremented serial number as the serial number of the next target data object....

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 relates to a method and a system for generating a global unique identifier id of data. The method comprises the following steps: firstly, acquiring seed field data which consists of at least one digit and is used for uniquely identifying a current system; generating a global unique identifier ID for the current target data object based on the seed field data; wherein the global unique identifier ID comprises a seed field, a separator and a serial number, and the separator and the serial number are both numbers. According to the method, the most basic problem that id is not repeated is solved, meanwhile, compared with the prior art, id storage bits are reduced, memory consumption is reduced, ordered digital storage is adopted, memorization is facilitated, serial number generation is achieved in the memory, and the performance is high.

Description

technical field [0001] The invention relates to the technical field of data encoding, in particular to a method and system for generating a globally unique identifier id for data. Background technique [0002] UUID is a universal unique identification code, which can realize the global uniqueness of all elements in the distributed system. The UUID generation strategy stipulates that the UUID is generated from the following elements: current timestamp, sequence, unique IEEE machine identification number, name space, random or pseudo-random number, and finally generates a 128-bit long number, usually expressed as 32 hexadecimal Characters, separated by '-'. Among them, the timestamp + UUID version number is divided into three sections and occupies 16 characters, the clock serial number and reserved fields occupy 4 characters, and the node identifier occupies 12 characters. Existing UUIDs have multiple versions, and each version has a different algorithm and a different appli...

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): G06F40/126
Inventor 向俊涛王小玉
Owner 武汉数元网络技术有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More