CN113742386B - Processing and analyzing method for block data of block chain account book - Google Patents

Processing and analyzing method for block data of block chain account book Download PDF

Info

Publication number
CN113742386B
CN113742386B CN202111293255.8A CN202111293255A CN113742386B CN 113742386 B CN113742386 B CN 113742386B CN 202111293255 A CN202111293255 A CN 202111293255A CN 113742386 B CN113742386 B CN 113742386B
Authority
CN
China
Prior art keywords
characteristic
node
feature
statistical
data
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN202111293255.8A
Other languages
Chinese (zh)
Other versions
CN113742386A (en
Inventor
张卫平
丁烨
张浩宇
李显阔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Global Digital Group Co Ltd
Original Assignee
Global Digital Group Co Ltd
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 Global Digital Group Co Ltd filed Critical Global Digital Group Co Ltd
Priority to CN202111293255.8A priority Critical patent/CN113742386B/en
Publication of CN113742386A publication Critical patent/CN113742386A/en
Application granted granted Critical
Publication of CN113742386B publication Critical patent/CN113742386B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • 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/2462Approximate or statistical 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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Probability & Statistics with Applications (AREA)
  • Computational Linguistics (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a processing and analyzing method for block data of a block chain account book, which utilizes the characteristic that a block chain system has a plurality of distributed operation nodes, and a service node analyzes a characteristic item of a query requirement proposed by a query node so as to obtain at least one characteristic item of the query requirement; the service node assigns at least one characteristic item to a plurality of nodes in the distributed system to perform block backtracking, and obtains records in a related block book of characteristic values matched with the characteristic item of the query requirement; further, after distributed caching is carried out on the obtained records in the account book, a plurality of key value pairs are generated; and finally, generating a relational database by collecting a plurality of key value pairs, and outputting a final result to the request node. The invention can improve the efficiency of converting into relational data, and can efficiently output and present to the data request party at last, thereby presenting the statistical data of the account book more intuitively.

Description

Processing and analyzing method for block data of block chain account book
Technical Field
The present invention relates to the field of blockchain data processing. In particular, the present invention relates to a method for processing and analyzing block data of a block chain account book.
Background
With the advent of blockchain technology, people have increased their applications to blockchains. In short, the block chain is essentially a distributed ledger, including both blocks and chains. The block is a container data structure contained in a public account book and aggregating transaction information, can be described as a page for accounting, and is used for recording transaction conditions occurring in a period of time; a chain may be understood as a tool to stick together multiple pages of billing.
The block chain is formed by connecting a plurality of blocks in series according to time sequence, and related information such as transaction, account numbers and the like is stored in each block. Each block is like a paper book, and daily journal of many people is recorded on the paper book. If we want to check how many large expenses are spent in the last year, we need to move out all accounts in the last year, and one book is looked over from beginning to end to find out the corresponding records. It can also be said that each tile is just like a paper book, and if we want to search from a stack of paper books by some keywords, there is no way but to look over from beginning to end. Data on the block chain are all discretized data, and a more effective data organization mode is needed so as to facilitate further query and analysis and visually present the final data.
According to the related published technical scheme, the technical scheme with the publication number of CN110928950 (A) adopts a synchronous mode of chain accounting and offline accounting to update the offline account book in real time, so that the dynamic acquisition of block chain data is realized, and the block chain account book can be further processed as soon as possible; the technical scheme of publication number US2021157798 (a1) proposes to obtain a data read-write request for an intelligent contract through a block link point, further analyze a storage field for indicating a target object in a block chain data set, and directly read the number of the storage field, thereby improving the reading efficiency; the technical solution of publication number US2021042272 (a1) proposes to classify the blockchain data hierarchically, so as to give a certain degree of priority to processing the blockchain data, and also describes a processing manner for improving the efficiency of processing the blockchain data from the side. However, the current solution cannot provide a more intuitive processing and analyzing method for block data to intuitively obtain statistical data in block transactions.
Disclosure of Invention
The invention aims to provide a processing and analyzing method suitable for block chain account book data, and aims to more intuitively present statistical data of an account book.
The invention adopts the following technical scheme: a processing and analyzing method for block data of a block chain account book; the processing analysis method comprises the following steps:
the service node receives a query request from the request node;
the service node analyzes the characteristic items contained in the query request as target characteristic items;
the service node sends a target characteristic value or a target characteristic value range to a first node which is responsible for at least one characteristic statistical organization of a target characteristic item;
the first node dispatches a backtracking task to at least one characteristic statistical node under the characteristic statistical organization; the feature statistical node performs on-chain backtracking, extracts all the account book records of the target feature item, and caches the extracted records;
the first node counts the records of the target characteristic items and submits the statistical data to the service node;
the service node integrates the statistical data to form a statistical report and returns the report to the request node;
wherein, the block chain comprises a plurality of characteristic statistical organizations; each feature statistic organization comprises a plurality of feature statistic nodes; a characteristic statistic organization is responsible for the statistic affairs of a target characteristic item, and a designated member service provider belonging to the characteristic statistic organization issues a digital certificate to the characteristic statistic node in each characteristic statistic organization; the characteristic node holding the digital certificate allows access to the cache space of other characteristic statistic nodes in the characteristic statistic organization and performs writing operation;
the block chain is provided with an external application program interface, and an application program is communicated with the request node through the external application program interface; a client makes a query request and receives statistical data through the application program;
the block chain is internally provided with a first channel; the first channel is used for legality communication between the request node and the service node; after receiving the query request of the request node, the service node applies to a block chain to verify the validity of the request node; after the validity of the request node is verified, submitting a query request to the service node;
a second channel is arranged in the block chain; the service node and the feature statistical organizations carry out legal communication in the second channel; the service node sends a target feature item and a target feature value/feature value range to at least one feature statistical organization in the second channel; the service node receives a statistical data result returned by at least one characteristic statistical organization in the second channel;
recording a characteristic item template in the block chain; the characteristic item template is used for describing a plurality of characteristic dimensions expressed by a block chain account book; the characteristic item template is stored in a block of the block chain and allows all nodes of the block chain to access; the feature item template is maintained by a plurality of feature statistical organizations, and only the specified feature statistical nodes are allowed to be modified;
in the process of backtracking the block, the characteristic counting node extracts all account book records including the target characteristic item; after extracting an account book record, the characteristic statistic node caches the account book record;
when the characteristic statistic node caches the account book record, the caching mode comprises local caching and distributed caching on each characteristic statistic node in the characteristic statistic organization;
when the account book record is cached, caching a Key Value pair < Key-Value > type of non-relational data; wherein, the Key is the target characteristic item, and the Value is the target characteristic Value.
The characteristic statistical nodes locate the target characteristic items in a cache, extract Key Value pairs < Key-Value > meeting conditions according to the target characteristic values or target characteristic Value ranges, and submit all the Key Value pairs < Key-Value > meeting conditions to the first node;
the first node converts all the Key Value pairs meeting the conditions into a relational data structure of the < Key-Value >; and submitting the converted relational data result to the service node.
The beneficial effects obtained by the invention are as follows:
1. the processing and analyzing method provided by the invention utilizes the characteristic that a block chain has a plurality of distributed nodes, carries out synchronous feature item search on the block chain, implements concurrent backtracking, and effectively utilizes the characteristic of high concurrent computing capability of a distributed system;
2. according to the processing and analyzing method, after the target characteristic Value of the target characteristic item is obtained, the non-relational data Key Value pair < Key-Value > is generated for the characteristic item and the characteristic Value, and the high flow conversion performance of data in the caching process is improved.
3. The processing and analyzing method can synchronously screen and convert the non-relational data while caching the block chain data, thereby improving the efficiency of converting the non-relational data into the relational data and finally efficiently outputting and presenting the relational data to a data requester.
4. The processing and analyzing method provided by the invention is used for modularly designing the software and the hardware, facilitates future upgrading or replacement of related software and hardware environments, and reduces the use cost.
Drawings
The invention will be further understood from the following description in conjunction with the accompanying drawings. The components in the figures are not necessarily to scale, emphasis instead being placed upon illustrating the principles of the embodiments. Like reference numerals designate corresponding parts throughout the different views.
FIG. 1 is a schematic diagram of an organization structure of nodes of a distributed system according to the present invention;
FIG. 2 is a schematic flow chart illustrating a method for processing and analyzing block book data according to the present invention;
FIG. 3 is a schematic diagram of data exchange of each node on multiple channels in the blockchain according to the present invention;
FIG. 4 is a diagram illustrating feature value screening performed by a first node in a plurality of feature statistics nodes according to the present invention;
FIG. 5 is a diagram illustrating the statistical results of the relational database generated by the present invention.
Detailed Description
In order to make the technical solution and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the embodiments thereof; it should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. Other systems, methods, and/or features of the present embodiments will become apparent to those skilled in the art upon review of the following detailed description. It is intended that all such additional systems, methods, features and advantages be included within this description, be within the scope of the invention, and be protected by the accompanying claims. Additional features of the disclosed embodiments are described in, and will be apparent from, the detailed description that follows.
The same or similar reference numerals in the drawings of the embodiments of the present invention correspond to the same or similar components; in the description of the present invention, it is to be understood that if there is an orientation or positional relationship indicated by the terms "upper", "lower", "left", "right", etc. based on the orientation or positional relationship shown in the drawings, it is only for convenience of description and simplification of description, but it is not intended to indicate or imply that the device or assembly referred to must have a specific orientation.
The first embodiment is as follows:
a processing and analyzing method for block data of a block chain account book; the processing analysis method comprises the following steps:
the service node receives a query request from the request node;
the service node analyzes the characteristic items contained in the query request as target characteristic items;
the service node sends a target characteristic value or a target characteristic value range to a first node which is responsible for at least one characteristic statistical organization of a target characteristic item;
the first node dispatches a backtracking task to at least one characteristic statistical node under the characteristic statistical organization; the feature statistical node performs on-chain backtracking, extracts all the account book records of the target feature item, and caches the extracted records;
the first node counts the records of the target characteristic items and submits the statistical data to the service node;
the service node integrates the statistical data to form a statistical report and returns the report to the request node;
wherein, the block chain comprises a plurality of characteristic statistical organizations; each feature statistic organization comprises a plurality of feature statistic nodes; a characteristic statistic organization is responsible for the statistic affairs of a target characteristic item, and a designated member service provider belonging to the characteristic statistic organization issues a digital certificate to the characteristic statistic node in each characteristic statistic organization; the characteristic node holding the digital certificate allows access to the cache space of other characteristic statistic nodes in the characteristic statistic organization and performs writing operation;
the block chain is provided with an external application program interface, and an application program is communicated with the request node through the external application program interface; a client makes a query request and receives statistical data through the application program;
the block chain is internally provided with a first channel; the first channel is used for legality communication between the request node and the service node; after receiving the query request of the request node, the service node applies to a block chain to verify the validity of the request node; after the validity of the request node is verified, submitting a query request to the service node;
a second channel is arranged in the block chain; the service node and the feature statistical organizations carry out legal communication in the second channel; the service node sends a target feature item and a target feature value/feature value range to at least one feature statistical organization in the second channel; the service node receives a statistical data result returned by at least one characteristic statistical organization in the second channel;
recording a characteristic item template in the block chain; the characteristic item template is used for describing a plurality of characteristic dimensions expressed by a block chain account book; the characteristic item template is stored in a block of the block chain and allows all nodes of the block chain to access; the feature item template is maintained by a plurality of feature statistical organizations, and only the specified feature statistical nodes are allowed to be modified;
in the process of backtracking the block, the characteristic counting node extracts all account book records including the target characteristic item; after extracting an account book record, the characteristic statistic node caches the account book record;
when the characteristic statistic node caches the account book record, the caching mode comprises local caching and distributed caching on each characteristic statistic node in the characteristic statistic organization;
when the account book record is cached, caching a Key Value pair < Key-Value > type of non-relational data; wherein, the Key is the target characteristic item, and the Value is the target characteristic Value.
The characteristic statistical nodes locate the target characteristic items in a cache, extract Key Value pairs < Key-Value > meeting conditions according to the target characteristic values or target characteristic Value ranges, and submit all the Key Value pairs < Key-Value > meeting conditions to the first node;
the first node converts all the Key Value pairs meeting the conditions into a relational data structure of the < Key-Value >; submitting the converted relational data result to the service node;
the first channel and the second channel are data exchange channels isolated between opposite channels in a block chain; under the condition of considering a plurality of different departments, different organizations, different access strategies of data privacy and the like, the application of multiple channels in the block chain realizes that different nodes in the same block chain are distributed to different channels for data exchange, so as to effectively distinguish independent transmission of data information among different nodes; therefore, preferably, the request node and the service node are allocated to the first channel, so that the condition that the request node is in doubt in validity is avoided, illegal communication to other feature statistical nodes is unauthorized, and large-area congestion and even paralysis caused by data interaction in the distributed system when a plurality of request nodes simultaneously initiate query requests and even network multiple concurrent attacks are avoided;
further, the blockchain network is managed by a plurality of organizations, each blockchain node has an identity information belonging to a certain organization, each node is authenticated through a Certificate Authority (CA), and according to the blockchain organization to which the node belongs, the certificate authority issues a digital certificate representing the membership of the organization to express the organization identity of the node. Mapping of identity information and organization about a node is provided by a Member Service Provider (MSP) which determines how a node is assigned to a particular role in a given organization and obtains the associated rights to access blockchain resources. A node can only be owned by one organization, and therefore can only be associated with a single MSP;
where CA is a certificate authority, a method for confirming the identity of a user by generating a digital certificate, which is one of asymmetric encryption techniques, through cryptography (asymmetric encryption). By using a digital certificate mode, the node uses a private key of the node to check and sign the data to be sent when accounting, and a receiver uses a public key of a sender to verify the sent data; the verification mode of the digital certificate can verify the correctness of the data and ensure the safety of the data;
furthermore, for different feature items, a specific organization is designated to be responsible for the designated feature items through a consensus mechanism in the block chain, so that the service node can more efficiently allocate tasks needing block backtracking to the designated organization, and the efficiency of block backtracking is improved on one hand;
on the other hand, different organizations cannot interfere backtracking of the same characteristic item, so that the situation of repeated operation or operation congestion is avoided in a distributed system;
further, the service node and a plurality of feature statistic organizations use the second channel for data interaction; preferably, if there are a large number of the feature statistical organizations and a large number of the feature statistical nodes, more channels may be used to separate different feature statistical organizations from the communication channels of the service nodes, thereby improving effective and high-speed transmission of information in the channels.
Example two:
this embodiment should be understood to include at least all of the features of any of the foregoing embodiments and further modifications thereon;
when data needs to be visually and specifically presented to people, more requirements are that the arrangement of the data is clear and the logic is complete, and a two-dimensional table mode is adopted in a traditional relational database, wherein each row is a data tuple; each column, which is a feature item described herein; each row of the relational database must have a primary key to uniquely identify the row (tuple); therefore, the relational database has strict data structure logic and is beneficial to later-stage processing and screening of data; therefore, for the purpose of presenting data, preferably, the data is stored by using a relational database, and is presented to people after being finally beautified based on the relational database;
however, according to the blockchain technical characteristics, the information of the blockchain ledger exists on each block, and the ledger information stored by each block is only the record of a series of transactions that occur on the blockchain within a period of time in the generation phase of the block; therefore, if account book information on a plurality of blocks needs to be extracted, a plurality of pieces of extracted information are scattered information before being processed and analyzed, and the information lacks a data structure relationship and is huge in quantity;
further, based on the characteristics of a distributed system, in the process of traversing the block book, high-concurrency backtracking, extraction and storage can be performed by using a plurality of feature statistical nodes; however, the traditional relational database needs to establish a data logical relationship during storage, and establishes a series of integrity constraints, so that the concurrency performance is low, and the statistical efficiency of the block chain data is greatly influenced; therefore, in this embodiment, as a characteristic of being suitable for block chain account book data, a non-relational database is formed in a non-relational data structure form, and initial data extracted by the feature statistical node is cached first and then is processed in the next step;
the non-relational database refers to a non-relational, distributed data storage system which generally does not guarantee compliance with the ACID principle; the non-relational database is characterized in that the analysis processing of the traditional Structured Query Language (SQL) is not needed, and the read-write performance of the non-relational database greatly exceeds the performance of the relational database; currently common non-relational databases include: such as HBase, Hypertable, MongoDB, Cassandra, etc.;
the non-relational data is stored based on Key Value pairs < Key-Value >, the structure of the non-relational data is not fixed, each data tuple can have different fields, each data tuple can be added with some own Key Value pairs < Key-Value > according to needs, and the fixed structure and the fixed space characteristics of the relational database are cancelled; when reading/writing the non-relational data, the multi-table is not subjected to associated query, and the operation can be completed only by extracting or writing the corresponding value according to the key, so that a large amount of operation resources and time are saved; therefore, the non-relational data and the non-relational database are just suitable for being used as the cached data type and data structure in the traversal process of the block chain ledger;
the embodiment comprises a conversion step of converting a non-relational database into a relational database, and aims to realize the conversion of a non-relational data set in a distributed node cache into a final relational database; the method aims to provide clearer data display logic when the last query result is submitted to the request node;
the first node submits the form of the screened multiple Key Value pairs < Key-Value > to the service node, including directly submitting complete Key Value pair data to the service node, or only submitting storage addresses of the screened multiple Key Value pairs < Key-Value > in a non-relational database based on the purpose of effectively utilizing the cache space of the service node, and the service node acquires the screened Key Value pairs < Key-Value > data by itself through connection in the second channel;
further, the service node records the screened multiple Key Value pairs < Key-Value > as a first data set; the service node establishes a new blank relational database and establishes a plurality of connections of the relational database; the service node extracts a plurality of Key values of a first data set one by one or in batches, and completes writing the data of the first data set into the relational database through the connection according to relational mapping;
further, the service node performs processing such as sorting, charting, segmentation and the like on the relational database so as to realize a final more visual data statistical result.
Example three:
this embodiment should be understood to include at least all of the features of any of the embodiments described above and further refinements thereto:
because the ledger records of the block chain on the previous blocks have the characteristic of being not falsifiable, no matter backtracking is carried out at any time and backtracking is carried out by any node, the obtained results are highly consistent and have strict logic sequence, so that the common ledger records can be kept in a distributed cache through an optimized cache mechanism for the ledger records of the specific characteristic items obtained by the characteristic statistic node, and the extraction in the cache is improved when the same ledger records are extracted at the later stage without backtracking the data of the blocks again;
in a distributed cache system composed of a plurality of feature statistical nodes, each feature statistical node is responsible for different feature items, and the hardware used for caching by each feature statistical node is different;
optionally, some of the feature statistics nodes have a larger Random Access Memory (RAM) cache capacity, for example, 64GB or more than 128GB, and may use the RAM as a main cache location, and for a server configured with a four-channel RAM, a RAM read-write bandwidth of 100GB/s may be provided; secondly, for a server configured by a dual-channel RAM, the read-write bandwidth of 50GB/s can be provided;
secondly, some of the characteristic statistical nodes take a solid State Storage (SSD) as a main memory, can provide a read-write speed of more than about 4GB/s, and relatively provide a cache empty amount of more than 1 TB;
secondly, some of the characteristic statistical nodes are only configured by older servers, such as mechanical hard disks, and the cache speed is low and the random reading performance is poor;
therefore, in this embodiment, the processing analysis method of the present invention is optimized by optimizing a distributed cache mechanism, and the embodiment includes the following implementation steps:
s201: preferentially setting a local cache as a cache preferred position in a local server side of the characteristic statistical node;
s202: counting, by the first node organized by the feature statistics, a number of extracted ledger records that are already in a distributed cache for a period of time, such as 24 hours or 48 hours; or the number of times of extraction within a certain number of queries, for example, within the number of queries of 10000 times past;
s203: classifying a plurality of account book records in the distributed cache according to the number of hot spots, for example, setting the account book record with the most read top 10% as a first priority; the account book records with the highest reading times of 11% to 40% are set as a second priority; setting other account book records as a third priority level;
s204: copying the account book records of the first priority to the feature statistical node which takes an RAM as cache hardware; copying the account book record of the second priority to the feature statistical node which takes the SSD as cache hardware; the account book records of the third priority are cached in a default rule and a default rule according to the nearby principle of the current distributed cache system;
through the optimization mode, the account book records with high heat degrees are preferably placed in a high-speed cache position, so that high-efficiency reading efficiency is provided, and the conversion speed from a non-relational database to a relational database is increased;
furthermore, the cache position of the account book record is adjusted through the heat degree of the periodic account book record, until the account book record is not cached any more, so that the limited distributed cache space is optimized, and the capacity of each characteristic statistic node is reduced.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Although the invention has been described above with reference to various embodiments, it should be understood that many changes and modifications may be made without departing from the scope of the invention. That is, the methods, systems, and devices discussed above are examples. Various configurations may omit, substitute, or add various procedures or components as appropriate. For example, in alternative configurations, the methods may be performed in an order different than that described, and/or various components may be added, omitted, and/or combined. Moreover, features described with respect to certain configurations may be combined in various other configurations, as different aspects and elements of the configurations may be combined in a similar manner. Further, elements therein may be updated as technology evolves, i.e., many elements are examples and do not limit the scope of the disclosure or claims.
Specific details are given in the description to provide a thorough understanding of the exemplary configurations including implementations. However, configurations may be practiced without these specific details, for example, well-known circuits, processes, algorithms, structures, and techniques have been shown without unnecessary detail in order to avoid obscuring the configurations. This description provides example configurations only, and does not limit the scope, applicability, or configuration of the claims. Rather, the foregoing description of the configurations will provide those skilled in the art with an enabling description for implementing the described techniques. Various changes may be made in the function and arrangement of elements without departing from the spirit or scope of the disclosure.
In conclusion, it is intended that the foregoing detailed description be regarded as illustrative rather than limiting, and that it be understood that these examples are illustrative only and are not intended to limit the scope of the invention. After reading the description of the invention, the skilled person can make various changes or modifications to the invention, and these equivalent changes and modifications also fall into the scope of the invention defined by the claims.

Claims (10)

1. A processing and analyzing method for block data of a block chain account book is characterized by comprising the following steps:
the service node receives a query request from the request node;
the service node analyzes the characteristic items contained in the query request as target characteristic items;
the service node sends a target characteristic value or a target characteristic value range to a first node which is responsible for at least one characteristic statistical organization of a target characteristic item;
the first node dispatches a backtracking task to at least one characteristic statistical node under the characteristic statistical organization; the feature statistical node performs on-chain backtracking, extracts all the account book records of the target feature item, and caches the extracted records;
the first node counts the account book records of the target characteristic item according to a target characteristic value or a target characteristic value range, and submits the statistical data to the service node;
the service node integrates the statistical data to form a statistical report and returns the report to the request node;
wherein, the block chain comprises a plurality of characteristic statistical organizations; each feature statistic organization comprises a plurality of feature statistic nodes; a characteristic statistic organization is responsible for the statistic affairs of a target characteristic item, and a designated member service provider belonging to the characteristic statistic organization issues a digital certificate to the characteristic statistic node in each characteristic statistic organization; and the characteristic statistic node holding the digital certificate allows access to the cache space of other characteristic statistic nodes in the characteristic statistic organization and performs write operation.
2. The method of claim 1, wherein the blockchain has an external application program interface, and an application program communicates with the requesting node through the external application program interface; the client makes a query request and receives statistical data through the application.
3. The method of claim 2, wherein the blockchain has a first channel therein; the first channel is used for legality communication between the request node and the service node; after receiving the query request of the request node, the service node applies to a block chain to verify the validity of the request node; and when the validity of the request node is verified, submitting a query request to the service node.
4. The method of claim 3, wherein the blockchain has a second channel therein; the service node and the feature statistical organizations carry out legal communication in the second channel; the service node sends a target feature item and a target feature value/feature value range to at least one feature statistical organization in the second channel; and the service node receives a statistical data result returned by at least one characteristic statistical organization in the second channel.
5. The method as claimed in claim 1, wherein a characteristic item template is recorded in the blockchain; the characteristic item template is used for describing a plurality of characteristic dimensions expressed by a block chain account book; the characteristic item template is stored in a block of the block chain and allows all nodes of the block chain to access; the feature item template is maintained by a plurality of feature statistic organizations, and only the specified feature statistic nodes are allowed to be modified.
6. The method according to claim 5, wherein the feature statistics node extracts all ledger records including target feature items during block backtracking; and after one account book record is extracted by the characteristic counting node, caching the account book record.
7. The method of claim 6, wherein when the characteristic statistics node caches the book record, the caching method includes local caching and distributed caching at each characteristic statistics node in the characteristic statistics organization.
8. The method of claim 7, wherein when the ledger record is cached, a Key-Value type of non-relational data is used for caching; wherein, the Key is the target characteristic item, and the Value is the target characteristic Value.
9. The method of claim 8, wherein the plurality of feature statistics nodes locate the target feature item in a cache, extract a Key-Value pair < Key-Value > that meets a condition according to the target feature Value or a target feature Value range, and submit all Key-Value pairs < Key-Value > that meet the condition to the first node.
10. The method according to claim 9, wherein the first node converts all the Key Value pairs < Key-Value > that meet the condition into a relational data structure; and submitting the converted relational data result to the service node.
CN202111293255.8A 2021-11-03 2021-11-03 Processing and analyzing method for block data of block chain account book Active CN113742386B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111293255.8A CN113742386B (en) 2021-11-03 2021-11-03 Processing and analyzing method for block data of block chain account book

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111293255.8A CN113742386B (en) 2021-11-03 2021-11-03 Processing and analyzing method for block data of block chain account book

Publications (2)

Publication Number Publication Date
CN113742386A CN113742386A (en) 2021-12-03
CN113742386B true CN113742386B (en) 2022-02-08

Family

ID=78727240

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111293255.8A Active CN113742386B (en) 2021-11-03 2021-11-03 Processing and analyzing method for block data of block chain account book

Country Status (1)

Country Link
CN (1) CN113742386B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115129786A (en) * 2022-06-29 2022-09-30 蚂蚁区块链科技(上海)有限公司 Method and device for maintaining block chain data, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109376187A (en) * 2018-12-17 2019-02-22 北京京东金融科技控股有限公司 A kind of querying method and device based on block chain
CN110287226A (en) * 2019-05-10 2019-09-27 深圳壹账通智能科技有限公司 Data query method and device based on block chain
CN111586561A (en) * 2020-04-28 2020-08-25 中国联合网络通信集团有限公司 Tourist information statistics and analysis method and device based on block chain network, and gateway

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10437630B2 (en) * 2016-04-10 2019-10-08 Bank Of America Corporation System for transforming large scale electronic processing using application block chain and multi-structured data stores
US10417217B2 (en) * 2016-08-05 2019-09-17 Chicago Mercantile Exchange Inc. Systems and methods for blockchain rule synchronization
US10929473B2 (en) * 2018-09-27 2021-02-23 Palo Alto Research Center Incorporated Integrated index blocks and searching in blockchain systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109376187A (en) * 2018-12-17 2019-02-22 北京京东金融科技控股有限公司 A kind of querying method and device based on block chain
CN110287226A (en) * 2019-05-10 2019-09-27 深圳壹账通智能科技有限公司 Data query method and device based on block chain
CN111586561A (en) * 2020-04-28 2020-08-25 中国联合网络通信集团有限公司 Tourist information statistics and analysis method and device based on block chain network, and gateway

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于区块链的产品链互联网统计研究;汪涛等;《统计与决策》;20201031;第10-15页 *

Also Published As

Publication number Publication date
CN113742386A (en) 2021-12-03

Similar Documents

Publication Publication Date Title
US10949447B2 (en) Blockchain-based data synchronizing and data block parsing method and device
US9363322B1 (en) Implementation of a web scale data fabric
CN103064933A (en) Data query method and system
CN101645032B (en) Performance analysis method of application server and application server
WO2009153687A1 (en) Distributed hardware-based data querying
CN109582717A (en) A kind of database unified platform and its read method towards electric power big data
CN105989129A (en) Real-time data statistic method and device
CN111258978A (en) Data storage method
US7054833B1 (en) Method and system for processing unclaimed property information
CN103995807A (en) Massive data query and secondary processing method based on Web architecture
CN111078781B (en) Multi-source flow type big data fusion convergence processing frame model implementation method
CN106933868A (en) A kind of method and data server for adjusting data fragmentation distribution
WO2021175021A1 (en) Product push method and apparatus, computer device, and storage medium
CN111897790A (en) Wind control log collection method and device, electronic equipment and storage medium
CN113742386B (en) Processing and analyzing method for block data of block chain account book
US7895247B2 (en) Tracking space usage in a database
JP2009146350A (en) Service management device, data access controller, and data retrieval method
CN104899278A (en) Method and apparatus for generating data operation logs of Hbase database
CN109446167A (en) A kind of storage of daily record data, extracting method and device
US11269930B1 (en) Tracking granularity levels for accessing a spatial index
KR101773910B1 (en) Location based big data system
US10169083B1 (en) Scalable method for optimizing information pathway
CN108183966A (en) A kind of cloud stocking system
CN112328683A (en) Data transmission method, system and storage medium supporting database and library direct
CN114546982A (en) Data processing method and device, computer readable medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant