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

KV data writing and reading method and device based on multi-level index and storage medium

A data writing and data storage technology, applied in the field of database storage, can solve the problem of high cost, achieve the effect of excellent performance and improve the efficiency of reading operation

Pending Publication Date: 2022-04-29
瞰客信息科技(上海)有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although the use of the dichotomy can greatly improve the efficiency of the query, the time complexity of O(log(N)) still needs to be improved for the query efficiency of the database, and the key-value array is stored in an orderly manner. When the data needs to be updated It will be troublesome when you insert a record in the middle and you have to move all the records behind, which is too costly

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
  • KV data writing and reading method and device based on multi-level index and storage medium
  • KV data writing and reading method and device based on multi-level index and storage medium
  • KV data writing and reading method and device based on multi-level index and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0055] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Apparently, the described embodiments are some, not all, embodiments of the present invention.

[0056] Therefore, the following detailed description of the embodiments of the present invention is not intended to limit the scope of the claimed invention, but merely represents some embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0057] It should be noted that, in the case of no conflict, the embodiments of the present invention and the features and technical solutions in the embodiments can be combined...

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 KV data writing and reading method and device based on multi-level indexing and a storage medium, the KV data writing and reading method based on multi-level indexing comprises a KV data writing process, and the KV data writing process comprises the following steps: performing hash operation on a key of KV data to obtain a hash value hash (key) of the key; selecting a corresponding B group tree according to the hash value hash (key); judging whether the value of the KV data exceeds a preset threshold value or not; if the judgment result is no, directly storing the KV data in the corresponding B-family tree; and if the judgment result is yes, storing the KV data in a hash index bitash file. Through the combination of the B-group tree and the hash index bitash file and the multi-level index, the time complexity of O (1) can be realized, the read operation efficiency is greatly improved on the premise of ensuring that the write operation performance is not weakened, a KV database storage engine with better performance is provided, and the KV database storage engine is suitable for a scene of massive read operation.

Description

technical field [0001] The present invention relates to the technical field of database storage, in particular to a multi-level index-based KV data writing and reading method, device and storage medium. Background technique [0002] The KV database refers to the Key-value database, which is a database that stores data in key-value pairs. In order to improve the query speed of the database, it is necessary to establish a database index for the database. There are three common database index data structures for the KV database: hash table, ordered array, and search tree. [0003] The hash table stores key-value key-value pairs. If you use a hash table to store the index, you must first use the hash function to convert the key into a corresponding Index position in the array, and then put the value in this position. If multiple keys get the same index after conversion, then in A linked list is added here to store key-value objects with the same hash value. If you are given a...

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 Applications(China)
IPC IPC(8): G06F16/22
CPCG06F16/2255G06F16/2246G06F16/2282
Inventor 徐锐波卢文伟幸福魏来
Owner 瞰客信息科技(上海)有限公司
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