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

A Hierarchical Storage and Query Method Based on Key-Value Database

A query method and data storage technology, applied in the field of key-value databases, can solve the problems of difficult query of key-value databases, low overall efficiency, and long time consumption.

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

AI Technical Summary

Problems solved by technology

If you want to follow figure 1 As shown in the data organization, the score data of each classmate is stored hierarchically and classified, and the existing flat one-to-one storage mode of the key-value database is difficult to meet the storage requirements
[0005] 2. Existing key-value databases are difficult to query and iterate data at the same level
see figure 1 , if the key-value database stores the test scores of each person, the usual key-value pair description may be: , if we want to query which ones are in Class 1 When you are a student, although the key information in the above key-value database contains the answer to this question, the existing key-value database will be difficult to make queries
This is because the existing key-value database does not have a hierarchical storage structure, so it is only possible to query and extract information one by one by iterating all the keys in the entire database. The overall efficiency is relatively low and time-consuming

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
  • A Hierarchical Storage and Query Method Based on Key-Value Database
  • A Hierarchical Storage and Query Method Based on Key-Value Database
  • A Hierarchical Storage and Query Method Based on Key-Value Database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0068] Such as figure 2 As shown, the implementation steps of the hierarchical storage and query method based on the key-value database in this embodiment are as follows:

[0069] 1) Build a hierarchical key code naming rule in an orderly stored key-value database. The hierarchical key code naming rule defines the key code as beginning with a separator and consisting of alternate combinations of separators and substrings, and the number of separators Indicates the level of the key code; determine the size comparison method between two legal key codes, the larger the level, the larger the key code, and the key code with the same level will determine the size according to string comparison;

[0070] 2) Receive the access request of the key-value database, if the access request is a data storage request, skip to step 3), if the access request is a data query request, skip to step 4);

[0071] 3) Determine the key code sort position of the data storage request according to the size comp...

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 layering storage and inquiring method based on a key value database. The method includes the following implementation steps: constructing a layering key code naming rule and determining a comparison method between key codes; when executing a data storage request, determining the key code sequencing position of the data storage request according to the key code comparison method and inserting data into the key value database; when executing the data inquiring request, searching for a first greatest lower bound larger than or equal to all possible key codes under a target key code catalogue and utilizing the bound as a starting key code and returning all key values with the target key code as the beginning and results of sub catalogues as the data inquiring request from the starting key code. The method has high speed layering data storage and inquiring capability on the basis of traditional characteristics of the key value database, similar tree-shaped complex data can be effectively organized and stored, and the method can be used for storing data in the catalogue mode supporting massive files of a light distributive network file system.

Description

Technical field [0001] The invention relates to the technical field of key-value databases (Key-Value databases), in particular to a hierarchical storage and query method based on key-value databases. Background technique [0002] Compared with a typical SQL database, the key-value database (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 write to the data record (ie Value) corresponding to the Key. Delete and other operations. Since the key-value database only cares about the process of indexing Value through the Key, and does not care about the structure and content of the specific data stored in the Value, compared to the SQL database, the key-value database has specific functions and high flat access data performance. , Distributed processing has the advantages of strong scalability. [0003] At present, the key-value database has a weak ability to express the structure of the data itself...

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/30
CPCG06F16/2246
Inventor 李根卢凯王双喜迟万庆周旭唐宏伟刘勇鹏冯华王小平蒋杰高颖慧王睿伯张英樊葆华
Owner NAT UNIV OF DEFENSE TECH