Block chain data storage and query method, device and equipment and storage medium

A technology of data storage and query methods, which is applied in the directions of database indexing, electronic digital data processing, and structured data retrieval. It can solve the problems of insufficient blockchain support for complex queries, low retrieval efficiency, and long time-consuming. The effect of storing and querying data on the chain and improving retrieval efficiency

Pending Publication Date: 2019-10-08
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF0 Cites 35 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main purpose of the present invention is to solve the problem of insufficient support of blockchain for complex queries and low retrieval efficiency. At the same time, it solves the problem of modifying data storage ...

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The embodiment of the present invention provides a block chain data storage and query method, device, equipment and storage medium. In the embodiment of the present invention, through the processing of the SQL statement, the SQL statement is compatible with the block chain distributed database and relationship The query and storage of large-scale databases, through the establishment of the corresponding relationship between the index database and the blockchain distributed database, improve the retrieval efficiency of blockchain business information, encapsulate the underlying interface of the blockchain, and use SQL statements and index databases to realize data on-chain Storage and query, lower development threshold and improve development efficiency.

[0031] In order to enable those skilled in the art to better understand the solutions of the present invention, the embodiments of the present invention will be described below with reference to the drawings in the embo...

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 relates to the field of block chains, in particular to the field of block structure improvement, and discloses block chain data storage and query method, device and equipment and a storage medium. The block chain data storage and query method comprises the steps: generating an index database; obtaining a target structured query language (SQL) statement, wherein the target SQL statement is a legal statement conforming to an SQL grammar rule; analyzing the target SQL statement according to a preset algorithm to obtain an abstract syntax tree; generating a logic execution plan according to the abstract syntax tree, wherein the logic execution plan comprises a data insertion plan, a data modification plan and a data query plan; and performing read-write operation on the block chain distributed database according to the logic generation plan and the index database to obtain a read-write result, the block chain distributed database being used for storing and querying data. By packaging the block chain bottom layer interface, the block chain data storage and query method uses the SQL statements and the index database to achieve data chaining storage and query, can lower thedevelopment threshold, and can improve the retrieval and development efficiency.

Description

technical field [0001] The invention relates to the field of block structure improvement, in particular to a block chain data storage and query method, device, equipment and storage medium. Background technique [0002] Blockchain (block chain, BC) is an intelligent peer-to-peer network that uses distributed databases to identify, disseminate and record information, also known as the value Internet. Blockchain is essentially a decentralized database. Blockchain Contains a list called blocks, with continuously growing and neatly arranged records. Each block contains a timestamp and a link to the previous block. The blockchain makes the data immutable. Once recorded, the data in a block is irreversible. [0003] Blockchain distributed storage data is of key-value type. Although the bottom layer of blockchain technology also provides interfaces for data operations, these interfaces are relatively simple, and the transaction information stored in the block is basically in the f...

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/2458G06F16/22
CPCG06F16/2471G06F16/2246
Inventor 鲁铁华
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
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