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

Method of high-speed concurrent processing of user requests of Key-Value database

A technology for user requests and processing methods, which is applied in electrical digital data processing, special data processing applications, and concurrent instruction execution, etc. It can solve the problem that the potential concurrency of Key-Value data requests has not been fully explored, and concurrency characteristics cannot be effectively explored and processed. Problems such as different levels of thread busyness, etc., achieve the effect of high hardware resource utilization, strong concurrent processing capability, and average workload

Active Publication Date: 2014-04-16
NAT UNIV OF DEFENSE TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1) On a multi-core processing platform, the workload may be unbalanced among the computing cores
Because different user connections generate Key-Value data requests at different rates, the processing threads corresponding to each connection have different degrees of idleness, which eventually leads to different workloads of each computing core when the database is running on a multi-core processing platform.
[0006] 2) The potential concurrency of Key-Value data requests sent by the same connection has not been fully exploited
This is because even for requests sent by the same user connection, there is no dependency between the read and write requests for Key1 and the read and write requests for Key2, so they can be executed concurrently. However, the existing system cannot effectively exploit such concurrent features.

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 of high-speed concurrent processing of user requests of Key-Value database
  • Method of high-speed concurrent processing of user requests of Key-Value database
  • Method of high-speed concurrent processing of user requests of Key-Value database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] like figure 1 As shown, the implementation steps of the high-speed concurrent processing method requested by the Key-Value database user in the present embodiment are as follows:

[0045] 1) Receive user requests and join the request buffer queue in the order of receipt;

[0046] 2) First initialize the key code classification queuing table used to store the one-to-one mapping relationship between the key code and the pending queue, and then continue to pop up user requests from the request buffer queue in the order of first-in, first-out, according to the user request in the key code Key Sort the different queues into different queues to be processed, and add the mapping relationship between the key code Key and the queue to be processed into the key code classification queuing table;

[0047] 3) First initialize the request set for concurrent processing, then continue to pop up user requests at the head of each pending queue and add them to the request set, and use a...

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 a method of high-speed concurrent processing of user requests of a Key-Value database. The method of the high-speed concurrent processing of the user requests of the Key-Value database comprises the steps of (1) receiving the user requests, and sequentially adding the user requests into a request buffering queue; (2) initializing a key code classification queuing list, continuously popping the user requests out from the request buffering queue according to a first-in first-out order, sorting the user requests to different pending processing queues according to different key codes of the user requests, and adding a mapping relation between the key codes and the pending processing queues into the key code classification queuing list; and (3) initializing a request assembly, continuously popping the user requests out on the head portion of the pending processing queues to the request assembly, using worker threads with a preset number to carry out concurrent processing on the user requests in the request assembly, and returning processing results to users. The method of the high-speed concurrent processing of the user requests of the Key-Value database has the advantages of being high in concurrent processing fine grit, good in concurrent processing capacity, high in use ratio of hardware resources, balanced in load of all processor cores in a multi-core processor, and capable of ensuring sequence among read-write dependent requests.

Description

technical field [0001] The invention relates to the field of Key-Value databases, in particular to a high-speed concurrent processing method for Key-Value database user requests. Background technique [0002] Different from the SQL database, the Key-Value database is used to store unstructured key-value data, that is, the key code (ie Key) is used as an index to read, write, and delete the data record (ie Value) corresponding to the Key. Since the Key-Value database only cares about the process of indexing the Value through the Key, and does not care about the structure and content of the specific data stored in the Value, compared with the SQL database, it has more specific functions, faster access speed, and better horizontal scalability. [0003] Usually, the request processing process of the Key-Value database is divided into two parts: the front-end and the back-end: the front-end request processing process that receives requests through I / O input interfaces such as the...

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): G06F17/30G06F9/38
Inventor 李根王睿伯卢凯迟万庆冯华蒋杰刘勇鹏高颖慧唐宏伟樊葆华王小平
Owner NAT UNIV OF DEFENSE TECH
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