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

Key value storage method based on hash table and LSM tree

An LSM tree and key-value technology, which is applied in the input/output process of data processing, special data processing applications, instruments, etc., can solve problems such as consuming large resources, affecting read performance, and affecting the overall performance of BadgerDB, so as to reduce space enlargement , reduce system resource consumption, and improve the efficiency of data merging

Pending Publication Date: 2021-12-21
上海沄熹科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

BadgerDB is a high-performance key-value storage system based on the idea of ​​separating data and indexes. Its overall architecture is similar to LevelDB. Sequential lookup in BadgerDB will become a random read of the disk, which will affect its read performance.
At the same time, in order to clean up the deleted data entries in the data file, it is necessary to traverse the data entries and query the LSM tree one by one. This process consumes a lot of resources and affects the overall performance of BadgerDB

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
  • Key value storage method based on hash table and LSM tree
  • Key value storage method based on hash table and LSM tree
  • Key value storage method based on hash table and LSM tree

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments, so that those skilled in the art can better understand the present invention and implement it, but the examples given are not intended to limit the present invention.

[0046] A key-value storage method based on a hash table and an LSM tree, the specific steps of the method are as follows:

[0047] S1 uses key values ​​to store data and indexes separately;

[0048] S2 uses the hash index to encapsulate the key-value data;

[0049] S3 merges the data in the ordered index in the jump table merge;

[0050]S4 uses the hash index to query the key-value data and returns the query result;

[0051] S5 initiates data consolidation for key-value data log files whose quantity or size exceeds the threshold;

[0052] S6 stores the operation process and results of data merging;

[0053] Further, the specific steps of S1 storing data and indexes separately ...

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 key value storage method based on a hash table and an LSM tree, and belongs to the field of computer storage. The method comprises the following specific steps: S1, separately storing data and indexes by using key values; S2, packaging the key value data by using a Hash index; S3, merging the data in the ordered index in skip list merging; S4, querying the key value data by using the Hash index, and returning a query result; S5, initiating data merging for the key value data log files with the number or the size exceeding the threshold value; and S6, storing an operation process and a result of data merging. Data and indexes are separately stored by adopting the idea of key value separation, the Hash indexes are utilized to provide efficient write-in and read-out operation capability externally, a rapid range query function is realized by utilizing ordered indexes based on an LSM tree, and the problems of high read and write operation delay, large data volume, read, write, space amplification and the like of an existing key value storage system are solved.

Description

technical field [0001] The invention discloses a key-value storage method based on a hash table and an LSM tree, and relates to the technical field of computer storage. Background technique [0002] As a basic software of information technology, database plays a vital role in the information age. With the rapid development of information technology, data storage and management are also facing more and more diverse challenges. The ever-changing demand scenarios for database New requirements have been put forward in terms of storage mechanism, concurrent access, storage space utilization and usage efficiency. Traditional stand-alone databases are limited by performance bottlenecks in the era of massive data and are being replaced by distributed databases. Distributed databases dynamically meet various resource requirements in high-speed business development scenarios with good scalability and relatively low hardware investment. Provide continuous impetus for business developm...

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): G06F3/06G06F16/22
CPCG06F3/0611G06F3/0676G06F16/2246G06F16/2255
Inventor 李涛管延信王瀚墨
Owner 上海沄熹科技有限公司