WO2022134830A1 - Method and apparatus for processing block node data, computer device, and storage medium - Google Patents

Method and apparatus for processing block node data, computer device, and storage medium Download PDF

Info

Publication number
WO2022134830A1
WO2022134830A1 PCT/CN2021/126083 CN2021126083W WO2022134830A1 WO 2022134830 A1 WO2022134830 A1 WO 2022134830A1 CN 2021126083 W CN2021126083 W CN 2021126083W WO 2022134830 A1 WO2022134830 A1 WO 2022134830A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
target
block node
query
keyword
Prior art date
Application number
PCT/CN2021/126083
Other languages
French (fr)
Chinese (zh)
Inventor
王强
Original Assignee
深圳壹账通智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2022134830A1 publication Critical patent/WO2022134830A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Definitions

  • the present application relates to the technical field of block storage, and in particular, to a method, apparatus, computer equipment and storage medium for processing block node data.
  • the downloaded data is viewed on the device. In this way, the downloaded data may take a lot of time for the user and is not the data required by the user, which not only wastes precious memory resources, but also consumes the user's precious time, resulting in poor user experience.
  • an embodiment of the present application provides a method for processing block node data, the method includes: in response to a query condition carried in a user's query request, determining a target area for storing target data on each block node The block node, the query request is used to query the target data; the performance of the target block node is analyzed by using a distributed probe route analysis method, and a performance analysis result is obtained; according to the performance analysis result and the query condition, the The stored data including at least the target data uploaded to the distributed cloud storage server is subjected to query processing to obtain the target data that meets the query conditions, and the target data includes target summary data that meets the query conditions. and the target full-text data that matches the query conditions.
  • an embodiment of the present application provides an apparatus for processing block node data, the apparatus comprising: a determination unit configured to determine a target on each block node in response to a query condition carried in a user's query request The target block node of the data storage, the query request is used to query the target data; the performance analysis unit is used to analyze the performance of the target block node determined by the determination unit by using a distributed probe route analysis method, and obtain A performance analysis result; a processing unit configured to query the stored data uploaded to the distributed cloud storage server including at least the target data according to the performance analysis result and the query condition analyzed by the performance analysis unit processing to obtain the target data that meets the query condition, and the target data includes target abstract data that matches the query condition and target full-text data that matches the query condition.
  • an embodiment of the present application provides a computer device, including a memory and a processor, where computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the processor, the processor causes the processor to Execute the above-mentioned processing method of block node data, the method includes: in response to the query condition carried in the user's query request, determining the target block node of the target data storage on each block node, and the query request is used for querying the target data; analyze the performance of the target block node by using a distributed probe route analysis method, and obtain a performance analysis result; Perform query processing on the stored data including the target data to obtain the target data that meets the query conditions, and the target data includes target summary data that meets the query conditions and targets that meet the query conditions. Full text data.
  • an embodiment of the present application provides a storage medium storing computer-readable instructions.
  • the one or more processors execute the above-mentioned block node A data processing method, the method comprising: in response to a query condition carried in a user's query request, determining a target block node for storing target data on each block node, and the query request is used to query the target data; using The distributed probe route analysis method analyzes the performance of the target block node, and obtains a performance analysis result; The stored data is subjected to query processing to obtain the target data that meets the query conditions, and the target data includes target abstract data that meets the query conditions and target full-text data that meets the query conditions.
  • the target block node for storing the target data can be determined in each block node row according to the query conditions carried in the query request, the target data that meets the user's query request can be quickly and accurately queried, Thus, the processing efficiency of the data stored on the block nodes is effectively improved, and the user experience is improved.
  • FIG. 1 is an implementation environment diagram of a method for processing block node data provided in an embodiment.
  • FIG. 2 is a block diagram of the internal structure of a computer device in one embodiment.
  • FIG. 3 is a schematic flowchart of a method for processing block node data provided by an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of an apparatus for processing block node data according to an embodiment of the present disclosure.
  • This application may relate to the field of artificial intelligence technology, for example, relevant data may be acquired and processed based on artificial intelligence technology.
  • the technical solutions of the present application can be applied to various data processing scenarios, such as data processing scenarios for medical data in digital medicine, and data processing scenarios for financial data in financial technology.
  • the medical data, financial data, etc. can be stored in the blockchain.
  • the medical data may include one or more of personal health records, prescriptions, examination reports, and medical insurance business data.
  • FIG. 1 is an implementation environment diagram of a method for processing block node data provided in an embodiment. As shown in FIG. 1 , the implementation environment includes a computer device 110 and a terminal 120 .
  • the terminal 120 and the computer device 110 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, etc., but are not limited thereto.
  • the computer device 110 and the terminal 110 may be connected through Bluetooth, USB (Universal Serial Bus, Universal Serial Bus) or other communication connection methods, which are not limited in this application.
  • FIG. 2 is a schematic diagram of the internal structure of a computer device in one embodiment.
  • the computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected through a system bus.
  • the non-volatile storage medium of the computer device stores an operating system, a database and computer-readable instructions
  • the database may store a sequence of control information.
  • the processor can realize a A method for processing block node data.
  • the processor of the computer device is used to provide computing and control capabilities and support the operation of the entire computer device.
  • Computer-readable instructions may be stored in the memory of the computer device, and when the computer-readable instructions are executed by the processor, the processor may execute a method for processing block node data.
  • the network interface of the computer equipment is used for communication with the terminal connection.
  • an embodiment of the present disclosure provides a method for processing block node data.
  • the method for processing block node data is applied to a server, and specifically includes the following method steps.
  • S302 In response to the query condition carried in the query request of the user, determine the target block node of the target data storage on each block node, and the query request is used to query the target data.
  • query conditions matching the user's query request may be configured according to the needs of different users.
  • the query conditions include at least one target keyword for querying target data and a valid time period of the data.
  • the target data includes not only the target abstract data conforming to the query conditions, but also the target full-text data conforming to the query conditions.
  • the method for processing block node data provided by an embodiment of the present disclosure further includes the following steps: in a blockchain network, discovering block nodes.
  • the discovery of block nodes can be divided into the discovery of initial block nodes and the discovery of block nodes after startup.
  • the discovery of the initial block node means that the block node has just been downloaded, and when it is run for the first time, there is no block node data in the block node.
  • the discovery of block nodes after startup indicates that the running wallet has been able to dynamically maintain available block nodes following the network.
  • the discovery process of the initial block node is as follows.
  • the discovery of the initial block node is realized in the following two ways: the first is DNS seed, also known as the DNS seed block node. DNS is a centralized domain name query service. The second is some addresses hardcoded in the code, and these addresses are called hardcoded seed block nodes. When the DNS seed block nodes all fail, the full block nodes will try to connect to the hardcoded seed block nodes.
  • a block node can send the list of peer block nodes it maintains to neighboring block nodes, and after the initial block node is discovered , the current block node will ask the other party for the block node list, that is, make a copy of the other party's block node list. Therefore, every time a protocol message needs to be sent, it will spend a fixed time trying to establish a connection with the block nodes in the existing block node list. As long as any block node can be connected before the timeout, there is no need to pass DNS seed block node gets the address.
  • S304 Analyze the performance of the target block node by using a distributed probe route analysis method, and obtain a performance analysis result.
  • the performance analysis result includes the block hash value of the target block node and the target storage amount of the target data stored by the target block node.
  • the method for processing block node data further includes the following steps: using a distributed probe route analysis method to analyze the nodes stored on each block node of the blockchain data.
  • the above block node list is obtained, and the block node list adopts a mature algorithm in the P2P network protocol, the KAD network.
  • the KAD network uses DHT to locate resources, which is a distributed hash table.
  • the KAD network will maintain a routing table for quickly locating the target block node.
  • the KAD network is based on the UDP protocol.
  • the block node discovery is based on the UDP protocol. After the block node is found, the data interaction will switch to the TCP protocol.
  • the interaction protocol process between each block node is as follows: Once the block node establishes a connection, the interaction between each block node will follow some specific commands, which are written in the header of the message and in the body of the message. Write the message content.
  • commands There are two types of commands: one is a request command, and the other is a data interaction command.
  • the first thing to do after the block node is connected is the handshake operation. Through the above handshake operation, get some brief information, for example, first exchange the version number to see if it is compatible.
  • Commands are generally divided into control commands and data transmission commands.
  • the getaddr command is used to obtain the list of available block nodes of the other party, and the inv command provides data transmission.
  • the message body will contain a data vector.
  • Block synchronization In order to realize data sharing between each block node, block synchronization is adopted. There are two methods of block synchronization. The first method is called HeaderFirst. This method will synchronize the block header first, and then obtain the block body from other block nodes after the synchronization is completed. This provides a better interactive process. This reduces the burden on the blockchain network; the second is called BlockFirst, which requires the blocks obtained from other block nodes to be complete.
  • HeaderFirst This method will synchronize the block header first, and then obtain the block body from other block nodes after the synchronization is completed. This provides a better interactive process. This reduces the burden on the blockchain network; the second is called BlockFirst, which requires the blocks obtained from other block nodes to be complete.
  • S306 Perform query processing on the stored data uploaded to the distributed cloud storage server including at least the target data according to the performance analysis result and the query conditions, to obtain the target data that meets the query conditions, and the target data includes the target abstracts that meet the query conditions. Data and target full-text data that match the query conditions.
  • the query conditions include at least one target keyword for querying the target data and a valid time period of the data
  • the query processing of the stored data uploaded to the distributed cloud storage server including at least the target data includes the following: Step: According to the at least one target keyword, select data matching the at least one target keyword from the stored data as candidate data.
  • selecting data matching the at least one target keyword from the stored data as candidate data includes the following steps: according to the at least one target keyword and the target abstract data, from the storage data The data that matches at least one target keyword is selected from the abstract data of the data as candidate data.
  • part of the data may be the hash value of the block, and part of the data may also be the stored data.
  • the summary data of the stored data may be a summary and summary of the full-text data corresponding to the stored data. In this way, the user can judge in advance whether the data stored in the current block has the target data required by the user by previewing the summary data.
  • the address information of the block node is pushed to the user's terminal device, so that according to the address information of the block node, the distributed The cloud storage server accurately locates the target block node where the target data that meets the query conditions of the user is stored, and queries the target abstract data corresponding to the target data and the target full-text data corresponding to the target data on the target block node.
  • the user in order to improve the security of blockchain data query and download, the user can also be asked to provide the hash value of the target block node storing the target data, only the hash value of the target block node provided by the user Only when the desired value is correct, the user is allowed to view or download the target abstract data and target full-text data corresponding to some data.
  • selecting data matching the at least one target keyword from the stored data as candidate data further includes the following steps: according to the at least one target keyword and the target full-text data, from The data matching at least one target keyword is selected from the full-text data of the stored data as candidate data.
  • the data within the valid time period of the data is selected from the candidate data as the target data.
  • the method for processing block node data further includes the following steps: converting the target abstract data, the target full-text data, the block hash value of the target block node and the target block
  • the target storage amount of the target data stored by the node is synchronized to the target block node.
  • the storage of the blockchain is based on a distributed database
  • the database is the data carrier of the blockchain.
  • each block has the hash of the previous block, which is called the parent block of the current block.
  • the transaction data is a single hash value and is stored in the block header. Through the hash value, the security of the data is improved. For the same message, the same hash value is generated. The hash value can help to see if the data has been tampered with.
  • the data can be run through a hash value algorithm, and the hash value of the data and the hash value of the received data can be compared. If the above two hash values are the same, the data is not changed. If the above two hashes do not match, the data is changed before it is received.
  • the hash value of the block after it is determined that the hash value of the block has not been tampered with, the hash value can be automatically synchronized to the block node.
  • the block hash value of the target block node can be automatically synchronized to the target block node.
  • digest data or storage data can also be automatically synchronized to the block node.
  • the target abstract data or the target full-text data can also be automatically synchronized to the target block node.
  • the method for processing block node data further includes the following steps: downloading the target digest data to the user's terminal device;
  • the processing efficiency of the data on the node is to further filter the target data according to the target summary data by downloading the target summary data to the user's terminal device, so that the target data can be accurately determined.
  • the method for processing block node data further includes the following steps: downloading the target full-text data to the user's terminal device; in this way, directly downloading the target full-text data to the user's terminal On the device, the user can quickly and accurately obtain the target data that meets the user's query conditions, which improves the processing efficiency of the data stored in each block node, and ultimately improves the user experience.
  • the method for processing block node data further includes the following steps: downloading the target abstract data to the user's terminal device, and downloading the target full-text data to the user's terminal device In this way, it is convenient for the user to review the target data according to the target summary data, and when the target full-text data needs to be viewed, the target full-text data that has been downloaded to the user's terminal device can be directly viewed.
  • the user who has the ability to view the target full-text data can also be configured to have the first authority, and the user who has the ability to download the target full-text data can be configured as Has a second authority, wherein the second authority is higher than the first authority.
  • the method for processing block node data further includes the following steps: acquiring historical behavior data of multiple users, if the historical behavior data of multiple users shows that a certain user
  • the target associated data related to the target full-text data is also shared, and the target associated data is uploaded to the target block node, then it is determined that the user who shares the target associated data not only has the first authority to view the target full-text data, but also has The second permission to download the target full-text data.
  • a reward mechanism is introduced, which is beneficial for more users to upload the target-related data related to the target full-text data to the target block node, so as to achieve the purpose of data sharing. .
  • the target block node of the target data storage in response to the query condition carried in the query request of the user, is determined on each block node; the performance of the target block node is analyzed by using the distributed probe route analysis method, Obtain a performance analysis result; according to the performance analysis result and query conditions, perform query processing on the stored data uploaded to the distributed cloud storage server including at least target data, and obtain target data that meets the query conditions. Therefore, according to the embodiment of the present application, the target block node of the target data storage can be determined in each block node row according to the query conditions carried in the query request, so that the target that meets the user's query request can be quickly and accurately queried. data, thereby effectively improving the processing efficiency of the data stored on the block nodes and improving the user experience.
  • the following is an embodiment of an apparatus for processing block node data of the present application, which can be used to execute an embodiment of a method for processing block node data of the present application.
  • an apparatus for processing block node data of the present application can be used to execute an embodiment of a method for processing block node data of the present application.
  • the apparatus for processing block node data of the present application please refer to the embodiments of the method for processing block node data of the present application.
  • FIG. 4 shows a schematic structural diagram of an apparatus for processing block node data provided by an exemplary embodiment of the present application.
  • the block node data processing device can be implemented as all or a part of the terminal through software, hardware or a combination of the two.
  • the block node data processing apparatus includes a determination unit 402 , a performance analysis unit 404 and a processing unit 406 .
  • the determining unit 402 is configured to, in response to the query condition carried in the query request of the user, determine the target block node of the target data storage on each block node, and the query request is used to query the target data.
  • the performance analysis unit 404 is configured to analyze the performance of the target block node determined by the determination unit 402 by adopting a distributed probe route analysis method to obtain a performance analysis result.
  • the processing unit 406 is configured to perform query processing on the stored data uploaded to the distributed cloud storage server including at least the target data according to the performance analysis results and query conditions analyzed by the performance analysis unit 404, to obtain target data that meets the query conditions,
  • the target data includes target abstract data conforming to the query condition and target full-text data conforming to the query condition.
  • the query conditions include at least one target keyword for querying the target data and a valid time period of the data
  • the processing unit 406 is configured to: filter the stored data according to the at least one target keyword that matches the at least one target keyword.
  • the data is used as candidate data; according to the valid time period of the data, the data within the valid time period of the data is selected from the candidate data as the target data.
  • the processing unit 406 is specifically configured to: filter data matching the at least one target keyword from the abstract data of the stored data as candidate data according to the at least one target keyword and the target abstract data.
  • processing unit 406 is further configured to: filter data matching the at least one target keyword from the full-text data of the stored data as candidate data according to the at least one target keyword and the target full-text data.
  • the performance analysis result includes the block hash value of the target block node and the target storage amount of the target data stored by the target block node.
  • the device further includes: a synchronization unit (not shown in FIG. 4 ) for storing the target abstract data, the target full-text data, the block hash value of the target block node and the target block node The target storage amount of data is synchronized to the target block node.
  • a synchronization unit (not shown in FIG. 4 ) for storing the target abstract data, the target full-text data, the block hash value of the target block node and the target block node The target storage amount of data is synchronized to the target block node.
  • the apparatus further includes: a downloading unit (not shown in FIG. 4 ), configured to download the target summary data to the terminal device of the user after the processing unit obtains the target data that meets the query condition, or, Download the target full-text data to the user's terminal device.
  • a downloading unit (not shown in FIG. 4 ), configured to download the target summary data to the terminal device of the user after the processing unit obtains the target data that meets the query condition, or, Download the target full-text data to the user's terminal device.
  • the downloading unit (not shown in FIG. 4 ) is further configured to download the target abstract data to the user’s terminal device and download the target full-text data to the user’s terminal device after the processing unit obtains the target data that meets the query condition .
  • the apparatus for processing block node data provided by the above embodiments executes the method for processing block node data
  • only the division of the above-mentioned functional modules is used as an example.
  • the function distribution is completed by different function modules, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above.
  • the apparatus for processing block node data provided by the above embodiments and the embodiment of the method for processing block node data belong to the same concept, and the implementation process of the embodiment is detailed in the embodiment of the method for processing block node data, which will not be repeated here.
  • the determining unit is used to determine the target block node of the target data storage on each block node in response to the query condition carried in the user's query request;
  • the performance analysis unit is used to analyze the route by distributed exploration The method analyzes the performance of the target block node determined by the determination unit, and obtains a performance analysis result; and the processing unit is used for, according to the performance analysis result and query condition analyzed by the performance analysis unit, to upload to the distributed cloud storage server at least the target block.
  • the stored data of the data is subjected to query processing to obtain target data that meets the query conditions.
  • the target block node of the target data storage can be determined in each block node row according to the query conditions carried in the query request, so that the target that meets the user's query request can be quickly and accurately queried. data, thereby effectively improving the processing efficiency of the data stored on the block nodes and improving the user experience.
  • a computer device in one embodiment, includes a memory, a processor, and a computer program stored in the memory and executable on the processor.
  • the processor executes the computer program, the following steps are implemented: in response to a user's
  • the query conditions carried in the query request are used to determine the target block node of the target data storage on each block node, and the query request is used to query the target data; the performance of the target block node is analyzed by the distributed probe routing analysis method, and the performance analysis is obtained.
  • Result According to the performance analysis results and query conditions, perform query processing on the stored data uploaded to the distributed cloud storage server including at least the target data, and obtain the target data that meets the query conditions, and the target data includes the target abstracts that meet the query conditions. Data and target full-text data that match the query conditions.
  • a storage medium stores computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the following steps: in response to a user's The query conditions carried in the query request determine the target block node of the target data storage on each block node, and the query request is used to query the target data; the performance of the target block node is analyzed by using the distributed probe routing analysis method, and the performance analysis is obtained. Result: According to the performance analysis result and the query conditions, query the stored data uploaded to the distributed cloud storage server including at least the target data, and obtain the target data that meets the query conditions, and the target data includes the target abstract that meets the query conditions. Data and target full-text data matching the query conditions.
  • the storage medium involved in this application may be non-volatile or volatile.
  • the aforementioned storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random storage memory (Random Access Memory, RAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Accounting & Taxation (AREA)
  • Computational Linguistics (AREA)
  • Finance (AREA)
  • Fuzzy Systems (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A method and apparatus for processing block node data, a computer device, and a storage medium. The method comprises: in response to a query condition carried in a query request of a user, determining a target block node for storage of target data on each block node (S302); analyzing performance of the target block node by using a distributed exploration routing analysis method to obtain a performance analysis result (S304); and performing, according to the performance analysis result and the query condition, query processing on stored data which is uploaded to a distributed cloud storage server and at least comprises the target data, so as to obtain target data meeting the query condition (S306). Therefore, since the target block node for storage of target data can be determined in each block node row according to the query condition carried in the query request, the target data meeting the query request of the user can be quickly and accurately queried, thereby effectively improving the processing efficiency of the data stored on the block node, and improving the user experience.

Description

区块节点数据的处理方法、装置、计算机设备和存储介质Method, device, computer equipment and storage medium for processing block node data
本申请要求于2020年12月23日提交中国专利局、申请号为202011537841.8,发明名称为“区块节点数据的处理方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 23, 2020 with the application number 202011537841.8 and the title of the invention is "block node data processing method, device, computer equipment and storage medium", all of which The contents are incorporated herein by reference.
技术领域technical field
本申请涉及区块存储技术领域,特别涉及区块节点数据的处理方法、装置、计算机设备和存储介质。The present application relates to the technical field of block storage, and in particular, to a method, apparatus, computer equipment and storage medium for processing block node data.
背景技术Background technique
发明人发现,目前的区块链技术,由于无法对存储于区块链中的各个区块节点上的数据提前进行查询及预览,需要先将待查询的数据下载至本地,并在用户的终端设备上进行查看下载下来的数据,这样,可能耗费用户大量时间下载下来的数据并不是用户所需的数据,不仅浪费了宝贵的内存资源,还耗费了用户宝贵的时间,用户体验差。The inventor found that the current blockchain technology cannot query and preview the data stored on each block node in the blockchain in advance. The downloaded data is viewed on the device. In this way, the downloaded data may take a lot of time for the user and is not the data required by the user, which not only wastes precious memory resources, but also consumes the user's precious time, resulting in poor user experience.
针对现有对存储于区块节点上的数据的处理方法过于滞后的问题,如何提高对存储于区块节点上的数据的处理效率,快速且精准地查询到用户所需的数据,是待解决的技术问题。In view of the problem that the existing processing methods of data stored on block nodes are too lagging, how to improve the processing efficiency of data stored on block nodes and quickly and accurately query the data required by users is to be solved technical issues.
技术问题technical problem
基于此,有必要针对现有对存储于区块链上的各个区块上的数据的处理效率低的问题,提供一种区块节点数据的处理方法、装置、计算机设备和存储介质。Based on this, it is necessary to provide a method, device, computer equipment and storage medium for processing block node data in order to solve the problem of low processing efficiency of the data stored on each block on the blockchain.
技术解决方案technical solutions
第一方面,本申请实施例提供了一种区块节点数据的处理方法,所述方法包括:响应于用户的查询请求中携带的查询条件,在各个区块节点上确定目标数据存储的目标区块节点,所述查询请求用于查询所述目标数据;采用分布式探查路由分析方法分析所述目标区块节点的性能,得到性能分析结果;根据所述性能分析结果和所述查询条件,对上传至分布式云存储服务器上的至少包括所述目标数据的存储数据进行查询处理,得到符合所述查询条件的所述目标数据,所述目标数据包括与所述查询条件相符合的目标摘要数据和与所述查询条件相符合的目标全文数据。In a first aspect, an embodiment of the present application provides a method for processing block node data, the method includes: in response to a query condition carried in a user's query request, determining a target area for storing target data on each block node The block node, the query request is used to query the target data; the performance of the target block node is analyzed by using a distributed probe route analysis method, and a performance analysis result is obtained; according to the performance analysis result and the query condition, the The stored data including at least the target data uploaded to the distributed cloud storage server is subjected to query processing to obtain the target data that meets the query conditions, and the target data includes target summary data that meets the query conditions. and the target full-text data that matches the query conditions.
第二方面,本申请实施例提供了一种区块节点数据的处理装置,所述装置包括:确定单元,用于响应于用户的查询请求中携带的查询条件,在各个区块节点上确定目标数据存储的目标区块节点,所述查询请求用于查询所述目标数据;性能分析单元,用于采用分布式探查路由分析方法分析所述确定单元确定的所述目标区块节点的性能,得到性能分析结果;处理单元,用于根据所述性能分析单元分析出的所述性能分析结果和所述查询条件,对上传至分布式云存储服务器上的至少包括所述目标数据的存储数据进行查询处理,得到符合所述查询条件的所述目标数据,所述目标数据包括与所述查询条件相符合的目标摘要数据和与所述查询条件相符合的目标全文数据。In a second aspect, an embodiment of the present application provides an apparatus for processing block node data, the apparatus comprising: a determination unit configured to determine a target on each block node in response to a query condition carried in a user's query request The target block node of the data storage, the query request is used to query the target data; the performance analysis unit is used to analyze the performance of the target block node determined by the determination unit by using a distributed probe route analysis method, and obtain A performance analysis result; a processing unit configured to query the stored data uploaded to the distributed cloud storage server including at least the target data according to the performance analysis result and the query condition analyzed by the performance analysis unit processing to obtain the target data that meets the query condition, and the target data includes target abstract data that matches the query condition and target full-text data that matches the query condition.
第三方面,本申请实施例提供一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行上述的区块节点数据的处理方法,该方法包括:响应于用户的查询请求中携带的查询条件,在各个区块节点上确定目标数据存储的目标区块节点,所述查询请求用于查询所述目标数据;采用分布式探查路由分析方法分析所述目标区块节点的性能,得到性能分析结果;根据所述性能分析结果和所述查询条件,对上传至分布式云存储服务器上的至少包括所述目标数据的存储数据进行查询处理,得到符合所述查询条件的所述目标数据,所述目标数据包括与所述查询条件相符合的目标摘要数据和与所述查询条件相符合的目标全文数据。In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, where computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the processor, the processor causes the processor to Execute the above-mentioned processing method of block node data, the method includes: in response to the query condition carried in the user's query request, determining the target block node of the target data storage on each block node, and the query request is used for querying the target data; analyze the performance of the target block node by using a distributed probe route analysis method, and obtain a performance analysis result; Perform query processing on the stored data including the target data to obtain the target data that meets the query conditions, and the target data includes target summary data that meets the query conditions and targets that meet the query conditions. Full text data.
第四方面,本申请实施例提供一种存储有计算机可读指令的存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行上述的区块节点数据的处理方法,该方法包括:响应于用户的查询请求中携带的查询条件,在各个区块节点上确定目标数据存储的目标区块节点,所述查询请求用于查询所述目标数据;采用分布式探查路由分析方法分析所述目标区块节点的性能,得到性能分析结果;根据所述性能分析结果和所述查询条件,对上传至分布式云存储服务器上的至少包括所述目标数据的存储数据进行查询处理,得到符合所述查询条件的所述目标数据,所述目标数据包括与所述查询条件相符合的目标摘要数据和与所述查询条件相符合的目标全文数据。In a fourth aspect, an embodiment of the present application provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the above-mentioned block node A data processing method, the method comprising: in response to a query condition carried in a user's query request, determining a target block node for storing target data on each block node, and the query request is used to query the target data; using The distributed probe route analysis method analyzes the performance of the target block node, and obtains a performance analysis result; The stored data is subjected to query processing to obtain the target data that meets the query conditions, and the target data includes target abstract data that meets the query conditions and target full-text data that meets the query conditions.
有益效果beneficial effect
采用本申请实施例,由于能够根据查询请求中携带的查询条件,在各个区块节点行确定目标数据存储的目标区块节点,这样,能够快速且精准地查询到符合用户查询请求的目标数据,从而有效地提高了对存储于区块节点上的数据的处理效率,提高了用户体验度。By adopting the embodiment of the present application, since the target block node for storing the target data can be determined in each block node row according to the query conditions carried in the query request, the target data that meets the user's query request can be quickly and accurately queried, Thus, the processing efficiency of the data stored on the block nodes is effectively improved, and the user experience is improved.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not limiting of the present application.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application.
图1为一个实施例中提供的一种区块节点数据的处理方法的实施环境图。FIG. 1 is an implementation environment diagram of a method for processing block node data provided in an embodiment.
图2为一个实施例中计算机设备的内部结构框图。FIG. 2 is a block diagram of the internal structure of a computer device in one embodiment.
图3是本公开实施例提供的一种区块节点数据的处理方法的流程示意图。FIG. 3 is a schematic flowchart of a method for processing block node data provided by an embodiment of the present disclosure.
图4是本公开实施例提供的一种区块节点数据的处理装置的结构示意图。FIG. 4 is a schematic structural diagram of an apparatus for processing block node data according to an embodiment of the present disclosure.
本发明的实施方式Embodiments of the present invention
以下描述和附图充分地示出本申请的具体实施方案,以使本领域的技术人员能够实践它们。The following description and drawings sufficiently illustrate specific embodiments of the application to enable those skilled in the art to practice them.
应当明确,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。It should be clear that the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
本申请可涉及人工智能技术领域,如可以基于人工智能技术对相关的数据进行获取和处理。可选的,本申请的技术方案可应用于各种数据处理场景,如针对数字医疗中的医疗数据的数据处理场景,又如对金融科技中的金融数据的数据处理场景。例如,该医疗数据、金融数据等可存储于区块链中。可选的,该医疗数据可包括个人健康档案、处方、检查报告、医疗保险业务数据中的一种或多种数据。This application may relate to the field of artificial intelligence technology, for example, relevant data may be acquired and processed based on artificial intelligence technology. Optionally, the technical solutions of the present application can be applied to various data processing scenarios, such as data processing scenarios for medical data in digital medicine, and data processing scenarios for financial data in financial technology. For example, the medical data, financial data, etc. can be stored in the blockchain. Optionally, the medical data may include one or more of personal health records, prescriptions, examination reports, and medical insurance business data.
下面结合附图详细说明本公开的可选实施例。The optional embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
图1为一个实施例中提供的一种区块节点数据的处理方法的实施环境图,如图1所示,在该实施环境中,包括计算机设备110以及终端120。FIG. 1 is an implementation environment diagram of a method for processing block node data provided in an embodiment. As shown in FIG. 1 , the implementation environment includes a computer device 110 and a terminal 120 .
需要说明的是,终端120以及计算机设备110可为智能手机、平板电脑、笔记本电脑、台式计算机等,但并不局限于此。计算机设备110以及终端110可以通过蓝牙、USB(Universal Serial Bus,通用串行总线)或者其他通讯连接方式进行连接,本申请在此不做限制。It should be noted that the terminal 120 and the computer device 110 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, etc., but are not limited thereto. The computer device 110 and the terminal 110 may be connected through Bluetooth, USB (Universal Serial Bus, Universal Serial Bus) or other communication connection methods, which are not limited in this application.
图2为一个实施例中计算机设备的内部结构示意图。如图2所示,该计算机设备包括通过系统总线连接的处理器、非易失性存储介质、存储器和网络接口。其中,该计算机设备的非易失性存储介质存储有操作系统、数据库和计算机可读指令,数据库中可存储有控件信息序列,该计算机可读指令被处理器执行时,可使得处理器实现一种区块节点数据的处理方法。该计算机设备的处理器用于提供计算和控制能力,支撑整个计算机设备的运行。该计算机设备的存储器中可存储有计算机可读指令,该计算机可读指令被处理器执行时,可使得处理器执行一种区块节点数据的处理方法。该计算机设备的网络接口用于与终端连接通信。本领域技术人员可以理解,图2中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。FIG. 2 is a schematic diagram of the internal structure of a computer device in one embodiment. As shown in FIG. 2, the computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected through a system bus. Wherein, the non-volatile storage medium of the computer device stores an operating system, a database and computer-readable instructions, and the database may store a sequence of control information. When the computer-readable instructions are executed by the processor, the processor can realize a A method for processing block node data. The processor of the computer device is used to provide computing and control capabilities and support the operation of the entire computer device. Computer-readable instructions may be stored in the memory of the computer device, and when the computer-readable instructions are executed by the processor, the processor may execute a method for processing block node data. The network interface of the computer equipment is used for communication with the terminal connection. Those skilled in the art can understand that the structure shown in FIG. 2 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
如图3所示,本公开实施例提供一种区块节点数据的处理方法,该区块节点数据的处理方法应用于服务器端,具体包括以下方法步骤。As shown in FIG. 3 , an embodiment of the present disclosure provides a method for processing block node data. The method for processing block node data is applied to a server, and specifically includes the following method steps.
S302:响应于用户的查询请求中携带的查询条件,在各个区块节点上确定目标数据存储的目标区块节点,查询请求用于查询目标数据。S302: In response to the query condition carried in the query request of the user, determine the target block node of the target data storage on each block node, and the query request is used to query the target data.
在本申请实施例中,可以根据不同用户的需求,配置与用户的查询请求所匹配的查询条件。查询条件包括用于查询目标数据的至少一个目标关键词和数据的有效时间段。目标数据不仅包括与查询条件相符合的目标摘要数据,目标数据还包括与查询条件相符合的目标全文数据。In this embodiment of the present application, query conditions matching the user's query request may be configured according to the needs of different users. The query conditions include at least one target keyword for querying target data and a valid time period of the data. The target data includes not only the target abstract data conforming to the query conditions, but also the target full-text data conforming to the query conditions.
在一种可能的实现方式中,本公开实施例提供的一种区块节点数据的处理方法还包括以下步骤:在区块链网络中,进行区块节点的发现。In a possible implementation manner, the method for processing block node data provided by an embodiment of the present disclosure further includes the following steps: in a blockchain network, discovering block nodes.
在本申请实施例中,区块节点的发现可分为初始区块节点的发现和启动后区块节点的发现。初始区块节点的发现即该区块节点是刚下载的,第一次运行,区块节点内没有任何区块节点数据。启动后区块节点的发现表示正在运行的钱包已经能跟随网络动态维护可用区块节点。In the embodiment of the present application, the discovery of block nodes can be divided into the discovery of initial block nodes and the discovery of block nodes after startup. The discovery of the initial block node means that the block node has just been downloaded, and when it is run for the first time, there is no block node data in the block node. The discovery of block nodes after startup indicates that the running wallet has been able to dynamically maintain available block nodes following the network.
具体地,初始区块节点的发现过程具体如下所述。Specifically, the discovery process of the initial block node is as follows.
在区块链网络中,初始区块节点的发现一共有如下两种方式实现:第一种为DNS seed,又称DNS种子区块节点。DNS就是中心化域名查询服务。第二种是代码中硬编码的一些地址,称这些地址为硬编码种子区块节点。当DNS种子区块节点全部失效后,全区块节点会尝试连接硬编码种子区块节点。In the blockchain network, the discovery of the initial block node is realized in the following two ways: the first is DNS seed, also known as the DNS seed block node. DNS is a centralized domain name query service. The second is some addresses hardcoded in the code, and these addresses are called hardcoded seed block nodes. When the DNS seed block nodes all fail, the full block nodes will try to connect to the hardcoded seed block nodes.
启动后区块节点的发现过程具体如下所述:在区块链网络中,一个区块节点可以将自己维护的对等区块节点列表发送给临近区块节点,在初始区块节点被发现之后,当前区块节点就要向对方索要区块节点列表,即将对方的区块节点列表复制一份。因此,在每次需要发送协议消息时,都会花费固定的时间尝试和已存的区块节点列表中的区块节点建立连接,只要有任何一个区块节点在超时之前可以连接上,就不用通过DNS种子区块节点获取地址。The discovery process of block nodes after startup is as follows: In a blockchain network, a block node can send the list of peer block nodes it maintains to neighboring block nodes, and after the initial block node is discovered , the current block node will ask the other party for the block node list, that is, make a copy of the other party's block node list. Therefore, every time a protocol message needs to be sent, it will spend a fixed time trying to establish a connection with the block nodes in the existing block node list. As long as any block node can be connected before the timeout, there is no need to pass DNS seed block node gets the address.
在实际应用场景中,若全区块节点数目非常多,则全部已存列表的区块节点连接超时的可能性很小。In practical application scenarios, if the number of full-block nodes is very large, the possibility of connection timeout of all the block nodes in the existing list is very small.
S304:采用分布式探查路由分析方法分析目标区块节点的性能,得到性能分析结果。S304: Analyze the performance of the target block node by using a distributed probe route analysis method, and obtain a performance analysis result.
在本申请实施例中,性能分析结果包括目标区块节点的区块哈希值和目标区块节点存储目标数据的目标存储量。In the embodiment of the present application, the performance analysis result includes the block hash value of the target block node and the target storage amount of the target data stored by the target block node.
上述罗列了常见的性能分析结果所包括的内容的,除了上述罗列的目标区块节点的区块哈希值和目标区块节点存储目标数据的目标存储量之外,还可以根据不同应用场景的需求,引入其它的参数,在此不再赘述。The above lists the contents of common performance analysis results. In addition to the block hash value of the target block node and the target storage amount of the target data stored by the target block node listed above, it can also be used according to different application scenarios. requirements, introduce other parameters, which will not be repeated here.
在一种可能的实现方式中,本公开实施例提供的一种区块节点数据的处理方法还包括以下步骤:采用分布式探查路由分析方法分析存储于区块链的各个区块节点上的节点数据。In a possible implementation manner, the method for processing block node data provided by the embodiment of the present disclosure further includes the following steps: using a distributed probe route analysis method to analyze the nodes stored on each block node of the blockchain data.
在区块链网络中,获取上述区块节点列表,该区块节点列表采用了P2P网络协议中的一种成熟算法,KAD网络。KAD网络使用了DHT来定位资源,为分布式哈希表。KAD网络会维护一个路由表,用于快速定位目标区块节点,其中,KAD网络基于UDP协议。在区块链网络中,区块节点发现是基于UDP协议,找到区块节点以后,数据交互又会切换到TCP协议上。In the blockchain network, the above block node list is obtained, and the block node list adopts a mature algorithm in the P2P network protocol, the KAD network. The KAD network uses DHT to locate resources, which is a distributed hash table. The KAD network will maintain a routing table for quickly locating the target block node. The KAD network is based on the UDP protocol. In the blockchain network, the block node discovery is based on the UDP protocol. After the block node is found, the data interaction will switch to the TCP protocol.
在采用分布式探查路由分析方法分析存储区块链的各个区块节点上的节点数据的过程中,会涉及到各个区块节点之间的交互协议。In the process of using the distributed probe route analysis method to analyze the node data on each block node of the storage blockchain, the interaction protocol between each block node will be involved.
各个区块节点之间的交互协议过程具体如下所述:一旦区块节点建立连接,各个区块节点之间的交互便会遵循一些特定的命令,这些命令写在消息的头部,消息体中写的则是消息内容。The interaction protocol process between each block node is as follows: Once the block node establishes a connection, the interaction between each block node will follow some specific commands, which are written in the header of the message and in the body of the message. Write the message content.
命令分为两种:一种是请求命令,一种是数据交互命令。There are two types of commands: one is a request command, and the other is a data interaction command.
区块节点连接完成后要做的第一件事情是握手操作。通过上述握手操作,获取一些简要信息,例如,先交换一下版本号,看看是否兼容。The first thing to do after the block node is connected is the handshake operation. Through the above handshake operation, get some brief information, for example, first exchange the version number to see if it is compatible.
握手完毕之后,需要保持长连接。为了保持区块节点之间长连接的心跳,采用了PING/PONG这两种类型的消息。After the handshake is completed, a long connection needs to be maintained. In order to maintain the heartbeat of the long connection between the block nodes, two types of messages, PING/PONG, are used.
命令一般分为控制命令和数据传输命令两种,例如,getaddr命令用于获取对方的可用区块节点列表,inv命令则提供了数据传输。消息体中会包含一个数据向量。Commands are generally divided into control commands and data transmission commands. For example, the getaddr command is used to obtain the list of available block nodes of the other party, and the inv command provides data transmission. The message body will contain a data vector.
为了实现各个区块节点之间的数据共享,采用了区块同步。区块同步的方式分为两种,第一种叫作HeaderFirst,这种方式会先同步区块头,同步完成以后再从其他区块节点获得区块体,这样,提供了较好的交互过程,从而减轻了区块链网络的负担;第二种叫作BlockFirst,即要求从其他区块节点获取的区块是完整的。In order to realize data sharing between each block node, block synchronization is adopted. There are two methods of block synchronization. The first method is called HeaderFirst. This method will synchronize the block header first, and then obtain the block body from other block nodes after the synchronization is completed. This provides a better interactive process. This reduces the burden on the blockchain network; the second is called BlockFirst, which requires the blocks obtained from other block nodes to be complete.
S306:根据性能分析结果和查询条件,对上传至分布式云存储服务器上的至少包括目标数据的存储数据进行查询处理,得到符合查询条件的目标数据,目标数据包括与查询条件相符合的目标摘要数据和与查询条件相符合的目标全文数据。S306: Perform query processing on the stored data uploaded to the distributed cloud storage server including at least the target data according to the performance analysis result and the query conditions, to obtain the target data that meets the query conditions, and the target data includes the target abstracts that meet the query conditions. Data and target full-text data that match the query conditions.
在本申请实施例中,查询条件包括用于查询目标数据的至少一个目标关键词和数据的有效时间段,对上传至分布式云存储服务器上的至少包括目标数据的存储数据进行查询处理包括以下步骤:根据至少一个目标关键词,从存储数据中筛选与至少一个目标关键词匹配的数据作为候选数据。In this embodiment of the present application, the query conditions include at least one target keyword for querying the target data and a valid time period of the data, and the query processing of the stored data uploaded to the distributed cloud storage server including at least the target data includes the following: Step: According to the at least one target keyword, select data matching the at least one target keyword from the stored data as candidate data.
在一种可能的实现方式中,根据至少一个目标关键词,从存储数据中筛选与至少一个目标关键词匹配的数据作为候选数据包括以下步骤:根据至少一个目标关键词和目标摘要数据,从存储数据的摘要数据中筛选与至少一个目标关键词匹配的数据作为候选数据。In a possible implementation manner, according to the at least one target keyword, selecting data matching the at least one target keyword from the stored data as candidate data includes the following steps: according to the at least one target keyword and the target abstract data, from the storage data The data that matches at least one target keyword is selected from the abstract data of the data as candidate data.
在本申请实施例中,为了节省资源,在存储数据中查询目标数据时,往往仅仅只查询存储数据的部分数据,例如,部分数据可以为区块的哈希值,部分数据也可以为存储数据的摘要数据,其中,存储数据的摘要数据可以是对存储数据对应的全文数据的概括和总结。这样,用户通过预览摘要数据提前判断当前区块所存储数据是否有用户所需的目标数据。若通过摘要数据判断出当前区块所存储数据包括用户所需的目标数据,则将该区块节点的地址信息推送至用户的终端设备上,以使得根据该区块节点的地址信息,在分布式云存储服务器上精准地定位出符合用户查询条件的目标数据所存储的目标区块节点,并在该目标区块节点上查询目标数据对应的目标摘要数据以及目标数据对应的目标全文数据。In the embodiment of the present application, in order to save resources, when querying the target data in the stored data, only part of the data of the stored data is often queried. For example, part of the data may be the hash value of the block, and part of the data may also be the stored data. The summary data of the stored data may be a summary and summary of the full-text data corresponding to the stored data. In this way, the user can judge in advance whether the data stored in the current block has the target data required by the user by previewing the summary data. If it is judged from the summary data that the data stored in the current block includes the target data required by the user, the address information of the block node is pushed to the user's terminal device, so that according to the address information of the block node, the distributed The cloud storage server accurately locates the target block node where the target data that meets the query conditions of the user is stored, and queries the target abstract data corresponding to the target data and the target full-text data corresponding to the target data on the target block node.
在本申请实施例中,为了提高区块链数据查询以及下载的安全性,还可以让用户提供存储目标数据的目标区块节点的哈希值,只有在用户提供的该目标区块节点的哈希值为正确的情况下,才允许用户查看或者下载部分数据对应的目标摘要数据和目标全文数据。In the embodiment of the present application, in order to improve the security of blockchain data query and download, the user can also be asked to provide the hash value of the target block node storing the target data, only the hash value of the target block node provided by the user Only when the desired value is correct, the user is allowed to view or download the target abstract data and target full-text data corresponding to some data.
在一种可能的实现方式中,根据至少一个目标关键词,从存储数据中筛选与至少一个目标关键词匹配的数据作为候选数据还包括以下步骤:根据至少一个目标关键词和目标全文数据,从存储数据的全文数据中筛选与至少一个目标关键词匹配的数据作为候选数据。In a possible implementation manner, according to the at least one target keyword, selecting data matching the at least one target keyword from the stored data as candidate data further includes the following steps: according to the at least one target keyword and the target full-text data, from The data matching at least one target keyword is selected from the full-text data of the stored data as candidate data.
根据数据的有效时间段,从候选数据中筛选处于数据的有效时间段内的数据作为目标数据。According to the valid time period of the data, the data within the valid time period of the data is selected from the candidate data as the target data.
在一种可能的实现方式中,本公开实施例提供的区块节点数据的处理方法还包括以下步骤:将目标摘要数据、目标全文数据、目标区块节点的区块哈希值和目标区块节点存储目标数据的目标存储量均同步至目标区块节点上。In a possible implementation manner, the method for processing block node data provided by the embodiment of the present disclosure further includes the following steps: converting the target abstract data, the target full-text data, the block hash value of the target block node and the target block The target storage amount of the target data stored by the node is synchronized to the target block node.
在本申请实施例中,区块链的存储基于分布式数据库,数据库是区块链的数据载体。In the embodiment of the present application, the storage of the blockchain is based on a distributed database, and the database is the data carrier of the blockchain.
在区块链中,每个区块都有前一个区块的哈希值,前一个区块被称为当前区块的父块。In a blockchain, each block has the hash of the previous block, which is called the parent block of the current block.
交易的数据为单一的哈希值,并存储在区块头。通过哈希值,提高了数据的安全性。对于相同的消息,会生成相同的哈希值。哈希值能够帮助查看数据是否被篡改。The transaction data is a single hash value and is stored in the block header. Through the hash value, the security of the data is improved. For the same message, the same hash value is generated. The hash value can help to see if the data has been tampered with.
在本申请实施例中,若要查看数据是否被篡改,可以通过哈希值算法运行数据,比较数据的哈希值和接收数据的哈希值。若上述两个哈希值是相同的,则不更改数据。若上述两个哈希值不匹配,则在接收数据之前,更改数据。In this embodiment of the present application, to check whether the data has been tampered with, the data can be run through a hash value algorithm, and the hash value of the data and the hash value of the received data can be compared. If the above two hash values are the same, the data is not changed. If the above two hashes do not match, the data is changed before it is received.
在本申请实施例中,在判断出区块的哈希值未被篡改之后,可以将哈希值自动同步到区块节点上。In the embodiment of the present application, after it is determined that the hash value of the block has not been tampered with, the hash value can be automatically synchronized to the block node.
在一种可能的实现方式中,在判断出目标区块节点的区块哈希值未被篡改之后,可以将目标区块节点的区块哈希值自动同步到目标区块节点上。In a possible implementation manner, after it is determined that the block hash value of the target block node has not been tampered with, the block hash value of the target block node can be automatically synchronized to the target block node.
除了将哈希值自动同步到区块节点上,还可以将摘要数据,或者存储数据自动同步到区块节点上。In addition to automatically synchronizing the hash value to the block node, digest data or storage data can also be automatically synchronized to the block node.
在一种可能的实现方式中,除了将目标区块节点的区块哈希值自动同步到目标区块节点上,还可以将目标摘要数据,或者目标全文数据自动同步到目标区块节点上。In a possible implementation manner, in addition to automatically synchronizing the block hash value of the target block node to the target block node, the target abstract data or the target full-text data can also be automatically synchronized to the target block node.
在一种可能的实现方式中,本公开实施例提供的区块节点数据的处理方法还包括以下步骤:将目标摘要数据下载至用户的终端设备上;这样,能够有效地提高对存储于区块节点上的数据的处理效率,通过将目标摘要数据下载至用户的终端设备上,以根据目标摘要数据进一步地对目标数据进行筛选,这样,能够精准地确定出目标数据。In a possible implementation manner, the method for processing block node data provided by the embodiment of the present disclosure further includes the following steps: downloading the target digest data to the user's terminal device; The processing efficiency of the data on the node is to further filter the target data according to the target summary data by downloading the target summary data to the user's terminal device, so that the target data can be accurately determined.
在一种可能的实现方式中,本公开实施例提供的区块节点数据的处理方法还包括以下步骤:将目标全文数据下载至用户的终端设备上;这样,直接下载目标全文数据至用户的终端设备上,使得用户能够快速且精准地得到符合用户的查询条件的目标数据,提高了对存储于各个区块节点上的数据的处理效率,最终提高了用户体验度。In a possible implementation manner, the method for processing block node data provided by the embodiment of the present disclosure further includes the following steps: downloading the target full-text data to the user's terminal device; in this way, directly downloading the target full-text data to the user's terminal On the device, the user can quickly and accurately obtain the target data that meets the user's query conditions, which improves the processing efficiency of the data stored in each block node, and ultimately improves the user experience.
在一种可能的实现方式中,本公开实施例提供的区块节点数据的处理方法还包括以下步骤:将目标摘要数据下载至用户的终端设备上,和将目标全文数据下载至用户的终端设备上;这样,便于用户根据目标摘要数据对目标数据进行回顾,以及在需要查看目标全文数据时,则直接查看已经下载至用户的终端设备上的目标全文数据。In a possible implementation manner, the method for processing block node data provided by the embodiment of the present disclosure further includes the following steps: downloading the target abstract data to the user's terminal device, and downloading the target full-text data to the user's terminal device In this way, it is convenient for the user to review the target data according to the target summary data, and when the target full-text data needs to be viewed, the target full-text data that has been downloaded to the user's terminal device can be directly viewed.
在本申请实施例中,为了进一步地提高区块节点中存储数据的安全性,还可以分别将具有查看目标全文数据的用户配置为具有第一权限,和将具有下载目标全文数据的用户配置为具有第二权限,其中,第二权限高于第一权限。In the embodiment of the present application, in order to further improve the security of the data stored in the block node, the user who has the ability to view the target full-text data can also be configured to have the first authority, and the user who has the ability to download the target full-text data can be configured as Has a second authority, wherein the second authority is higher than the first authority.
在实际应用场景中,在多个用户均提供了目标区块节点所具有的区块哈希值之后,则初步判断出上述多个用户均具有查看目标全文数据的第一权限。In an actual application scenario, after multiple users have provided the block hash value of the target block node, it is preliminarily determined that the multiple users have the first authority to view the target full-text data.
在一种可能的实现方式中,本公开实施例提供的区块节点数据的处理方法还包括以下步骤:获取多个用户的历史行为数据,若多个用户的历史行为数据显示出其中某一个用户也共享了与该目标全文数据相关的目标关联数据,并将目标关联数据上传至该目标区块节点,则判断出该分享目标关联数据的用户不仅具有查看目标全文数据的第一权限,还具有下载目标全文数据的第二权限,这样,引入了奖励机制,有利于更多的用户将与该目标全文数据相关的目标关联数据均上传至该目标区块节点上,以达到实现数据共享的目的。In a possible implementation manner, the method for processing block node data provided by the embodiment of the present disclosure further includes the following steps: acquiring historical behavior data of multiple users, if the historical behavior data of multiple users shows that a certain user The target associated data related to the target full-text data is also shared, and the target associated data is uploaded to the target block node, then it is determined that the user who shares the target associated data not only has the first authority to view the target full-text data, but also has The second permission to download the target full-text data. In this way, a reward mechanism is introduced, which is beneficial for more users to upload the target-related data related to the target full-text data to the target block node, so as to achieve the purpose of data sharing. .
在本公开实施例中,响应于用户的查询请求中携带的查询条件,在各个区块节点上确定目标数据存储的目标区块节点;采用分布式探查路由分析方法分析目标区块节点的性能,得到性能分析结果;根据性能分析结果和查询条件,对上传至分布式云存储服务器上的至少包括目标数据的存储数据进行查询处理,得到符合查询条件的目标数据。因此,采用本申请实施例,由于能够根据查询请求中携带的查询条件,在各个区块节点行确定目标数据存储的目标区块节点,这样,能够快速且精准地查询到符合用户查询请求的目标数据,从而有效地提高了对存储于区块节点上的数据的处理效率,提高了用户体验度。In the embodiment of the present disclosure, in response to the query condition carried in the query request of the user, the target block node of the target data storage is determined on each block node; the performance of the target block node is analyzed by using the distributed probe route analysis method, Obtain a performance analysis result; according to the performance analysis result and query conditions, perform query processing on the stored data uploaded to the distributed cloud storage server including at least target data, and obtain target data that meets the query conditions. Therefore, according to the embodiment of the present application, the target block node of the target data storage can be determined in each block node row according to the query conditions carried in the query request, so that the target that meets the user's query request can be quickly and accurately queried. data, thereby effectively improving the processing efficiency of the data stored on the block nodes and improving the user experience.
下述为本申请区块节点数据的处理装置实施例,可以用于执行本申请区块节点数据的处理方法实施例。对于本申请区块节点数据的处理装置实施例中未披露的细节,请参照本申请区块节点数据的处理方法实施例。The following is an embodiment of an apparatus for processing block node data of the present application, which can be used to execute an embodiment of a method for processing block node data of the present application. For details not disclosed in the embodiments of the apparatus for processing block node data of the present application, please refer to the embodiments of the method for processing block node data of the present application.
请参见图4,其示出了本申请一个示例性实施例提供的区块节点数据的处理装置的结构示意图。该区块节点数据的处理装置可以通过软件、硬件或者两者的结合实现成为终端的全部或一部分。该区块节点数据的处理装置包括确定单元402、性能分析单元404和处理单元406。Please refer to FIG. 4 , which shows a schematic structural diagram of an apparatus for processing block node data provided by an exemplary embodiment of the present application. The block node data processing device can be implemented as all or a part of the terminal through software, hardware or a combination of the two. The block node data processing apparatus includes a determination unit 402 , a performance analysis unit 404 and a processing unit 406 .
具体而言,确定单元402,用于响应于用户的查询请求中携带的查询条件,在各个区块节点上确定目标数据存储的目标区块节点,查询请求用于查询目标数据。Specifically, the determining unit 402 is configured to, in response to the query condition carried in the query request of the user, determine the target block node of the target data storage on each block node, and the query request is used to query the target data.
性能分析单元404,用于采用分布式探查路由分析方法分析确定单元402确定的目标区块节点的性能,得到性能分析结果。The performance analysis unit 404 is configured to analyze the performance of the target block node determined by the determination unit 402 by adopting a distributed probe route analysis method to obtain a performance analysis result.
处理单元406,用于根据性能分析单元404分析出的性能分析结果和查询条件,对上传至分布式云存储服务器上的至少包括目标数据的存储数据进行查询处理,得到符合查询条件的目标数据,目标数据包括与查询条件相符合的目标摘要数据和与查询条件相符合的目标全文数据。The processing unit 406 is configured to perform query processing on the stored data uploaded to the distributed cloud storage server including at least the target data according to the performance analysis results and query conditions analyzed by the performance analysis unit 404, to obtain target data that meets the query conditions, The target data includes target abstract data conforming to the query condition and target full-text data conforming to the query condition.
可选的,查询条件包括用于查询目标数据的至少一个目标关键词和数据的有效时间段,处理单元406用于:根据至少一个目标关键词,从存储数据中筛选与至少一个目标关键词匹配的数据作为候选数据;根据数据的有效时间段,从候选数据中筛选处于数据的有效时间段内的数据作为目标数据。Optionally, the query conditions include at least one target keyword for querying the target data and a valid time period of the data, and the processing unit 406 is configured to: filter the stored data according to the at least one target keyword that matches the at least one target keyword. The data is used as candidate data; according to the valid time period of the data, the data within the valid time period of the data is selected from the candidate data as the target data.
可选的,处理单元406具体用于:根据至少一个目标关键词和目标摘要数据,从存储数据的摘要数据中筛选与至少一个目标关键词匹配的数据作为候选数据。Optionally, the processing unit 406 is specifically configured to: filter data matching the at least one target keyword from the abstract data of the stored data as candidate data according to the at least one target keyword and the target abstract data.
可选的,处理单元406具体还用于:根据至少一个目标关键词和目标全文数据,从存储数据的全文数据中筛选与至少一个目标关键词匹配的数据作为候选数据。Optionally, the processing unit 406 is further configured to: filter data matching the at least one target keyword from the full-text data of the stored data as candidate data according to the at least one target keyword and the target full-text data.
可选的,性能分析结果包括目标区块节点的区块哈希值和目标区块节点存储目标数据的目标存储量。Optionally, the performance analysis result includes the block hash value of the target block node and the target storage amount of the target data stored by the target block node.
可选的,所述装置还包括:同步单元(在图4中未示出),用于将目标摘要数据、目标全文数据、目标区块节点的区块哈希值和目标区块节点存储目标数据的目标存储量均同步至目标区块节点上。Optionally, the device further includes: a synchronization unit (not shown in FIG. 4 ) for storing the target abstract data, the target full-text data, the block hash value of the target block node and the target block node The target storage amount of data is synchronized to the target block node.
可选的,所述装置还包括:下载单元(在图4中未示出),用于在处理单元得到符合查询条件的目标数据之后,将目标摘要数据下载至用户的终端设备上,或者,将目标全文数据下载至用户的终端设备上。Optionally, the apparatus further includes: a downloading unit (not shown in FIG. 4 ), configured to download the target summary data to the terminal device of the user after the processing unit obtains the target data that meets the query condition, or, Download the target full-text data to the user's terminal device.
下载单元(在图4中未示出),还用于在处理单元得到符合查询条件的目标数据之后,将目标摘要数据下载至用户的终端设备上和将目标全文数据下载至用户的终端设备上。The downloading unit (not shown in FIG. 4 ) is further configured to download the target abstract data to the user’s terminal device and download the target full-text data to the user’s terminal device after the processing unit obtains the target data that meets the query condition .
需要说明的是,上述实施例提供的区块节点数据的处理装置在执行区块节点数据的处理方法时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的区块节点数据的处理装置与区块节点数据的处理方法实施例属于同一构思,其体现实现过程详见区块节点数据的处理方法实施例,这里不再赘述。It should be noted that, when the apparatus for processing block node data provided by the above embodiments executes the method for processing block node data, only the division of the above-mentioned functional modules is used as an example. The function distribution is completed by different function modules, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above. In addition, the apparatus for processing block node data provided by the above embodiments and the embodiment of the method for processing block node data belong to the same concept, and the implementation process of the embodiment is detailed in the embodiment of the method for processing block node data, which will not be repeated here.
在本公开实施例中,确定单元用于响应于用户的查询请求中携带的查询条件,在各个区块节点上确定目标数据存储的目标区块节点;性能分析单元用于采用分布式探查路由分析方法分析确定单元确定的目标区块节点的性能,得到性能分析结果;以及处理单元用于根据性能分析单元分析出的性能分析结果和查询条件,对上传至分布式云存储服务器上的至少包括目标数据的存储数据进行查询处理,得到符合查询条件的目标数据。因此,采用本申请实施例,由于能够根据查询请求中携带的查询条件,在各个区块节点行确定目标数据存储的目标区块节点,这样,能够快速且精准地查询到符合用户查询请求的目标数据,从而有效地提高了对存储于区块节点上的数据的处理效率,提高了用户体验度。In the embodiment of the present disclosure, the determining unit is used to determine the target block node of the target data storage on each block node in response to the query condition carried in the user's query request; the performance analysis unit is used to analyze the route by distributed exploration The method analyzes the performance of the target block node determined by the determination unit, and obtains a performance analysis result; and the processing unit is used for, according to the performance analysis result and query condition analyzed by the performance analysis unit, to upload to the distributed cloud storage server at least the target block. The stored data of the data is subjected to query processing to obtain target data that meets the query conditions. Therefore, according to the embodiment of the present application, the target block node of the target data storage can be determined in each block node row according to the query conditions carried in the query request, so that the target that meets the user's query request can be quickly and accurately queried. data, thereby effectively improving the processing efficiency of the data stored on the block nodes and improving the user experience.
在一个实施例中,提出了一种计算机设备,计算机设备包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现以下步骤:响应于用户的查询请求中携带的查询条件,在各个区块节点上确定目标数据存储的目标区块节点,查询请求用于查询目标数据;采用分布式探查路由分析方法分析目标区块节点的性能,得到性能分析结果;根据性能分析结果和查询条件,对上传至分布式云存储服务器上的至少包括目标数据的存储数据进行查询处理,得到符合查询条件的目标数据,目标数据包括与查询条件相符合的目标摘要数据和与查询条件相符合的目标全文数据。In one embodiment, a computer device is proposed. The computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented: in response to a user's The query conditions carried in the query request are used to determine the target block node of the target data storage on each block node, and the query request is used to query the target data; the performance of the target block node is analyzed by the distributed probe routing analysis method, and the performance analysis is obtained. Result: According to the performance analysis results and query conditions, perform query processing on the stored data uploaded to the distributed cloud storage server including at least the target data, and obtain the target data that meets the query conditions, and the target data includes the target abstracts that meet the query conditions. Data and target full-text data that match the query conditions.
在一个实施例中,提出了一种存储有计算机可读指令的存储介质,该计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:响应于用户的查询请求中携带的查询条件,在各个区块节点上确定目标数据存储的目标区块节点,查询请求用于查询目标数据;采用分布式探查路由分析方法分析目标区块节点的性能,得到性能分析结果;根据性能分析结果和查询条件,对上传至分布式云存储服务器上的至少包括目标数据的存储数据进行查询处理,得到符合查询条件的目标数据,目标数据包括与查询条件相符合的目标摘要数据和与查询条件相符合的目标全文数据。In one embodiment, a storage medium is provided that stores computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the following steps: in response to a user's The query conditions carried in the query request determine the target block node of the target data storage on each block node, and the query request is used to query the target data; the performance of the target block node is analyzed by using the distributed probe routing analysis method, and the performance analysis is obtained. Result: According to the performance analysis result and the query conditions, query the stored data uploaded to the distributed cloud storage server including at least the target data, and obtain the target data that meets the query conditions, and the target data includes the target abstract that meets the query conditions. Data and target full-text data matching the query conditions.
可选的,本申请涉及的存储介质可以是非易失性的,也可以是易失性的。Optionally, the storage medium involved in this application may be non-volatile or volatile.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,该计算机程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,前述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random Access Memory,RAM)等。Those of ordinary skill in the art can understand that the realization of all or part of the processes in the methods of the above embodiments can be accomplished by instructing relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the program is During execution, it may include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random storage memory (Random Access Memory, RAM), etc.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features It is considered to be the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present application. It should be pointed out that for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (20)

  1. 一种区块节点数据的处理方法,其中,所述方法包括:A method for processing block node data, wherein the method comprises:
    响应于用户的查询请求中携带的查询条件,在各个区块节点上确定目标数据存储的目标区块节点,所述查询请求用于查询所述目标数据;In response to the query condition carried in the query request of the user, determine the target block node of the target data storage on each block node, and the query request is used to query the target data;
    采用分布式探查路由分析方法分析所述目标区块节点的性能,得到性能分析结果;Analyze the performance of the target block node by using a distributed probe route analysis method to obtain a performance analysis result;
    根据所述性能分析结果和所述查询条件,对上传至分布式云存储服务器上的至少包括所述目标数据的存储数据进行查询处理,得到符合所述查询条件的所述目标数据,所述目标数据包括与所述查询条件相符合的目标摘要数据和与所述查询条件相符合的目标全文数据。According to the performance analysis results and the query conditions, query processing is performed on the stored data uploaded to the distributed cloud storage server including at least the target data, to obtain the target data that meets the query conditions. The data includes target abstract data conforming to the query condition and target full-text data conforming to the query condition.
  2. 根据权利要求1所述的方法,其中,所述查询条件包括用于查询所述目标数据的至少一个目标关键词和数据的有效时间段,所述对上传至分布式云存储服务器上的至少包括所述目标数据的存储数据进行查询处理包括:The method according to claim 1, wherein the query condition includes at least one target keyword for querying the target data and a valid time period of the data, and the pair of data uploaded to the distributed cloud storage server at least includes The query processing of the stored data of the target data includes:
    根据至少一个目标关键词,从所述存储数据中筛选与至少一个目标关键词匹配的数据作为候选数据;According to at least one target keyword, filter data matching at least one target keyword from the stored data as candidate data;
    根据所述数据的有效时间段,从所述候选数据中筛选处于数据的有效时间段内的数据作为目标数据。According to the valid time period of the data, the data within the valid time period of the data is selected from the candidate data as the target data.
  3. 根据权利要求2所述的方法,其中,所述根据至少一个目标关键词,从所述存储数据中筛选与至少一个目标关键词匹配的数据作为候选数据包括:The method according to claim 2, wherein, according to the at least one target keyword, filtering the data matching the at least one target keyword from the stored data as the candidate data comprises:
    根据至少一个目标关键词和目标摘要数据,从所述存储数据的摘要数据中筛选与至少一个目标关键词匹配的数据作为所述候选数据。According to the at least one target keyword and the target abstract data, the data matching the at least one target keyword is selected from the abstract data of the stored data as the candidate data.
  4. 根据权利要求2所述的方法,其中,所述根据至少一个目标关键词,从所述存储数据中筛选与至少一个目标关键词匹配的数据作为候选数据还包括:The method according to claim 2, wherein, according to the at least one target keyword, filtering data matching at least one target keyword from the stored data as candidate data further comprises:
    根据至少一个目标关键词和目标全文数据,从所述存储数据的全文数据中筛选与至少一个目标关键词匹配的数据作为所述候选数据。According to the at least one target keyword and the target full-text data, the data matching the at least one target keyword is selected from the full-text data of the stored data as the candidate data.
  5. 根据权利要求1所述的方法,其中,The method of claim 1, wherein,
    所述性能分析结果包括所述目标区块节点的区块哈希值和所述目标区块节点存储所述目标数据的目标存储量。The performance analysis result includes the block hash value of the target block node and the target storage amount of the target data stored by the target block node.
  6. 根据权利要求5所述的方法,其中,所述方法还包括:The method of claim 5, wherein the method further comprises:
    将所述目标摘要数据、所述目标全文数据、所述目标区块节点的区块哈希值和所述目标区块节点存储所述目标数据的所述目标存储量均同步至所述目标区块节点上。Synchronize the target abstract data, the target full-text data, the block hash value of the target block node and the target storage amount of the target block node to store the target data to the target area on the block node.
  7. 根据权利要求1所述的方法,其中,在所述得到符合所述查询条件的所述目标数据之后,所述方法还包括:The method according to claim 1, wherein after obtaining the target data that meets the query condition, the method further comprises:
    将所述目标摘要数据下载至所述用户的终端设备上,和/或,downloading the target summary data to the user's terminal device, and/or,
    将所述目标全文数据下载至所述用户的终端设备上。Downloading the target full-text data to the user's terminal device.
  8. 一种区块节点数据的处理装置,其中,所述装置包括:An apparatus for processing block node data, wherein the apparatus comprises:
    确定单元,用于响应于用户的查询请求中携带的查询条件,在各个区块节点上确定目标数据存储的目标区块节点,所述查询请求用于查询所述目标数据;a determining unit, configured to determine a target block node for storing target data on each block node in response to the query condition carried in the user's query request, and the query request is used to query the target data;
    性能分析单元,用于采用分布式探查路由分析方法分析所述确定单元确定的所述目标区块节点的性能,得到性能分析结果;A performance analysis unit, configured to analyze the performance of the target block node determined by the determination unit by using a distributed probe route analysis method to obtain a performance analysis result;
    处理单元,用于根据所述性能分析单元分析出的所述性能分析结果和所述查询条件,对上传至分布式云存储服务器上的至少包括所述目标数据的存储数据进行查询处理,得到符合所述查询条件的所述目标数据,所述目标数据包括与所述查询条件相符合的目标摘要数据和与所述查询条件相符合的目标全文数据。The processing unit is configured to perform query processing on the stored data uploaded to the distributed cloud storage server including at least the target data according to the performance analysis result and the query condition analyzed by the performance analysis unit, and obtain a The target data of the query condition, the target data includes target abstract data that conforms to the query condition and target full-text data that conforms to the query condition.
  9. 一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述处理器执行以下方法:A computer device, comprising a memory and a processor, the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, causes the processor to perform the following method:
    响应于用户的查询请求中携带的查询条件,在各个区块节点上确定目标数据存储的目标区块节点,所述查询请求用于查询所述目标数据;In response to the query condition carried in the query request of the user, determine the target block node of the target data storage on each block node, and the query request is used to query the target data;
    采用分布式探查路由分析方法分析所述目标区块节点的性能,得到性能分析结果;Analyze the performance of the target block node by using a distributed probe route analysis method to obtain a performance analysis result;
    根据所述性能分析结果和所述查询条件,对上传至分布式云存储服务器上的至少包括所述目标数据的存储数据进行查询处理,得到符合所述查询条件的所述目标数据,所述目标数据包括与所述查询条件相符合的目标摘要数据和与所述查询条件相符合的目标全文数据。According to the performance analysis result and the query conditions, query processing is performed on the stored data uploaded to the distributed cloud storage server including at least the target data, to obtain the target data that meets the query conditions. The data includes target abstract data conforming to the query condition and target full-text data conforming to the query condition.
  10. 根据权利要求9所述的计算机设备,其中,所述查询条件包括用于查询所述目标数据的至少一个目标关键词和数据的有效时间段,执行所述对上传至分布式云存储服务器上的至少包括所述目标数据的存储数据进行查询处理包括:The computer device according to claim 9, wherein the query condition includes at least one target keyword for querying the target data and a valid time period of the data, and executing the uploading to the distributed cloud storage server Performing query processing on the stored data including at least the target data includes:
    根据至少一个目标关键词,从所述存储数据中筛选与至少一个目标关键词匹配的数据作为候选数据;According to at least one target keyword, screening data matching at least one target keyword from the stored data as candidate data;
    根据所述数据的有效时间段,从所述候选数据中筛选处于数据的有效时间段内的数据作为目标数据。According to the valid time period of the data, the data within the valid time period of the data is selected from the candidate data as the target data.
  11. 根据权利要求10所述的计算机设备,其中,执行所述根据至少一个目标关键词,从所述存储数据中筛选与至少一个目标关键词匹配的数据作为候选数据包括:The computer device according to claim 10, wherein performing the screening of data matching the at least one target keyword from the stored data as candidate data according to the at least one target keyword comprises:
    根据至少一个目标关键词和目标摘要数据,从所述存储数据的摘要数据中筛选与至少一个目标关键词匹配的数据作为所述候选数据。According to the at least one target keyword and the target abstract data, the data matching the at least one target keyword is selected from the abstract data of the stored data as the candidate data.
  12. 根据权利要求10所述的计算机设备,其中,执行所述根据至少一个目标关键词,从所述存储数据中筛选与至少一个目标关键词匹配的数据作为候选数据还包括:The computer device according to claim 10, wherein performing the screening of data matching the at least one target keyword from the stored data as candidate data according to the at least one target keyword further comprises:
    根据至少一个目标关键词和目标全文数据,从所述存储数据的全文数据中筛选与至少一个目标关键词匹配的数据作为所述候选数据。According to the at least one target keyword and the target full-text data, the data matching the at least one target keyword is selected from the full-text data of the stored data as the candidate data.
  13. 根据权利要求9所述的计算机设备,其中,所述性能分析结果包括所述目标区块节点的区块哈希值和所述目标区块节点存储所述目标数据的目标存储量;所述处理器还执行:The computer device according to claim 9, wherein the performance analysis result comprises a block hash value of the target block node and a target storage amount of the target data stored by the target block node; the processing The device also executes:
    将所述目标摘要数据、所述目标全文数据、所述目标区块节点的区块哈希值和所述目标区块节点存储所述目标数据的所述目标存储量均同步至所述目标区块节点上。Synchronizing the target abstract data, the target full-text data, the block hash value of the target block node and the target storage amount of the target block node to store the target data to the target area on the block node.
  14. 根据权利要求9所述的计算机设备,其中,在所述得到符合所述查询条件的所述目标数据之后,所述处理器还执行:The computer device according to claim 9, wherein after obtaining the target data that meets the query condition, the processor further executes:
    将所述目标摘要数据下载至所述用户的终端设备上,和/或,downloading the target summary data to the user's terminal device, and/or,
    将所述目标全文数据下载至所述用户的终端设备上。The target full-text data is downloaded to the user's terminal device.
  15. 一种存储有计算机可读指令的存储介质,所述计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下方法:A storage medium storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the following methods:
    响应于用户的查询请求中携带的查询条件,在各个区块节点上确定目标数据存储的目标区块节点,所述查询请求用于查询所述目标数据;In response to the query condition carried in the query request of the user, determine the target block node of the target data storage on each block node, and the query request is used to query the target data;
    采用分布式探查路由分析方法分析所述目标区块节点的性能,得到性能分析结果;Analyze the performance of the target block node by using a distributed probe route analysis method to obtain a performance analysis result;
    根据所述性能分析结果和所述查询条件,对上传至分布式云存储服务器上的至少包括所述目标数据的存储数据进行查询处理,得到符合所述查询条件的所述目标数据,所述目标数据包括与所述查询条件相符合的目标摘要数据和与所述查询条件相符合的目标全文数据。According to the performance analysis result and the query conditions, query processing is performed on the stored data uploaded to the distributed cloud storage server including at least the target data, to obtain the target data that meets the query conditions. The data includes target abstract data conforming to the query condition and target full-text data conforming to the query condition.
  16. 根据权利要求15所述的存储介质,其中,所述查询条件包括用于查询所述目标数据的至少一个目标关键词和数据的有效时间段,执行所述对上传至分布式云存储服务器上的至少包括所述目标数据的存储数据进行查询处理包括:The storage medium according to claim 15, wherein the query condition includes at least one target keyword for querying the target data and a valid time period of the data, and executing the uploading to the distributed cloud storage server Performing query processing on the stored data including at least the target data includes:
    根据至少一个目标关键词,从所述存储数据中筛选与至少一个目标关键词匹配的数据作为候选数据;According to at least one target keyword, screening data matching at least one target keyword from the stored data as candidate data;
    根据所述数据的有效时间段,从所述候选数据中筛选处于数据的有效时间段内的数据作为目标数据。According to the valid time period of the data, the data within the valid time period of the data is selected from the candidate data as the target data.
  17. 根据权利要求16所述的存储介质,其中,执行所述根据至少一个目标关键词,从所述存储数据中筛选与至少一个目标关键词匹配的数据作为候选数据包括:The storage medium according to claim 16, wherein performing the screening of data matching the at least one target keyword from the stored data as candidate data according to the at least one target keyword comprises:
    根据至少一个目标关键词和目标摘要数据,从所述存储数据的摘要数据中筛选与至少一个目标关键词匹配的数据作为所述候选数据。According to the at least one target keyword and the target abstract data, the data matching the at least one target keyword is selected from the abstract data of the stored data as the candidate data.
  18. 根据权利要求16所述的存储介质,其中,执行所述根据至少一个目标关键词,从所述存储数据中筛选与至少一个目标关键词匹配的数据作为候选数据还包括:The storage medium according to claim 16, wherein performing the screening of data matching the at least one target keyword from the stored data as candidate data according to the at least one target keyword further comprises:
    根据至少一个目标关键词和目标全文数据,从所述存储数据的全文数据中筛选与至少一个目标关键词匹配的数据作为所述候选数据。According to the at least one target keyword and the target full-text data, the data matching the at least one target keyword is selected from the full-text data of the stored data as the candidate data.
  19. 根据权利要求15所述的存储介质,其中,所述性能分析结果包括所述目标区块节点的区块哈希值和所述目标区块节点存储所述目标数据的目标存储量;所述处理器还执行:The storage medium according to claim 15, wherein the performance analysis result includes a block hash value of the target block node and a target storage amount of the target data stored by the target block node; the processing The device also executes:
    将所述目标摘要数据、所述目标全文数据、所述目标区块节点的区块哈希值和所述目标区块节点存储所述目标数据的所述目标存储量均同步至所述目标区块节点上。Synchronizing the target abstract data, the target full-text data, the block hash value of the target block node and the target storage amount of the target block node to store the target data to the target area on the block node.
  20. 根据权利要求15所述的存储介质,其中,在所述得到符合所述查询条件的所述目标数据之后,所述处理器还执行:The storage medium according to claim 15, wherein after obtaining the target data that meets the query condition, the processor further executes:
    将所述目标摘要数据下载至所述用户的终端设备上,和/或,downloading the target summary data to the user's terminal device, and/or,
    将所述目标全文数据下载至所述用户的终端设备上。The target full-text data is downloaded to the user's terminal device.
PCT/CN2021/126083 2020-12-23 2021-10-25 Method and apparatus for processing block node data, computer device, and storage medium WO2022134830A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011537841.8A CN112732775A (en) 2020-12-23 2020-12-23 Method and device for processing block node data, computer equipment and storage medium
CN202011537841.8 2020-12-23

Publications (1)

Publication Number Publication Date
WO2022134830A1 true WO2022134830A1 (en) 2022-06-30

Family

ID=75604399

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/126083 WO2022134830A1 (en) 2020-12-23 2021-10-25 Method and apparatus for processing block node data, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN112732775A (en)
WO (1) WO2022134830A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117874060A (en) * 2024-03-12 2024-04-12 北京市农林科学院信息技术研究中心 Supply chain product traceability data multi-condition query method and device based on block chain

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732775A (en) * 2020-12-23 2021-04-30 深圳壹账通智能科技有限公司 Method and device for processing block node data, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108664222A (en) * 2018-05-11 2018-10-16 北京奇虎科技有限公司 A kind of block catenary system and its application process
US20190147106A1 (en) * 2017-11-14 2019-05-16 International Business Machines Corporation Providing accountability of blockchain queries
CN109885583A (en) * 2019-01-17 2019-06-14 平安城市建设科技(深圳)有限公司 Data query method, apparatus, equipment and storage medium based on block chain
CN110622474A (en) * 2017-05-15 2019-12-27 维萨国际服务协会 Secure block link routing techniques
CN112732775A (en) * 2020-12-23 2021-04-30 深圳壹账通智能科技有限公司 Method and device for processing block node data, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110622474A (en) * 2017-05-15 2019-12-27 维萨国际服务协会 Secure block link routing techniques
US20190147106A1 (en) * 2017-11-14 2019-05-16 International Business Machines Corporation Providing accountability of blockchain queries
CN108664222A (en) * 2018-05-11 2018-10-16 北京奇虎科技有限公司 A kind of block catenary system and its application process
CN109885583A (en) * 2019-01-17 2019-06-14 平安城市建设科技(深圳)有限公司 Data query method, apparatus, equipment and storage medium based on block chain
CN112732775A (en) * 2020-12-23 2021-04-30 深圳壹账通智能科技有限公司 Method and device for processing block node data, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117874060A (en) * 2024-03-12 2024-04-12 北京市农林科学院信息技术研究中心 Supply chain product traceability data multi-condition query method and device based on block chain
CN117874060B (en) * 2024-03-12 2024-05-31 北京市农林科学院信息技术研究中心 Supply chain product traceability data multi-condition query method and device based on block chain

Also Published As

Publication number Publication date
CN112732775A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
US10187463B2 (en) Using a shared data store for peer discovery
JP5624479B2 (en) Sync server process
US8037135B2 (en) Automatic distributed downloading
US8880698B2 (en) Storage of content data in a peer-to-peer network
US8924460B2 (en) Method and system of administrating a peer-to-peer file sharing network
RU2531572C2 (en) Database replication method and table updating apparatus
US20120109830A1 (en) Apparatus, system and method for a decentralized social network system and decentralized payment network system
US10084856B2 (en) Method and apparatus for locating services within peer-to-peer networks
US20120072479A1 (en) Intelligent establishment of peer-to-peer communication
KR20120018178A (en) Swarm-based synchronization over a network of object stores
WO2022121538A1 (en) Data synchronization method and system based on blockchain, and related device
CN113452592B (en) Cross-cloud data access method and device under hybrid cloud architecture
US20190362361A1 (en) Autocommit transaction management in a blockchain network
WO2022134830A1 (en) Method and apparatus for processing block node data, computer device, and storage medium
US10931746B2 (en) Managing content downloads
CN109542862B (en) Method, device and system for controlling mounting of file system
US20230107093A1 (en) Data download method and apparatus, computer device, and storage medium
US20140143339A1 (en) Method, apparatus, and system for resource sharing
WO2022134797A1 (en) Data fragmentation storage method and apparatus, a computer device, and a storage medium
US20220091902A1 (en) Database access method and apparatus, computing device, and computer program product
WO2021226781A1 (en) Firewall rule updating method and apparatus, server, and storage medium
EP2350856A2 (en) Forgetting items with knowledge based synchronization
WO2021129541A1 (en) Synchronization of identity data
Femminella et al. Networking issues related to delivering and processing genomic big data
Garewal et al. The helium network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21908831

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 30.10.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21908831

Country of ref document: EP

Kind code of ref document: A1