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

Data storage method, device and apparatus and readable storage medium

A data storage and data technology, applied in the field of cameras, can solve the problem of reducing the overall reading and writing performance, and achieve the effect of improving the overall reading and writing performance and meeting the needs of reading performance

Pending Publication Date: 2020-05-15
SHENZHEN THUNDER NETWORK TECH +1
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When the read hit rate is too low, it will also trigger the Major Compaction behavior of the LSM-tree storage engine, which will greatly reduce the overall read and write performance

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0060] see figure 1 , figure 1 It is a flow chart of a data storage method disclosed in the embodiment of this application. The method includes:

[0061] S101. Respond to various storage engines of the blockchain by using a custom general storage interface.

[0062] Among them, the blockchain supports the privacy chain.

[0063] Among them, the custom general storage interface is defined as follows:

[0064]

[0065]

[0066] Among them, / / is the comment / explanation separator.

[0067] Abstract the general db interface (database storage interface) according to the above interface definition to meet the support of blockchain multi-storage engines. In this embodiment, the module relationship diagram between the blockchain module and the storage engine is as follows figure 2 shown. That is, the blockchain and multiple storage engines, and a star topology centered on the blockchain.

[0068] It should be noted that, before performing the above step S101, the databa...

Embodiment 2

[0105] A data storage device provided by an embodiment of the present application is introduced below, and a data storage device described below and a data storage method described above may refer to each other.

[0106] It should be noted that, for more specific working processes of each module and unit in this embodiment, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details are not repeated here.

[0107] see Figure 5 , Figure 5 It is a schematic diagram of a data storage device disclosed in the embodiment of this application. The unit includes:

[0108] The multi-storage engine support module 101 is used to respond to various storage engines of the block chain by using a custom general storage interface; wherein, the block chain supports a privacy chain;

[0109] The stored data management module 102 is configured to manage the stored data corresponding to various storage engines according to the B+ tree structure;

[...

Embodiment 3

[0124] A data storage device provided by an embodiment of the present application is introduced below. The data storage device described below and the data storage method and device described above may refer to each other.

[0125] see Image 6 , Image 6 It is a schematic diagram of a data storage device disclosed in the embodiment of this application. The equipment includes:

[0126] Memory 501, for storing computer programs;

[0127] Processor 502, configured to execute a computer program to achieve the following steps:

[0128] Utilize a custom general storage interface to respond to various storage engines of the blockchain; among them, the blockchain supports privacy chains;

[0129] Manage the storage data corresponding to various storage engines according to the B+ tree structure;

[0130] After the target block of the blockchain completes a round of consensus, the unspent transaction output corresponding to the target block is obtained;

[0131] The primary key ...

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 data storage method and further discloses a data storage device and apparatus and a readable storage medium. The invention provides the data storage method. The data storagemethod comprises the following steps: responding to various storage engines of a block chain by utilizing a custom universal storage interface; wherein the block chain supports a privacy chain; managing the storage data corresponding to the various storage engines according to the B + tree structure; after the target block of the block chain completes a round of consensus, obtaining unspent transaction output corresponding to the target block; and storing the primary keys which do not spend transaction output in a manner of sequentially increasing according to a lexicographical order so as toensure that each group of KV records are inserted into the B + tree in a tail-to-tail manner. The overall read-write performance of the blockchain storage device can be improved, and the requirement of a private chain transaction link signature algorithm for the read performance of the storage engine can be met.

Description

technical field [0001] The present application relates to the technical field of cameras, in particular to a data storage method, device, equipment and readable storage medium. Background technique [0002] After the blockchain supports the privacy chain, each private transaction will contain several UTXOs, and each UTXO transaction will randomly obtain the previous output from the database to form a ring when signing the ring (the default ring size is 11, so a UTXO ring signature The operation will trigger 11 operations to read the database). [0003] The current blockchain only supports a single LSM-tree storage capability, and the definition of the LSM-tree storage engine shows that a read operation of an LSM-tree is often accompanied by the reading and writing of multiple sstable files. The larger the data volume, the larger the disk IO read. The problem becomes more obvious. When the read hit rate is too low, it will also trigger the Major Compaction behavior of the L...

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/22G06F21/60H04L9/08
CPCG06F16/2246G06F21/602H04L9/0825
Inventor 刘鹏程
Owner SHENZHEN THUNDER NETWORK TECH