A unique key generation method, device and terminal equipment
A unique key and serial number generation technology, applied in the field of distributed systems, can solve problems such as poor performance, untraceability, database writing, etc., and achieve high performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0050] Such as figure 1 As shown, this embodiment provides a method for generating a unique key, which can be applied to terminal devices such as PCs, tablet computers, and mobile phones. The unique key generation method provided by this embodiment includes:
[0051] S101. Obtain data to be generated.
[0052] In specific applications, it is necessary to generate data to be generated with a globally unique primary key in the business system of the distributed system software. Among them, the unique primary key, referred to as the unique key, is used to summarize data, divide data, track data sources, and realize sub-databases function and sub-table function.
[0053] S102. Correspondingly generate service instance codes according to the sequence of service instances of the data to be generated.
[0054] In a specific application, the corresponding service instance code is generated according to the order of the service instances of the data to be generated, wherein the orde...
Embodiment 2
[0101] Such as figure 2 As shown, this embodiment provides a unique key generating device 100 for performing the method steps in Embodiment 1. The unique key generating device 100 provided in this embodiment includes:
[0102] An acquisition module 101, configured to acquire data to be generated;
[0103] The first generating module 102 is configured to correspondingly generate service instance codes according to the sequence of service instances of the data to be generated;
[0104] The second generation module 103 is used for correspondingly generating year, week, week and second according to actual time;
[0105] The third generation module 104 is used to correspondingly generate the serial number, extension and version according to preset rules;
[0106] Synthesis module 105, for synthesizing the above-mentioned generated field into a unique key according to the unique key basic data structure, and marking the unique key in the data to be generated; wherein, the genera...
Embodiment 3
[0129] image 3 It is a schematic diagram of a terminal device provided by an embodiment of the present invention. Such as image 3 As shown, the terminal device 3 of this embodiment includes: a processor 30, a memory 31, and a computer program 32 stored in the memory 31 and operable on the processor 30, such as a unique key generation program. When the processor 30 executes the computer program 32, the steps in the above-mentioned embodiments of the unique key generation method are realized, for example figure 1 Steps S101 to S105 are shown. Alternatively, when the processor 30 executes the computer program 32, it realizes the functions of the modules / units in the above-mentioned device embodiments, for example figure 2 The functions of modules 101 to 105 are shown.
[0130] Exemplarily, the computer program 32 can be divided into one or more modules / units, and the one or more modules / units are stored in the memory 31 and executed by the processor 30 to complete this in...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com