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

Layering storage and inquiring 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 low overall efficiency, difficulty in querying key-value databases, and long time consumption.

Active Publication Date: 2015-01-07
NAT UNIV OF DEFENSE TECH
View PDF4 Cites 17 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
  • Layering storage and inquiring method based on key value database
  • Layering storage and inquiring method based on key value database
  • Layering storage and inquiring 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 advance in the key-value database stored in an orderly manner. The hierarchical key code naming rule defines the key code as starting with a separator and consisting of alternating combinations of separators and substrings. The number of separators Indicates the series of key codes; determine the size comparison method between two legal key codes, the larger the series, the larger the key code, and the key codes with the same series are determined according to the string comparison;

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

[0071] 3) Determine the key code sorting position of the data sto...

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 a key-value database (Key-Value database), in particular to a hierarchical storage and query method based on a key-value database. Background technique [0002] Compared with typical SQL databases, key-value databases (Key-Value databases) are used to store unstructured key-value data, that is, key codes (ie Key) are used as indexes to read, write, and operations such as deletion. 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 with the SQL database, the key-value database has specific functions, flat access data and high performance. , The advantages of strong scalability of distributed processing. [0003] At present, the key-value database has a weak ability to express the structure of the data itself. The entire database can be simply regarded as a large t...

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
IPC IPC(8): G06F17/30
CPCG06F16/2246
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