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

Data storage method and system, apparatus, and storage medium

A data storage and database technology, applied in the field of blockchain, can solve problems such as limiting system read performance, transaction congestion, and inability to generate blocks, and achieve the effect of relieving communication pressure, ensuring security, and alleviating block congestion.

Active Publication Date: 2019-02-19
HANGZHOU FUZAMEI TECH CO LTD
View PDF7 Cites 32 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, apparatus, and storage medium
  • Data storage method and system, apparatus, and storage medium
  • Data storage method and system, apparatus, 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 invention provides a data storage method and a system, an apparatus and a storage medium. The method comprises the following steps: a global index table corresponding to a Merkel tree of each block is stored locally at each node of a block chain network; and a Merkel tree of each block is stored locally. Where the version number of the version is the block height, and the global index table isused to query data according to the block height. By configuring the corresponding global index table for the Merkel tree and taking the block height as the version number, the invention provides a data inquiry way for the system to inquire the global index table directly through the block height and complete the inquiry through one reading operation, thereby greatly improving 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
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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products