Block chain data indexing and querying method, device, equipment and storage media

A technology for data indexing and data query, applied in the computer field, can solve the problems of low data query efficiency of blockchain and inability to effectively query blockchain data, and achieve the effect of improving data query efficiency

Active Publication Date: 2018-02-23
SHENZHEN INST OF ADVANCED TECH
View PDF2 Cites 15 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the present invention is to provide a data indexing and query method, device, equipment and storage medium of a block chain, aiming to solve the problem of the existing technology that cannot provide a method for effectively querying data in the block chain. The problem of low efficiency of blockchain data query

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 indexing and querying method, device, equipment and storage media
  • Block chain data indexing and querying method, device, equipment and storage media
  • Block chain data indexing and querying method, device, equipment and storage media

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] figure 1 It shows the implementation process of the blockchain data indexing method provided by Embodiment 1 of the present invention. For the convenience of explanation, only the parts related to the embodiment of the present invention are shown, and the details are as follows:

[0029] In step S101, the transaction data in the preset block chain is traversed to obtain a data pattern group in the transaction data that conforms to the preset longest frequent common pattern, and the data pattern group includes multiple data patterns.

[0030] In the embodiment of the present invention, the data pattern embodies the structural form of the data, the data pattern group includes multiple data patterns, the longest frequent common pattern refers to a group of data patterns, and this group of data patterns consists of no less than m data patterns Composition, and this group of data patterns appear at least k times at the same time. When a blockchain data index request is rece...

Embodiment 2

[0040] figure 2 It shows the implementation flow of the blockchain data query method provided by the second embodiment of the present invention. For the convenience of explanation, only the parts related to the embodiment of the present invention are shown, and the details are as follows:

[0041] In step S201, a blockchain data query request input by a user is received, and query keywords included in the blockchain data query request are obtained.

[0042] The embodiment of the present invention is applicable to the blockchain, especially applicable to the blockchain with the corresponding index view chain obtained by using the first embodiment of the present invention, so that it is convenient for the user to query the transaction data in the blockchain. In the embodiment of the present invention, before receiving the blockchain data query request input by the user, first traverse the transaction data in the blockchain, obtain the data pattern group in the transaction data ...

Embodiment 3

[0048] image 3 The structure of the blockchain data indexing device provided by the third embodiment of the present invention is shown. For the convenience of description, only the parts related to the embodiment of the present invention are shown, including:

[0049] The pattern group acquisition unit 31 is configured to traverse the transaction data in the preset block chain, and obtain the data pattern group in the transaction data that conforms to the preset longest frequent common pattern, and the data pattern group includes multiple data patterns.

[0050] In the embodiment of the present invention, when a block chain data index request is received, the pattern group acquisition unit 31 traverses the transaction data in the preset block chain, and obtains the data pattern group in the transaction data that conforms to the preset longest frequent common pattern , that is, to obtain the frequently used data pattern groups in the blockchain transaction data, so as to ensur...

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 is applicable to the technical field of computer, and provides a block chain data indexing and querying method, a device, a piece of equipment and storage media. The method includes thefollowing steps: traversing transaction data in a preset block chain; getting a data mode group which conforms to a preset most frequent public mode in the transaction data, wherein the data mode group includes multiple data modes; setting up the corresponding indexed view chain for each data mode in the data mode group; establishing the corresponding index of the transaction data in the block chain; and according to the corresponding relation between the transaction data and each of the data mode, storing the index in the corresponding indexed view of the indexed view chain corresponding to each data mode so as to establish the data index of the block chain, and further improve the query efficiency of the data in the block chain.

Description

technical field [0001] The invention belongs to the field of computer technology, and in particular relates to a block chain data index and query method, device, equipment and storage medium. Background technique [0002] Blockchain technology, also known as distributed ledger technology, is an Internet database technology. It is a new application model of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. It is decentralized, open and transparent. , safe and reliable features. Each block in the blockchain contains a block header and a block body. The role of the block header is to link to the previous block to provide integrity for the blockchain. The block body contains the transaction data during the block creation process. When it is necessary to query the transaction data in the blockchain, the transaction data of the current block can be queried through the block body, and the previous bl...

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): G06F17/30
CPCG06F16/2228G06F16/245
Inventor 曲强罗捷桓张金波
Owner SHENZHEN INST OF ADVANCED TECH
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