Unlock instant, AI-driven research and patent intelligence for your innovation.

Data storage method, data rollback method, device and storage medium

A data storage and data technology, applied in the blockchain field, can solve problems such as data expansion and low reading efficiency, and achieve the effects of reducing data storage, improving user experience, and improving reading efficiency

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

AI Technical Summary

Problems solved by technology

Using the state tree to store data will cause data expansion and low reading efficiency

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

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

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

[0025] figure 1 It is a flowchart of a data storage method provided by an embodiment of the present invention. Such as figure 1 As shown, in this embodiment, the present invention provides a data storage method, including:

[0026] S12: Execute the received packaged transactions in the first bl...

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, a data rollback method, a device, and a storage medium. The method includes: executing the received transactions packaged in the first block, and when all transactions in the first block are executed, the The state data information is stored in the state database, and the block information of the first block is stored in the local database in the form of key-value pairs; the reverse operation information of the stored key-value pairs is stored in the local database; The corresponding relationship between the block height of the first block and the state hash of the first block is stored. The application enables only the most important state data information to be stored in the state database, reduces the data storage capacity of the state database, improves reading efficiency, and improves user experience.

Description

technical field [0001] The present application relates to the technical field of blockchain, and specifically relates to a data storage method, a data rollback method, a device, and a storage medium. Background technique [0002] In the existing blockchain technology, most of them use the state tree structure to store the data on the block. Common state trees include MPT tree, Merkle tree and so on. The main problem of the simple state tree structure is the storage capacity and performance of the data. The storage data of the state tree is 5-10 times larger than that of the ordinary kv database. Reading data is 40 times slower. Using the state tree to store data will cause data expansion and low reading efficiency. Contents of the invention [0003] In view of the above-mentioned defects or deficiencies in the prior art, it is desired to provide a data storage method, a data rollback method, a device, and a storage medium that reduce data storage capacity and improve rea...

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/22G06F11/14
CPCG06F11/14G06F16/22
Inventor 王志文吴思进
Owner HANGZHOU FUZAMEI TECH CO LTD