Supercharge Your Innovation With Domain-Expert AI Agents!

A data storage method, device, equipment and storage medium

A data storage and data technology, applied in database design/maintenance, database indexing, structured data retrieval, etc., can solve problems such as poor performance and large resource overhead

Active Publication Date: 2021-06-22
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] If there is a fork of the blockchain and the blockchain data stored locally by some blockchain nodes needs to be rolled back and redone, the rollback operation will gradually restore the stored data in the underlying KV storage system to the fork point, and then execute the redo command in the new blockchain, that is, re-execute the business logic of all transactions, and then insert the generated block data into the KV storage system, which will inevitably lead to huge resource overhead
[0006] Therefore, due to the data processing characteristics of the blockchain system, when the existing KV storage system is used to support the data storage of blockchain nodes, the performance is not good.

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] figure 1 It is a flow chart of a data storage method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case where the KV storage system is used as the bottom storage system to process the data sent by the upper layer software. In particular, when the KV storage system supports the data storage of the blockchain system, it can better match the data processing characteristics of the blockchain system. The method can be executed by a data storage device, which can be implemented in the form of software and / or hardware, and can be integrated into a bearing computing device, especially a computing device serving as a block chain node. see figure 1 , the method specifically includes:

[0036] S110. Obtain a data processing request.

[0037] In this embodiment, a data processing request refers to a request for processing data; specifically, a data processing request is sent to the The data sent by the underlying storage system is used ...

Embodiment 2

[0054] figure 2 It is a flow chart of a data storage method provided by Embodiment 2 of the present invention. On the basis of the foregoing embodiments, this embodiment provides a specific solution executed based on data objects. see figure 2 , the method specifically includes:

[0055] S210. Obtain a data processing request.

[0056] S220. Determine the previous version of the data object according to the data processing request.

[0057] In this embodiment, the data object can also be called a handle or a pointer, and can be a virtual identifier for the underlying storage system to process one or a batch of data processing requests. The virtual identifier is used to facilitate the use of computer equipment during program execution. The hardware resources and the virtual resources constructed by the software are mainly able to correspond to storage resources with virtual identifiers, indicating that this data object needs to use a certain storage system and specific sto...

Embodiment 3

[0088] image 3 It is a flow chart of a data storage method provided by Embodiment 3 of the present invention. On the basis of the above embodiments, this embodiment provides a solution for determining the current version identifier according to a data processing request. see image 3 , the method specifically includes:

[0089] S310. Obtain a data processing request.

[0090] S320. Determine the previous version identifier, and generate the current version identifier according to the set numbering rule.

[0091] Or, the operation of S320 can also specifically be: determine the previous version identification, according to the serial number identification of the previous version identification, generate the serial number identification in the current version identification according to the set numbering rule, and add the version determined according to the data processing request. ID, which forms the current version ID with the serial number ID.

[0092] In this embodiment...

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 data storage method, device, equipment and storage medium. Wherein, the method includes: acquiring a data processing request; determining the current version identifier according to the data processing request; determining a target key-value pair for processing data according to the data processing request, and determining the target key-value pair The data in is processed; the newly generated target key-value pair is written into the storage space, wherein the key field of the key-value pair in the storage space stores a key identifier and a version identifier, and the key field of the newly generated target key-value pair The version ID in is the current version ID. By adopting the technical solution of the embodiment of the present invention, a version identifier is added to the key field of the key-value pair, so that the version corresponding to each key-value pair update can be recorded, and the required data can be selected according to the version identifier, which is the key for the blockchain. Data storage provides a new way of thinking.

Description

technical field [0001] Embodiments of the present invention relate to computer data storage technologies, and in particular, to a data storage method, device, equipment, and storage medium. Background technique [0002] There are many underlying data storage technologies used in the current blockchain system, and one of the more widely used ones is the Key Value (KV) storage system. Under the control of the upper layer software of the blockchain system, the KV storage system supports access processing such as data reading and writing of the blockchain system. [0003] In the KV storage system, many KVs are used to store various data required by the blockchain system, and some KVs need to be modified as blocks are generated. For example, after a transaction processing request is initiated in the blockchain network, the nodes in the blockchain network need to execute the smart contract in the transaction processing request. The execution of the smart contract needs to be base...

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/21G06F16/22
CPCG06F16/21G06F16/22G06F3/067G06F3/064G06F3/0604G06F16/27
Inventor 肖伟
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) 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