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

Identifier generation method and device

An identifier and index value technology, applied in the computer field, can solve the problems of unable to maintain the increasing trend, occupy a large storage space, easy to produce single point of failure, etc., to achieve the effect of easy statistical analysis, small storage space occupation, and reduction of coding errors

Pending Publication Date: 2019-08-09
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] (1) Use the self-incrementing ID method to generate identifiers. Due to the different syntax of different databases, additional processing is required during database migration; only the main database can generate self-incrementing IDs, which is prone to single-point failures; it depends on database resources and is difficult to expand;
[0005] (2) Using UUID to generate identifiers is out of order and cannot maintain an increasing trend; the generated identifiers are stored in the form of strings, which has low query efficiency, takes up a large storage space, and transmits a large amount of data

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
  • Identifier generation method and device
  • Identifier generation method and device
  • Identifier generation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0032] figure 1 is a schematic diagram of main steps of an identifier generation method according to an embodiment of the present invention. Such as figure 1 As shown, the identifier generation method in the embodiment of the present invention mainly includes the following steps:

[0033] Step S101: Use the name in the identifier acquisition request as a key, and obtain...

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 an identifier generation method and device, which belongs to the technical field of computers. The specific embodiment of the method comprises the following steps: taking a name in an identifier acquisition request as a key, and acquiring a value corresponding to the key from mapping of a memory; wherein the values comprise a starting index value and an ending index value;updating the initial index value according to the index number if the index number in the identifier acquisition request is smaller than or equal to a difference value between the end index value andthe initial index value; and assembling the obtained initial index value and the updated initial index value to obtain an identifier. According to the embodiment, a globally unique and self-increasingidentifier is generated through program control, and expansion is facilitated. The identifier generated based on the index value is in a numerical form, the query efficiency is high, the occupied storage space is small, and the transmission data size is small.

Description

technical field [0001] The present invention relates to the field of computers, in particular to a method and device for generating an identifier. Background technique [0002] In the Internet industry, sometimes it is necessary to concurrently obtain unique self-incrementing identifiers (ID, Identifier) ​​between several systems to meet business requirements, and it is also necessary to count the status of each system's acquisition of identifiers. In the prior art, an auto-increment ID or a universally unique identifier (UUID, Universally Unique Identifier) ​​of a database can be used to generate a unique identifier. The identifier generated by using the auto-increment ID method is self-incrementing, and the identifier generated by using the UUID method is convenient for expansion. [0003] In the course of realizing the present invention, the inventor finds that there are at least the following problems in the prior art: [0004] (1) Use the self-incrementing ID method t...

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/22
CPCG06F16/22
Inventor 周文跃
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD