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

Method and device for generating database record primary key

A database and data technology, applied in the computer field, can solve problems affecting the upper-level caller and the usability of the sender, and achieve the effect of solving the uniqueness problem and ensuring the uniqueness

Active Publication Date: 2021-10-22
叮当快药科技集团有限公司
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, no matter which method is used above, it will affect the usability of the issuer, and then affect the upper-level caller

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 device for generating database record primary key
  • Method and device for generating database record primary key
  • Method and device for generating database record primary key

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In order to better understand the technical solutions and advantages of the present application, the content of the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. However, the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application. In addition, the technical features involved in the various embodiments of the present application described below can be used in combination unless they constitute a conflict with each other, so as to constitute other embodiments within the scope of the present application.

[0043] The content described below provides many different implementations or examples for realizing different structures of the present application. To simplify the disclosure of the present application, components and arrangements of specific examples are described below. Of course, they are exampl...

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 present application provides a method and device for generating a database record master key, an electronic device, a distributed issuer for a database record master key, and a non-transitory computer-readable storage medium. The method includes: obtaining the current system time, generating a database record primary key; recording the system time when the database record primary key is newly generated, and making the system time according to the system time recorded when the database record primary key under the same time slice was generated last time. comparing, determining whether a clock callback under the same time slice occurs; and based on the determined result, generating a new primary key of the database record, the primary key of the database record includes time slice data, and the time slice data occupies the database record Multiple data bits of the primary key and a data toggle every time a clock callback occurs.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method and device for generating a database record master key, an electronic device, a distributed issuer for a database record master key, and a non-transitory computer-readable storage medium. Background technique [0002] A record primary key is a unique identifier that identifies each record in a database system. At present, the mainstream database record primary key (also called unique ID) generation strategy is to use serial numbers, that is, to generate long integer record primary keys in a sequentially increasing manner. However, in the case of multiple computer rooms or multiple database instances, it is difficult for the record primary key generated using the serial number to meet the uniqueness requirement, because the databases of different instances may generate exactly the same integer value. In order to solve this problem, an independent system (usua...

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 Patents(China)
IPC IPC(8): G06F16/22
CPCG06F16/2272
Inventor 赖寿生朱明宙
Owner 叮当快药科技集团有限公司
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