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

Storage method, device, system and storage medium of block chain system

A blockchain and block technology, which is applied to systems and storage media, storage methods of blockchain systems, and devices, can solve the problem of high cost, and achieve the effect of taking into account hardware costs and improving storage performance.

Active Publication Date: 2020-03-17
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF11 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example, the cost of a node composed of eight SSD disks is 9 times higher than that of eight SAS (Serial Attached SCSI, Serial Attached SCSI) disks

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
  • Storage method, device, system and storage medium of block chain system
  • Storage method, device, system and storage medium of block chain system
  • Storage method, device, system and storage medium of block chain system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] figure 1 It is a flow chart of a storage method for a blockchain system provided by Embodiment 1 of the present invention. This embodiment is applicable to a hybrid disk storage system, which is a storage system used by any node in the blockchain system Of course, if the cloud is used for block storage, the hybrid disk storage system can also be applied to the cloud server. There is at least one high-performance storage unit and at least one low-performance storage unit in the mixed-disk storage system, that is, a storage system composed of storage units with different storage performances mixed. The so-called high performance and low performance refer to the performance of one aspect of the storage unit or a combination of performances of multiple aspects, such as storage space and / or read / write speed. A storage unit usually refers to a physically independent hard disk, or a storage unit with independent storage performance. For example, a high-performance storage uni...

Embodiment 2

[0048] figure 2 Embodiment 2 of the present invention provides a flow chart of a storage method for a blockchain system. The method is further optimized on the basis of the above-mentioned embodiments, and specifically provides specific procedures for migrating data from a high-performance storage unit to a low-performance storage unit. briefing. Such as figure 2 As shown, the method includes:

[0049] S201. When acquiring transaction data or processing and generating block data, write the transaction data or block data into the high-performance storage unit.

[0050] S202. When a migration trigger condition of the stored data is generated, determine data whose data storage performance meets the migration condition in the high-performance storage unit as data to be migrated.

[0051] Wherein, the migration condition is set according to data storage performance (that is, at least one of data reading and writing frequency, data importance, and data storage time), and is use...

Embodiment 3

[0064] image 3 It is a flow chart of a storage method for a blockchain system provided by Embodiment 3 of the present invention. This embodiment provides a preferred example based on the foregoing embodiments, which is applicable to the case of updating transactional data, such as image 3 As shown, the method includes:

[0065] S301. Obtain a data update request for a transaction;

[0066] Among them, a transaction is a data processing unit in the blockchain, which is a series of operations performed by a single logical work unit. For example, in a transaction, a transaction can be three operations: 1) Update the inventory information of the goods purchased by the customer; 2) Save the customer's payment information; 3) Generate an order to save three transactions. Since the three operations are controlled concurrently, any abnormality in any one will lead to the failure of the transaction.

[0067] When a transaction is executed, a data update request for the transaction ...

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 embodiment of the invention discloses a block-chain-system storage method and device, a system and a storage medium. The block-chain-system storage method is applied to a mixed-disc storage system, and the mixed-disc storage system comprises at least one high-performance storage unit and at least one low-performance storage unit; the block-chain-system storage method includes the steps that when transaction data or block data generated through processing are obtained, the transaction data or the block data are written into the high-performance storage unit; when a migration triggering condition of stored data is generated, to-be-migrated data is determined according to the data storage performance, and migration is carried out between the high-performance storage unit and the low-performance storage unit. By means of the block-chain-system storage method and device, the system and the storage medium in the embodiment in the technical scheme, the problem that as the storage performance is improved only by improving the hardware performance is solved, so that the storage performance of nodes in the block-chain system is improved, and the hardware cost of the nodes is reduced.

Description

technical field [0001] Embodiments of the present invention relate to computer data storage technology, and in particular to a storage method, device, system and storage medium of a blockchain system. Background technique [0002] Blockchain is a new application model of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. [0003] Since the typical feature of the blockchain is that all nodes in the blockchain system jointly store a complete transaction ledger, the storage requirements for each node are very high. On the one hand, it requires a large storage space, and on the other hand, it requires fast data reading and writing speeds to facilitate operations such as query and update. [0004] In the prior art, if the storage performance is only improved from the perspective of improving hardware performance, the cost will inevitably increase. For example, if a solid state drive (Solid State Dr...

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): G06F3/06
CPCG06F3/0604G06F3/0647G06F3/0685
Inventor 肖伟
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) 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