Data storage method and system, device and storage medium

A data storage and database technology, applied in the blockchain field, can solve problems such as transaction congestion, failure to generate blocks, and limited system reading performance

Active Publication Date: 2021-07-06
HANGZHOU FUZAMEI TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The stored data limits the read performance of the system, and querying the data of a transaction requires multiple read operations
For example, for a 20-layer Merkle tree, querying the data of a leaf node requires 20 read operations to complete, resulting in the efficiency of data query is only 1 / 20 of the query efficiency of ordinary databases, which can be completed per second A system with 100,000 read operations can only read data of 5,000 transactions per second
[0005] Furthermore, the existing scheme needs to complete the block consensus after writing the Merkle tree data in the local node database, which leads to transaction congestion when the number of transactions increases sharply
[0006] In addition, if the existing scheme crashes when writing Merkle tree data in the local database of the node, it will result in failure to generate blocks

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 method and system, device and storage medium
  • Data storage method and system, device and storage medium
  • Data storage method and system, device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] 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.

[0030] 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.

[0031] In this embodiment, the present invention provides a data storage method, including:

[0032] S10: Locally store the global index table corresponding to the Merkle tree of each block and the Merkle tree of each block in each node of the blockchain network.

[0033] Wherein, the global inde...

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 method, system, device and storage medium, the method comprising: locally storing the global index table of the Merkle tree corresponding to each block in each node of the block chain network, and each block Merkle tree of blocks. Among them, the version number of the version is the block height, and the global index table is used for data query according to the block height. The present invention provides the system with data that can directly query the global index table through the block height by configuring the corresponding global index table with the block height as the version number for the Merkle tree, and complete the query through one read operation. The query method greatly improves the data reading performance of the system; and further optimizes the robustness of the system in the event of transaction congestion or node crash.

Description

technical field [0001] The present application relates to the technical field of block chain, in particular to a data storage method, system, equipment and storage medium. Background technique [0002] In the current data reading and writing solutions of the blockchain system, the structure of the Merkle tree is usually adopted. Kerr prefix tree (Merkle Patricia Tree, referred to as MPT) for data reading and writing, and so on. [0003] The shortcomings of the current data storage scheme using the Merkle tree structure are: [0004] The stored data limits the read performance of the system, and querying the data of a transaction requires multiple read operations. For example, for a 20-layer Merkle tree, querying the data of a leaf node requires 20 read operations to complete, resulting in the efficiency of data query is only 1 / 20 of the query efficiency of ordinary databases, which can be completed per second A system with 100,000 read operations can only read data of 5,0...

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/901G06F16/903G06Q40/04
CPCG06Q40/04
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