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

An index query method and system for a key-value storage system

A storage system and query method technology, which is applied in the field of index query oriented to the Key-Value storage system, to achieve the effects of reducing read and write latency, reducing search, and improving data query speed and performance.

Active Publication Date: 2020-04-03
ANHUI UNIVERSITY
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Key-value databases generally use a tree structure to organize data. With the advent of the era of big data, it is necessary to find specific data in massive amounts of data. If the traditional tree traversal form is used, it will undoubtedly cause huge time overhead. , so an algorithm that can quickly index specific data is essential

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
  • An index query method and system for a key-value storage system
  • An index query method and system for a key-value storage system
  • An index query method and system for a key-value storage system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 2

[0082] refer to Figure 5 , Figure 5 It is a method flow chart of Embodiment 2 of a Key-Value storage system-oriented index query method proposed by the present invention;

[0083] refer to Image 6 , Image 6 It is an implementation diagram of Embodiment 2 of a Key-Value storage system-oriented index query method proposed by the present invention;

[0084] Such as Figure 5 with Image 6 Shown, the concrete steps of the embodiment 2 that the present invention proposes are:

[0085] (1) First retrieve the deepest block node;

[0086] (1.1) Obtain the key value of the key-value data item to be retrieved. Suppose the key to be retrieved is: 001010010..., the maximum depth k of the tree is calculated through the properties of the complete binary tree and the maximum node number of the tree to be 5, so the key is taken first The first five digits are 00101;

[0087] (1.2) 00101 has 2 "0"s before the first "1" appears, so that the number j=2, so first set a variable i, thr...

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 present invention discloses an index query method and system oriented to a Key-Value storage system. The method includes: S1, obtaining Key-Value data items and storing them in a block, and generating a prefix complete binary tree according to the block nodes; S2, obtaining the key value, according to The height of the binary tree determines the key value using the digit k, and the key value is binary; S3. Obtain the first k digits of the key value, traverse from the first k digits of the key value, retrieve the first "1" in the first k digits of the key value, and record the first The digit j before a "1"; S4, judge whether j is less than k, if j is less than k, then the target result i=2 j , execute S5; if j is not less than k, then the target result i=2 k‑1 ‑1, execute S6; S5, search circularly from the j+2th bit of the key value, when "1" is retrieved, i=2×(i+1); otherwise, i=2×i+1; until j=k , stop searching to get the target result i, execute S6; S6, search block[i] in the prefix complete binary tree through the value of i, judge whether block[i] is not empty, if block[i] is not empty, output the target result i value; if block[i] is empty, execute S3 after setting k=k-1 until k=0.

Description

technical field [0001] The invention relates to the technical field of data index query, in particular to an index query method and system oriented to a Key-Value storage system. Background technique [0002] With the rapid development of the Internet, the world today has entered the era of "big data". The latest report of the international data company IDC predicts that within ten years from 2014, the total amount of data generated globally every year will increase by 40%, or about The total amount of data will double every two years, and by 2020 the total amount of global data will reach 44ZB. With the rapid growth of data volume, the form of data is also developing from traditional structured data to unstructured or semi-structured data forms. Traditional relational databases are stretched for the storage capacity of these data. Indexing, web serving of high-traffic sites, and sending streaming media data. In addition, for a specific system, most of the retrieval is bas...

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): G06F16/22
CPCG06F16/2246
Inventor 孙辉陈国栋徐殷
Owner ANHUI UNIVERSITY
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