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

Storage method suitable for key value pair data

A key-value pair and data technology, applied in the input/output process of data processing, electrical digital data processing, instruments, etc., can solve the problem of discontinuous physical storage of data and achieve the effect of improving storage performance

Active Publication Date: 2017-05-24
HUAZHONG UNIV OF SCI & TECH
View PDF5 Cites 35 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Aiming at the above defects or improvement needs of the prior art, the present invention provides a storage method suitable for key-value pair data, the purpose of which is to use the serial number of the data table file to address the physical device, eliminating the need for path index, thus solving the problem of logically continuous data being discontinuous in physical storage

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
  • Storage method suitable for key value pair data
  • Storage method suitable for key value pair data
  • Storage method suitable for key value pair data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.

[0040] figure 1 Shown is a schematic diagram of the structure of the LSM-tree in the embodiment; the KV system based on the LSM-tree generates a log request when each write request arrives, and caches the request in a memory table (C0). When the memory table reaches When the preset size (4MB) is reached, it will be written into one layer (C1) of the permanent storage device; when C1 reaches the...

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 storage method suitable for key value pair data. The method comprises the following steps of: aiming at data characteristics of an LSM-tree structure, carrying out flat management on storage equipment, and respectively carrying out processing according to different characteristics of a log request and a data table request of the LSM-tree structure: storing the log request to a specific log area by using a small-granularity IO unit, and storing the data table request in a continuous physical space; assigning an id of a data table according to a storage physical space segment serial number; and during key value reading, searching the id of the data table according to meta information of the LSM-tree structure, and positioning a physical storage position of the data table according to the id. According to the storage method, the index from the id of the data table to the storage position thereof is simplified, so that LSM-tree data keeps the characteristic of continuity in a physical storage layer; and a writing operation does not need to change extra far-end index information, and the data table is stored in a compact manner, so that a deletion operation can recover the whole storage segment without carrying out extra migration and replication operations.

Description

technical field [0001] The invention belongs to the technical field of data storage, and more specifically relates to a method for storing key-value pair data. Background technique [0002] Key-value (Key-Value, KV) data has been widely used in recent years, and the KV system based on log merge tree (LSM-tree) is suitable for occasions with frequent writes. KV applications based on the LSM-tree structure usually maintain a level 0 table in memory. When the level 0 table is full, it is merged into the level 1 table. If the total size or number of tables in the level 1 table exceeds the set value, select Merge into level 2 tables, and so on; this structure implements deletion operations through insertion and deletion; since the data is always read from level 0 downwards, the newly inserted data will shield the old ones when reading Data; if the delete character is read, it indicates that the data has been deleted. [0003] Traditional KV applications run on the file system. ...

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/06
CPCG06F3/0604G06F3/061G06F3/0631G06F3/0638G06F3/0644G06F3/0676G06F3/0679
Inventor 曹强梅飞
Owner HUAZHONG UNIV OF SCI & 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