Data storage and cutting method and device and storage medium

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

Active Publication Date: 2019-04-26
HANGZHOU FUZAMEI TECH CO LTD
View PDF6 Cites 23 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
  • Data storage and cutting method and device and storage medium
  • Data storage and cutting method and device and storage medium
  • Data storage and cutting method and 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 invention provides a data storage and cutting method and device and a storage medium. The method comprises the steps that father node information of all nodes except a root node of a first Merkeltree is stored in a local database; When the first leaf node is inserted into the first Merkel tree, storing a first index node corresponding to the first leaf node in a local database; Wherein the second key value of the first index node comprises 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 for searching a plurality of index nodes and corresponding leaf nodes which are the same as the first key value, and the father node information is used for searching redundant father nodes. According to the method, the index nodes corresponding to the leaf nodes are stored, redundant state data are deleted according to the index nodes, the data synchronization rate is greatly increased on the premise that the normalaccount state is not affected, and the read-write efficiency is improved.

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 Applications(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