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

Method and system for merging data based on log structure merging tree, equipment and medium

A data and log technology, applied in the field of data processing, can solve problems that affect the performance of upper-layer applications, read and write a large number of disks, and achieve the effect of reducing the amount of read and write data

Active Publication Date: 2021-04-30
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Based on this paper, a common implementation method is to layer the data into L0-Ln respectively, and then periodically merge the data of the L layer into the L+1 layer. This method will generate a large number of disk reads and write, and ultimately affect the performance of upper-layer applications

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
  • Method and system for merging data based on log structure merging tree, equipment and medium
  • Method and system for merging data based on log structure merging tree, equipment and medium
  • Method and system for merging data based on log structure merging tree, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to make the object, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0022] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are to distinguish two entities with the same name but different parameters or parameters that are not the same, see "first" and "second" It is only for the convenience of expression, and should not be construed as a limitation on the embodiments of the present invention, which will not be described one by one in the subsequent embodiments.

[0023] Based on the above purpose, the first aspect of the embodiments of the present invention proposes an embodiment of a method for merging data based on a log-structured merging tree. figure 1 What is shown is a schematic diagram of an embodimen...

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 method and system for merging data based on a log structure merging tree, equipment and a medium. The method comprises the steps of dividing a disk into data blocks of a preset size, saving the data in the data blocks, and information of the data in index blocks; merging the current preset number of index blocks at preset intervals to form a new index block, and judging whether the effective data of the corresponding data block is smaller than a threshold value or not according to the information of the new index block; in response to the fact that the valid data of the multiple data blocks is smaller than a threshold value, combining the valid data of the multiple data blocks, and releasing the data blocks without the valid data; and in response to the fact that the valid data of only one data block is smaller than the threshold, merging the valid data of the data block into the data block with the lowest valid data except the data block. The data index is separated from the data, the data is stored in the pre-distributed data block, and the data is merged and recycled according to the index, so that the read-write data volume of the disk is reduced.

Description

technical field [0001] The present invention relates to the field of data processing, and more specifically refers to a method, system, computer equipment and readable medium for merging data based on a log-structured merging tree. Background technique [0002] LSM-Tree (Log-Structured Merge-Tree, Log-Structured Merge-Tree) was first proposed in a paper "The Log-Structured Merge-Tree (LSM-Tree)". It is not a product or system itself, but a Algorithms and ideas for problem solving. Based on this idea, multiple storage products have been implemented, such as NoSQL storage systems such as HBase and LevelDB. Its core idea is to convert random writes into sequential writes to improve write performance, and then periodically perform data consolidation (Compaction) to improve read performance. Based on this paper, a common implementation method is to layer the data into L0-Ln respectively, and then periodically merge the data of the L layer into the L+1 layer. This method will ge...

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): G06F3/06G06F16/22
CPCG06F3/061G06F3/064G06F3/0683G06F16/2246
Inventor 于鲁宪侯斌
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD
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