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

A block chain state data storage and reading method based on multi-level caching

A state data, blockchain technology, applied in database indexing, structured data retrieval, etc., can solve the problem of excessive block data volume, reduced block chain network storage read and write performance, block data unable to reach throughput, etc. problems, to achieve the effect of improving hit rate, improving storage performance, and improving efficiency

Active Publication Date: 2019-04-26
HANGZHOU QULIAN TECH CO LTD
View PDF2 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The storage systems of traditional blockchains are all based on open source Key / Value databases, such as LevelDB. Although LevelDB has greatly optimized the writing and reading of data by using multi-layer merging, the read and write efficiency is higher than that of other traditional The database has also been improved to a certain extent, but it still cannot achieve the throughput required by actual production for large data volume and continuous block data
[0004] In the traditional blockchain network, all the information in the nodes, including status information and blocks, are stored in the Key / Value database. The block data is huge. Once the system runs for a long time, the block data is too large, which will lead to The storage read and write performance of the block chain network is seriously reduced, which becomes the bottleneck of the operation performance of the entire block chain network and is a major pain point in the practical application of the block chain

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
  • A block chain state data storage and reading method based on multi-level caching
  • A block chain state data storage and reading method based on multi-level caching
  • A block chain state data storage and reading method based on multi-level caching

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The present invention will be described in detail below according to the accompanying drawings and preferred embodiments, and the purpose and effect of the present invention will become clearer. The present invention 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 the present invention, not to limit the present invention.

[0026] A method for storing and reading block chain state data based on multi-level cache, the storage includes the following steps (such as figure 2 shown):

[0027] Step 1: Combine all state data of a block into a Batch;

[0028] Step 2: Encode all the state information in a batch and atomically store it in the Memtable, and update the block height information in the state data at the same time; when the Memtable is larger than 500M after writing the latest state data, abandon the write , convert ...

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 discloses a block chain state data storage and reading method based on a multi-level cache. in a block chain node, when writing is carried out, according to the minimum unit of a block,all state information in the block and state information obtained after block height coding are written into a MemTable in an atomicity mode, and if writing is successful, the uncoded state information is cached into a first-level cache; And if the MemTable atom writing fails, the state information needs to be written again according to the block number. And if the reading is carried out, readingis carried out according to a sequence of reading the first-level cache and then reading the Memtable by using a conventional method. The method is applied to an existing block chain network, under the condition that it is guaranteed that the block state data can be accurately and completely written in, the storage efficiency of the whole state data is improved, and the method is a new breakthrough in a traditional block chain system based on Key / Value.

Description

technical field [0001] The invention relates to a decentralized blockchain storage system, in particular to a method for storing and reading blockchain state data based on a multi-level cache. Background technique [0002] Blockchain technology, blockchain is a new type of decentralized protocol that can safely store digital currency transactions or other data, information cannot be forged and tampered with, and transaction confirmation on the blockchain is shared by all nodes on the blockchain Completed, the consensus algorithm guarantees its consistency. A public ledger is maintained on the blockchain. The public ledger is visible to any node on the storage block, thus ensuring that it cannot be forged and tampered with. [0003] The storage systems of traditional blockchains are all based on open source Key / Value databases, such as LevelDB. Although LevelDB has greatly optimized the writing and reading of data by using multi-layer merging, the read and write efficiency is...

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/22
Inventor 邱炜伟李启雷李伟梁秀波尹可挺
Owner HANGZHOU QULIAN TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More