Data read-write method and device

A data reading and writing, data block technology, applied in the direction of database indexing, structured data retrieval, special data processing applications, etc., can solve the problem of low efficiency of blockchain data retrieval, to improve storage and retrieval efficiency, improve efficiency, The effect of improving addressing efficiency

Pending Publication Date: 2020-10-16
JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD +1
View PDF6 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

It can be seen that in the current method, the efficiency of blockchain data retrieval is relatively low

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 read-write method and device
  • Data read-write method and device
  • Data read-write method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0041] The data reading and writing method provided by the invention can be applied to electronic equipment. Optionally, the electronic devices here may be various types of devices, such as smart phones, tablet computers, laptop computers, desktop computers, servers, etc., which are not specifically limited in the present invention. In order...

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 relates to a data reading and writing method and device. The method comprises the following steps: determining a target data block cluster space to which a target datablock to be read and written belongs; determining a target storage address corresponding to the target data block according to the initial address of the target data block cluster space, the space size of a block node in the target data block cluster space and the block index of the target data block; and performing read operation or write operation on the target data block according to the targetstorage address. Therefore, rapid addressing can be realized, and the data storage and retrieval efficiency is improved. Furthermore, by applying the data read-write method provided by the embodimentof the invention in the blockchain scene, the storage and retrieval efficiency of the blockchain data can be improved.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of data storage, and in particular, to a method and device for reading and writing data. Background technique [0002] At present, blockchain storage mostly adopts the method of memory block data, and stores blockchain data in KV database or files. Taking the KV database as an example, the KV database is a database that is organized, indexed, and stored in the form of a key-value (Key-Value). When storing blockchain data, a key-value pair is established for each block, where Key stores the hash value of the block, and Value stores the data of the block. When retrieving the blockchain data, traverse the key-value pairs according to the hash value of the blockchain data to be retrieved, and find the corresponding Value, that is, the blockchain data. It can be seen that in the current method, the efficiency of blockchain data retrieval is relatively low. Contents of the invention ...

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 Applications(China)
IPC IPC(8): G06F16/22G06F16/27
CPCG06F16/22G06F16/27G06F3/0604G06F3/064G06F3/0659G06F3/067
Inventor 唐振田
Owner JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products