Block chain data processing method and device, apparatus and readable storage medium

A data processing and blockchain technology, applied in the blockchain field, can solve problems such as inability to connect to the application layer, low query efficiency, and queries that do not support complex logic.

Active Publication Date: 2019-12-24
JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF13 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a block chain data processing method, device, equipment and readable storage medium to solve the problem that the existing block chain does not support the query of some specific conditions or the query of complex logic, the query efficiency is low, and The problem of not being able to connect to the application layer

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
  • Block chain data processing method and device, apparatus and readable storage medium
  • Block chain data processing method and device, apparatus and readable storage medium
  • Block chain data processing method and device, apparatus and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] figure 1 It is a flow chart of the blockchain data processing method provided by Embodiment 1 of the present invention. The embodiment of the present invention provides a blockchain data processing method for the problem that the existing blockchain does not support the query of some specific conditions or the query of complex logic, and the query efficiency is low.

[0036] Such as figure 1 As shown, the specific steps of the method are as follows:

[0037] Step S101, when the Key-Value data needs to be stored, analyze the Value in the Key-Value data, and determine the data type of the Value.

[0038] Generally, the following two methods can be used in the blockchain system to write the blockchain data into the Key-Value database, one way is: Put(Key, Value), given the Key and Value; the other way is : Write(Value), Value is given, but Key is not defined.

[0039] In this embodiment, in order to be able to store the blockchain data of the Key-Value structure into a...

Embodiment 2

[0062] figure 2 It is a flow chart of the blockchain data processing method provided by Embodiment 2 of the present invention. On the basis of the first embodiment above, in this embodiment, Value includes data type, data format, number of fields and Value. Determine the target table corresponding to the data category of Value according to the data category information table, including: judging whether the data category of Value already exists in the data category information table; if the data category of Value already exists in the data category information table, then from the data category Obtain the storage information of the data category of Value in the information table; according to the storage information of the data category of Value, judge whether the data format and number of fields in Value are consistent with the data format and number of fields in the storage information; if they are consistent, then from the data category Obtain the target table correspondin...

Embodiment 3

[0102] image 3 It is a flow chart of the blockchain data processing method provided by Embodiment 3 of the present invention. On the basis of the first or second embodiment above, in this embodiment, an exemplary description will be given of the process of querying blockchain data when the data Key, data category and business field to be queried are known. Such as image 3 As shown, the specific steps of the method are as follows:

[0103] Step S301, in response to the data query request of the blockchain system, obtain the Key, data category and business field of the data to be queried.

[0104] This embodiment supports data query in the following ways: the first is to query all fields by specifying the Key and data category, which can be expressed as QueryAll(Key, DataType), where DataType represents the data category; the second is to specify the Key, data category And business field query, can be expressed as QueryFields(Key, DataType, fields[]), where DataType represe...

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 provides a block chain data processing method and device, an apparatus and a readable storage medium. According to the method, a data type information table is stored in a relational database in advance and is used for storing the storage information of all data types, and the storage information comprises the tables corresponding to the data types, a mapping relationship between theservice fields of Value of the data types and the table fields in the corresponding tables, and the data formats of Value of the data types, so that the mapping between the tables in the relational database and the service data in a block chain is realized. When the Key-Value data needs to be stored, the data type of Value is determined, and the target table corresponding to the data type of theValue is determined according to the data type information table, and the Key-Value data is written into the target table, so that the block chain data can be stored on the basis of the relational database, the data query of an application layer service system on the basis of the relational database is supported, and the query efficiency is improved.

Description

technical field [0001] The present invention relates to the technical field of block chain, in particular to a method, device, equipment and readable storage medium for block chain data processing. Background technique [0002] With the development of blockchain technology, more and more data are stored and interacted with blockchain. In blockchain technology, data is generated one by one in chronological order based on the formation of blocks and superimposed to form a chained data structure. Each block records the transaction information that occurred at the corresponding time. [0003] Because of the uncertainty of the blockchain storage data structure, most of the data in the blockchain system adopts the Key-Value storage model to store data in the form of key-value pairs. However, at present, the main logic of the application layer of most business systems is based on the relational database for data processing, which is different from the Key-Value storage model used ...

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/242G06F16/28
CPCG06F16/2282G06F16/2433G06F16/284G06F16/9024G06F16/242G06F16/245G06F16/258G06F16/2365
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