A short-time data library writing implementation method and system and electronic equipment
An implementation method and data writing technology, which is applied in the field of power system information, can solve problems such as slow writing and blocking, and achieve the effects of improving performance, avoiding synchronous blocking problems, and flexible batch write-back mechanism
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0045] Embodiment 1: The present invention proposes a method for implementing short-term data writing to the database, including the following steps:
[0046] Step 1: The process of assembly and assembly according to the business demand planning fee model is as follows:
[0047] S11. Create a virtual slot based on the foreign key field value of a business unit corresponding to a KEY, and use the FNV (FowlerNolVo) algorithm to hash the field value. The FNV-1 algorithm can hash a large amount of data while maintaining a small conflict rate. The calculation process is,
[0048] Initialization: hash=2166136261;
[0049] Enter the loop, and determine the number of loops according to the length of the input data bytes. The hash result is a 32-bit unsigned integer, so it is necessary to discard the high bits and keep the low 32 bits: hash=(2166136261*16777619)mod 2 32 = 0x050c5d1f;
[0050] To perform an XOR operation, first convert 0x56 into a 32-bit value 0x00000056, and then pe...
Embodiment 2
[0079] Embodiment 2: the present invention also proposes the implementation system of short-term data writing database, including:
[0080] The collection and assembly module is used to execute: perform collection and assembly according to the business demand planning and charging model, and generate a collection of charging results;
[0081] A parsing module, configured to execute: parsing the billing result set and putting it into a memory queue;
[0082] The queue pulling module is configured to perform: spin pulling queue data from the memory queue;
[0083] The token access module is used to execute: create an access token to connect to the database according to the queue data;
[0084] The archiving module is used to execute: batch archiving of multi-data sources for calculation and fee collection;
[0085] The task judging module is used to execute: judging the task to return the token;
[0086] The exception collection module is used to execute: establish a containe...
Embodiment 3
[0087] Embodiment 3: The present invention also proposes an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the method is implemented when the processor executes the program step.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


