A data storage and cutting method, device and storage medium

A data storage and database technology, applied in the information field, can solve problems such as large disk storage space, historical state data occupation, and reduce database read and write efficiency, so as to achieve the effect of increasing speed and improving read and write efficiency

Active Publication Date: 2021-02-09
HANGZHOU FUZAMEI TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The main defect of the existing scheme is that because the Merkle tree mainly records the state data on the blockchain, the historical data of the state data is useless for most nodes except for the block rollback factor. The generation of historical data will continue to accumulate, and the number of nodes in the state tree will continue to increase. Due to the bottleneck of hard disk IO read and write, every time a node is inserted or data is read from a node, the read and write efficiency of the database will be reduced; at the same time, redundancy The historical state data will also take up a lot of disk storage space

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
  • A data storage and cutting method, device and storage medium
  • A data storage and cutting method, device and storage medium
  • A data storage and cutting method, device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The application 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 related inventions, rather than to limit the invention. It should also be noted that, for ease of description, only parts related to the invention are shown in the drawings.

[0031] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0032] figure 1 It is a schematic diagram of a data storage method provided by an embodiment of the present invention.

[0033] Such as figure 1 As shown, in this embodiment, the present invention provides a data storage method, including:

[0034] S11. Store the parent node information of each...

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 provides a data storage and clipping method, device and storage medium. The method includes: storing the parent node information of each node of the first Merkle tree except the root node in a local database; When inserting the first leaf node in the Merkle tree, store the first index node corresponding to the first leaf node in the local database; wherein, the second key value of the first index node includes the first key value of the first leaf node , the first block height and the first hash value; wherein, the second key value is used to find several index nodes and corresponding leaf nodes that are the same as the first key value, and the parent node information is used to find redundant parent nodes. The present invention stores the index nodes corresponding to the leaf nodes, deletes redundant state data according to the index nodes, and greatly improves the speed of data synchronization and read-write efficiency without affecting the normal account state.

Description

technical field [0001] The present application relates to the field of information technology, in particular to a data storage and clipping method, device and storage medium. Background technique [0002] In the data structure storage solution of the current blockchain system, Merkle Tree (MerkleTree), Merkle Balanced Binary Tree (MAVL), Merkle Patricia Tries (MPT) tree, etc. Account balance, etc.) are stored, and these trees are collectively referred to as state trees here. The main defect of the existing scheme is that because the Merkle tree mainly records the state data on the blockchain, the historical data of the state data is useless for most nodes except for the block rollback factor. The generation of historical data will continue to accumulate, and the number of nodes in the state tree will continue to increase. Due to the bottleneck of hard disk IO read and write, every time a node is inserted or data is read from a node, the read and write efficiency of the data...

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/22G06F16/27G06F3/06
CPCG06F3/061G06F3/0641G06F3/0676
Inventor 柳宇航王志文吴思进
Owner HANGZHOU FUZAMEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products