Data storage method and device, computer equipment and storage medium

A data storage and computer technology, applied in the field of blockchain, can solve the problems of low efficiency of blockchain data storage

Active Publication Date: 2021-03-26
HANGZHOU QULIAN TECH CO LTD
View PDF10 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Based on this, it is necessary to address the above technical problems and provide a data storage method, device, computer equipment and storage media to solve the problem of low efficiency of existing blockchain data storage

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0029] The data storage method provided by this embodiment can be applied in such as figure 1 application environment in which the client communicates with the server. Among them, clients include but are not limited to various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices. The server can be implemented by an independent server or a server cluster composed of multiple servers.

[0030] In one embo...

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 relates to the field of block chains, and discloses a data storage method and device, computer equipment and a storage medium.The method comprises the steps of newly establishing a transaction, wherein the transaction comprises a plurality of adding instructions; before the transaction is finished, adding a newly-added temporary node according to the adding instruction; after the transaction is finished, splitting the newly added temporary node into a plurality of split nodes, and calculating hash values of the split nodes; updating the key value pair list of the target father node, and judging whether the length of the key value pair list of the target father node exceeds a second preset threshold value or not; and if yes, continuing to split the target father node until thekey value pair list lengths of all nodes do not exceed respective corresponding preset thresholds. Through asynchronous processing of transaction processing and node splitting and coupling of node splitting and hash calculation, the transaction processing efficiency can be improved, the IO frequency of paths and index values of a transaction type Merkel B + tree is reduced, and the disk read-write time is shortened.

Description

technical field [0001] The present invention relates to the field of block chains, in particular to a data storage method, device, computer equipment and storage medium. Background technique [0002] In the prior art, MPT (Merkle Patricia Tree, Merkle Patricia Tree) is a common algorithm for storing blockchain data. MPT uses the leveldb database (a database developed by Google) to store data, which has the problem of read and write amplification. In addition, MPT is indexed by prefix, and the reading path is long, resulting in a large number of hash calculations and affecting access performance. Moreover, during the data storage process, frequent encoding and decoding consumes a large amount of computing resources, resulting in poor storage efficiency. Contents of the invention [0003] Based on this, it is necessary to address the above technical problems and provide a data storage method, device, computer equipment and storage medium to solve the problem of low efficie...

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/27
CPCG06F16/2246G06F16/27Y02D10/00
Inventor 邱炜伟李伟张珂杰黄方蕾郑柏川
Owner HANGZHOU QULIAN 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