Method and system for improving block chain data processing efficiency

By extracting transaction information keywords in the blockchain, building a transaction user network, analyzing the degree of business correlation, and dividing communities for classified storage, the problem of inefficient blockchain data storage strategies is solved and data processing under high concurrent requests is realized. Improved efficiency and enhanced reliability.

CN118626568AActive Publication Date: 2024-09-10BEIJING CORRECT TECH GRP CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411097442.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-09-10
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

Existing blockchain data storage strategies are inefficient when dealing with high concurrent requests, resulting in performance bottlenecks and insufficient reliability, making it difficult to effectively process large amounts of complex data.

Method used

By extracting keywords from transaction information, we build a network of transaction users, analyze business correlation and transaction frequency indicators, divide communities and store them in categories, and use different databases to store community data of different priorities to improve data processing efficiency.

Benefits of technology

It improves the efficiency of data calling and verification during high concurrent requests, avoids occupying the transmission channel of the same database, and enhances the reliability and processing efficiency of blockchain data storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626568A
    Figure CN118626568A
Patent Text Reader

Abstract

The invention relates to the technical field of data storage, in particular to a method and system for improving block chain data processing efficiency. The method comprises the steps that transaction information in block chain data is acquired, and a transaction keyword is determined through keyword extraction; analyzing frequency characteristics according to the transaction keywords, and determining a co-occurrence frequency index; constructing a transaction user network; in the transaction user network, determining business association degrees of two corresponding transaction parties, and dividing the transaction parties into different communities; determining a transaction frequency index of the target user according to the business association degree between the target user and other transaction users in the same community and the transaction amount of each transaction; determining a priority index of the community according to the transaction frequency indexes of all transaction users in the same community; and carrying out classified storage on the transaction information of different communities according to the numerical values of the priority indexes of all communities. According to the embodiment of the invention, the reliability of a block chain data storage strategy can be improved, and the data processing efficiency is enhanced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data storage technology, and in particular to a method and system for improving blockchain data processing efficiency. Background Art

[0002] Blockchain technology is a distributed ledger technology that ensures the security and immutability of data through encryption algorithms. In blockchain, data is usually stored in the form of blocks, each of which contains a certain number of transaction records and is connected to the previous block to form a chain structure. With the rapid development and widespread application of blockchain technology, the amount of data in the blockchain network has increased dramatically, which has put forward higher requirements on the data processing and storage capabilities of blockchain nodes.

[0003] In the prior art, the transaction information in the blockchain is usually stored by using a search keyword and stored in the same database. In this way, due to the large amount of data in the blockchain and the complex data sources, data search in the same database based on the pre-set search keywords can easily lead to inefficient data retrieval, verification and synchronization processes, especially when processing high-concurrency requests, which can easily lead to performance bottlenecks. In other words, the existing blockchain data storage strategy has low reliability and insufficient processing efficiency. Summary of the invention

[0004] In order to solve the technical problems of low reliability and insufficient processing efficiency of existing blockchain data storage strategies, the present invention provides a method and system for improving blockchain data processing efficiency. The technical solutions adopted are as follows: The present invention proposes a method for improving blockchain data processing efficiency, the method comprising: Obtaining transaction information in blockchain data, extracting keywords from the transaction information, and determining transaction keywords for each transaction record data; Select any transaction record data as target transaction data; determine the co-occurrence frequency index of the transaction keywords in the target transaction data according to the frequency characteristics of the transaction keywords in all transaction record data; Building a transaction user network based on the transaction parties in all transaction record data; in the transaction user network, determining the business association degree of the corresponding transaction parties based on the frequency of the transaction record data of the transaction parties corresponding to the target transaction data and the co-occurrence frequency index of each time; Divide transaction users into different communities according to the business association degree; take any transaction user in any community as a target user, and determine the transaction frequency index of the target user according to the business association degree between the target user and other transaction users in the same community and the transaction amount of each transaction; determine the priority index of the community according to the transaction frequency index of all transaction users in the same community; The transaction information of different communities is classified and stored according to the values ​​of the priority indicators of all communities.

[0005] Furthermore, the determining of the transaction keywords of each transaction record data includes: The source code of the smart contract corresponding to each transaction record data is obtained, and the transaction keywords are obtained from the source code based on the keyword extraction algorithm.

[0006] Furthermore, the method for obtaining the co-occurrence frequency index of transaction keywords in the target transaction data includes: Determine the frequency of occurrence of each transaction keyword, and construct frequent item sets of transaction keywords in all transaction record data based on the FP-Growth algorithm; The intersection of all transaction keywords corresponding to the target transaction data and the frequent item sets is used as the frequent words of the target transaction data; The proportion of the occurrence frequency of the frequent words in the target transaction data in the frequent item set is used as the co-occurrence frequency index of the transaction keywords in the target transaction data.

[0007] Furthermore, the method for obtaining the degree of business association between the two parties to the transaction includes: Determine the mean of the collinearity frequency index of each transaction between the two parties as the first correlation coefficient; The number of transactions is normalized to the maximum and minimum values ​​to obtain the second correlation coefficient; The business association degree between the two parties to the transaction is determined according to the first association coefficient and the second association coefficient, wherein the first association coefficient and the second association coefficient are both positively correlated with the business association degree.

[0008] Further, determining the business correlation degree between the two transaction parties according to the first correlation coefficient and the second correlation coefficient includes: The product of the first association coefficient and the second association coefficient is calculated as the business association degree.

[0009] Furthermore, transaction users are divided into different communities according to the business association degree, including: Based on the different business association levels, the SLPA community algorithm is used to divide all transaction users into communities to obtain multiple different communities.

[0010] Furthermore, the method for obtaining the target user's transaction frequency index includes: The transaction amount of each transaction is normalized to the maximum and minimum values ​​to obtain the amount impact index; Calculate the product of the business association degree and amount impact index of the two parties in each transaction of the target user as the single frequency coefficient of the corresponding transaction; The sum of the single frequency coefficients of all transactions in which the target user participates is used as the transaction frequency index of the target user.

[0011] Furthermore, the priority index of the community is determined based on the transaction frequency index of all transaction users in the same community, including: The average of the transaction frequency indexes of all transaction users in the same community is calculated and normalized as the priority index of the community.

[0012] Furthermore, the transaction information of different communities is classified and stored according to the values ​​of the priority indicators of all communities, including: Communities whose priority index is greater than a preset priority threshold are regarded as first-class communities, and others are regarded as second-class communities; Different databases are used to store data corresponding to the first type of community and data corresponding to the second type of community, respectively. The database storing the data corresponding to the first type of community has a higher calling speed than the database storing the data corresponding to the second type of community.

[0013] On the other hand, the present invention also provides a system for improving the efficiency of blockchain data processing, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the aforementioned methods when executing the computer program.

[0014] The present invention has the following beneficial effects: The embodiment of the present invention obtains transaction information in blockchain data, extracts keywords from the transaction information, and determines the transaction keywords of each transaction record data; then, the co-occurrence frequency index of the transaction keywords in the target transaction data is determined based on the frequency characteristics of the transaction keywords in all transaction record data; wherein, the acquisition of the co-occurrence frequency index can effectively realize the specific numerical calculation of the co-occurrence frequency and accurately determine the contribution characteristics of the transaction keywords. By constructing a transaction user network, the business association degree of the corresponding transaction parties is determined according to the frequency of the transaction record data of the transaction parties corresponding to the target transaction data and the co-occurrence frequency index of each time; the specific analysis of the business association degree is realized based on the transaction user as a unit, and the subsequent community division is realized according to the association of different transaction users. The transaction frequency index of the target user is determined according to the business association degree of the target user and other transaction users in the same community and the transaction amount of each transaction; that is, the transaction feature analysis is performed in the transaction user dimension to determine a more accurate and effective transaction frequency index, and then, the priority index of the community can be determined according to the transaction frequency index of all transaction users in the same community; and the transaction information of different communities is classified and stored according to the numerical values ​​of the priority index of all communities. In the embodiment of the present invention, different transaction users are divided into communities, and distributed data storage between blockchains is realized according to the community division effect, which can facilitate the calling, retrieval and verification of transaction information data in the blockchain, avoid occupying the transmission channel of the same database in the case of high concurrent requests, improve the reliability of the blockchain data storage strategy, and enhance data processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 A flow chart of a method for improving blockchain data processing efficiency provided by one embodiment of the present invention; Figure 2 A structural diagram of a system for improving blockchain data processing efficiency provided by one embodiment of the present invention. DETAILED DESCRIPTION

[0017] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a method and system for improving the efficiency of blockchain data processing proposed by the present invention, its specific implementation, structure, features and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0018] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0019] The following is a detailed description of a method for improving blockchain data processing efficiency provided by the present invention with reference to the accompanying drawings.

[0020] See also Figure 1 , which shows a flow chart of a method for improving blockchain data processing efficiency provided by an embodiment of the present invention, the method comprising: S101: Acquire transaction information in blockchain data, extract keywords from the transaction information, and determine transaction keywords for each transaction record data.

[0021] The application scenario of the embodiment of the present invention is the storage scenario of blockchain data. Blockchain technology is a distributed ledger technology that ensures the security and immutability of data through encryption algorithms. In the blockchain, data is usually stored in the form of blocks. Each block contains a certain number of transaction records and is connected to the previous block to form a chain structure. The corresponding blockchain data in the embodiment of the present invention is specifically the data of the smart contract in the blockchain.

[0022] It is understandable that blockchain data storage affects the call of blockchain data, which in turn affects the efficiency of data processing. Traditional blockchain nodes usually store all data in a single database, resulting in inefficient data retrieval, verification and synchronization processes, especially when processing high-concurrency requests, which is prone to performance bottlenecks.

[0023] Therefore, the embodiment of the present invention proposes a distributed storage strategy by analyzing the transaction characteristics of different users in the blockchain, which facilitates data calling, retrieval and verification, avoids occupying the transmission channel of the same database in the case of high concurrent requests, and enhances data processing efficiency.

[0024] Among them, transaction information is the data information related to the transaction recorded in the blockchain. The transaction information includes the information of the two parties to the transaction, the transaction amount, the timestamp, and additional information of the transaction (such as the contract information of the smart contract).

[0025] Among them, the transaction keywords can be specifically, for example, the type of transaction, some key features of the transaction goods, etc. In the embodiment of the present invention, the transaction keywords can be obtained through the contract information of the smart contract.

[0026] Furthermore, in some embodiments of the present invention, determining the transaction keywords of each transaction record data includes: obtaining the source code of the smart contract corresponding to each transaction record data, and obtaining the transaction keywords from the source code based on a keyword extraction algorithm.

[0027] The keyword extraction algorithm in the embodiment of the present invention can be specifically, for example, a regular expression and a split function. It should be noted that the source code of the smart contract is obtained in each transaction information, and there are function definitions and event declarations in the source code. Among them, the function name and event name usually contain key information of the business operation. Since the function and event names may contain underscores (_), camel case (CamelCase) or other special characters, regular expressions and split functions can be used to obtain transaction keywords in functions and events.

[0028] Of course, in other embodiments of the present invention, the acquisition of transaction keywords may also be achieved based on other existing keyword algorithms, such as the TF-IDF algorithm.

[0029] After determining the transaction keywords, the embodiments of the present invention can implement business association analysis based on the frequency characteristics of the transaction keywords in different transaction record data, transaction information such as the amount, etc., and the specific analysis process is described in the subsequent embodiments.

[0030] S102: Select any transaction record data as target transaction data; determine the co-occurrence frequency index of the transaction keywords in the target transaction data according to the frequency characteristics of the transaction keywords in all transaction record data.

[0031] In order to facilitate analysis, the embodiment of the present invention takes any transaction record data as target transaction data, and then performs specific analysis on the target transaction data.

[0032] In the specific analysis process, in order to determine the importance of the target transaction data itself, the frequency of occurrence is used as an important analysis indicator in the embodiment of the present invention. That is, the more times the corresponding transaction keyword appears in all transaction records, the more likely it is that the two parties to the transaction will continue to conduct transactions of the same or similar types containing the transaction keyword. Therefore, the analysis of transaction keywords can be achieved based on the co-occurrence frequency indicator.

[0033] Furthermore, in some embodiments of the present invention, a method for obtaining co-occurrence frequency indicators of transaction keywords in target transaction data includes: determining the occurrence frequency of each transaction keyword, and constructing a frequent item set of the transaction keywords in all transaction record data based on the FP-Growth algorithm; taking the intersection of all transaction keywords corresponding to the target transaction data and the frequent item set as the frequent words of the target transaction data; and taking the proportion of the occurrence frequency of frequent words in the target transaction data in the frequent item set as the co-occurrence frequency indicator of the transaction keywords in the target transaction data.

[0034] Among them, the FP-Growth algorithm is a data mining algorithm, which is mainly used to discover frequent item sets in a data set. Frequent item sets refer to the set of items that frequently appear in a data set, that is, the set of frequently appearing transaction keywords.

[0035] Therefore, the intersection of all transaction keywords corresponding to the target transaction data and the frequent item sets is the transaction keywords that appear more frequently in the target transaction data. In the embodiment of the present invention, they are called frequent words. The higher the probability of occurrence of frequent words, the more frequent the transaction items corresponding to the target transaction data are, which means that they are more likely to be taken out for data analysis and comparison in the future.

[0036] The frequency ratio of the frequent words in the target transaction data in the embodiment of the present invention is the ratio of the frequency of the frequent words in the target transaction data to the corresponding frequencies of all transaction keywords in the frequent item set. The higher the value is, the higher the probability of the corresponding frequent words appearing in the overall transaction list. The more frequent the transaction type is, the greater the value of the co-occurrence frequency index is.

[0037] It should be noted that the co-occurrence frequency index is a numerical representation of the co-occurrence frequency, which represents the frequency information of the transaction keywords in the corresponding target transaction data in the overall blockchain. The larger the value, the more repeated the transaction keywords in the target transaction data are, which further indicates the frequent occurrence characteristics of the target transaction data itself.

[0038] Of course, in other embodiments of the present invention, a co-occurrence frequency algorithm may also be used to implement specific calculation of the co-occurrence frequency index, and there is no limitation to this.

[0039] S103: constructing a transaction user network based on the transaction parties in all transaction record data; in the transaction user network, determining the business association degree of the corresponding transaction parties based on the frequency of the transaction record data of the transaction parties corresponding to the target transaction data and the co-occurrence frequency index of each time.

[0040] Since the transaction record data contains corresponding transaction parties and transaction parties, the embodiment of the present invention also analyzes the transaction parties as individuals. The individuals are connected in a network, and the specific connection feature is that the two parties generate transaction behaviors, that is, according to the transaction parties in each transaction record data, the construction process of the overall transaction user network is realized.

[0041] Among them, the degree of business association represents the business association characteristics of the corresponding transaction parties. For example, the higher the degree of association between the two parties conducting the same type of transactions, the higher the degree of association between the two parties. Therefore, the embodiment of the present invention can determine the degree of business association between the corresponding transaction parties based on the frequency of the transaction record data of the transaction parties corresponding to the target transaction data and the co-occurrence frequency index of each time.

[0042] Furthermore, in some embodiments of the present invention, a method for obtaining the degree of business association between two parties to a transaction includes: determining that the mean of the collinear frequency index of each transaction between the two parties to the transaction is a first association coefficient; normalizing the number of transactions to the maximum and minimum values ​​to obtain a second association coefficient; and determining the degree of business association between the two parties to the transaction based on the first association coefficient and the second association coefficient, wherein the first association coefficient and the second association coefficient are both positively correlated with the degree of business association.

[0043] Among them, the first correlation coefficient represents the characteristics of the collinear frequency index, that is, the similarity of the transaction keywords. It should be noted that since the two parties to the transaction belong to the same transaction record data, their corresponding transaction keywords are the same or similar. Then, directly using the mean of the collinear frequency index can accurately represent the similarity of the corresponding transaction keywords.

[0044] The second correlation coefficient represents the frequency of transactions, that is, the more transactions the two parties have, the larger the corresponding second correlation coefficient value is.

[0045] In combination with the above analysis, in the embodiment of the present invention, the first correlation coefficient and the second correlation coefficient can be combined to implement the analysis of the business correlation between the two transaction parties to obtain the degree of business correlation.

[0046] Further, in some embodiments of the present invention, determining the business association degree between the two transaction parties according to the first association coefficient and the second association coefficient includes: calculating the product of the first association coefficient and the second association coefficient as the business association degree.

[0047] In the embodiment of the present invention, since the first correlation coefficient represents the characteristics of the collinear frequency index, the larger the first correlation coefficient is, the higher the similarity of the corresponding transaction keywords is, and the larger the value of the second correlation coefficient is, the more the number of transactions between the corresponding two parties is, thus, the first correlation coefficient and the second correlation coefficient are both positively correlated with the business correlation degree. A positive correlation is a relationship in which the corresponding dependent variable increases as the independent variable increases, thus, in the embodiment of the present invention, the product of the first correlation coefficient and the second correlation coefficient can be calculated as the business correlation degree.

[0048] Of course, in other embodiments of the present invention, the sum of the first correlation coefficient and the second correlation coefficient may also be calculated as the business correlation degree. In other embodiments of the present invention, in order to unify the value range of the business correlation degree, the product or sum of the first correlation coefficient and the second correlation coefficient may also be normalized to the maximum and minimum values, and there is no limitation on this.

[0049] S104: Divide the transaction users into different communities according to the degree of business association; take any transaction user in any community as a target user, and determine the transaction frequency index of the target user according to the degree of business association between the target user and other transaction users in the same community and the transaction amount of each transaction; determine the priority index of the community according to the transaction frequency indexes of all transaction users in the same community.

[0050] It should be noted that since the transaction list stores the information of both parties to the transaction, a connection relationship can be established based on the information of both parties to the transaction in each transaction record. Since the businesses of both parties to the transaction are strongly correlated, the business correlation between the two parties can be determined based on the business keywords between the two parties to the transaction, and different business groups can be determined based on community classification based on the business correlation of the connection.

[0051] It should be noted that different business types have different requirements for blockchain data. For example, financial business users need to monitor market changes in real time, and financial transactions need to be executed quickly. Any delay will result in loss of trading opportunities. Therefore, financial business users must process transaction requests quickly, and have high requirements for database response rate and performance. Therefore, for financial business, its data priority is higher than other businesses. Some users do not need more sensitive data changes, but require higher security requirements. Therefore, different communities need to be divided according to different business requirements.

[0052] Furthermore, in some embodiments of the present invention, transaction users are divided into different communities according to the degree of business association, including: based on different business association degrees, all transaction users are divided into communities using the SLPA community algorithm to obtain multiple different communities.

[0053] Among them, the SLPA community algorithm is an algorithm well known to those skilled in the art, and can divide corresponding multiple elements into different communities. In the embodiment of the present invention, the degree of business association is used as the division standard.

[0054] In other embodiments of the present invention, other partitioning algorithms may also be used, such as building an association network according to the degree of business association and performing community partitioning according to the association network, or using a density clustering algorithm to implement community partitioning, which is not limited.

[0055] In order to facilitate specific analysis of the community, in the embodiment of the present invention, any transaction user in any community can be taken as a target user, and a separate analysis of the target user can be implemented.

[0056] Furthermore, in some embodiments of the present invention, a method for obtaining a target user's transaction frequency index includes: performing maximum and minimum value normalization processing on the transaction amount of each transaction to obtain an amount influence index; calculating the product of the business association degree of both parties in each transaction of the target user and the amount influence index as the single frequency coefficient of the corresponding transaction; and taking the sum of the single frequency coefficients of all transactions in which the target user participates as the target user's transaction frequency index.

[0057] Among them, the amount impact index characterizes the index information of the corresponding transaction amount. The larger the amount, the higher the sensitivity to the data, the higher the security requirements for the data, and the more it needs to be analyzed first. Therefore, in the embodiment of the present invention, the product of the business association degree and the amount impact index can be calculated as the single frequency coefficient of the corresponding transaction, and the single frequency coefficient represents the importance of a single transaction.

[0058] In the embodiment of the present invention, the sum of the single frequency coefficients of all transactions is used as the transaction frequency index of the target user, which represents the important information of the target user itself. The larger the value of the transaction frequency index of the target user is, the more important the target user is in all transaction processes, the more frequent the transactions are, and the higher the number of occurrences of the transaction type is.

[0059] Based on this, in an embodiment of the present invention, a specific analysis can be performed on all transaction users in the same community. Furthermore, in some embodiments of the present invention, a priority index of the community is determined based on the transaction frequency index of all transaction users in the same community, including: calculating the mean of the transaction frequency index of all transaction users in the same community, and normalizing it as the priority index of the community.

[0060] By normalizing the average of the transaction frequency indicators of all transaction users in the same community as the priority indicator of the community, we can conduct a specific analysis of the transaction needs of transaction users in the community and determine the priority indicator. The larger the priority indicator, the more frequent the transaction process in the corresponding community, and the greater the requirements for transaction amount, transaction timeliness, etc.

[0061] S105: Classify and store transaction information of different communities according to the values ​​of priority indicators of all communities.

[0062] Combined with the analysis process of the above steps, the embodiments of the present invention can realize classified storage of the community, thereby realizing distributed storage of data, avoiding direct storage in the same database resulting in low data call efficiency. At the same time, classified storage can also realize different hardware configurations according to community needs.

[0063] Furthermore, in some embodiments of the present invention, transaction information of different communities is classified and stored according to the values ​​of priority indicators of all communities, including: treating communities with priority indicators greater than a preset priority threshold as Class I communities, and others as Class II communities; using different databases to store data corresponding to Class I communities and data corresponding to Class II communities, respectively, wherein the call speed of the database storing data corresponding to Class I communities is higher than that of the database storing data corresponding to Class II communities.

[0064] That is to say, by dividing all communities into two categories, classified storage is achieved. Of course, in other embodiments of the present invention, the type of division can also be adjusted according to the actual software and hardware conditions, and there is no limitation on this.

[0065] Among them, the preset priority threshold is the threshold value of the priority index. In some embodiments of the present invention, the preset priority threshold can be specifically 0.75, that is, communities with priority index greater than 0.75 are regarded as Class I communities, and others are regarded as Class II communities. There is no restriction on this.

[0066] The embodiment of the present invention obtains transaction information in blockchain data, extracts keywords from the transaction information, and determines the transaction keywords of each transaction record data; then, the co-occurrence frequency index of the transaction keywords in the target transaction data is determined based on the frequency characteristics of the transaction keywords in all transaction record data; wherein, the acquisition of the co-occurrence frequency index can perform effective co-occurrence frequency analysis and accurately determine the contribution characteristics of the transaction keywords. A transaction user network is constructed according to the transaction parties in all transaction record data; in the transaction user network, the business association degree of the corresponding transaction parties is determined according to the frequency of the transaction record data of the transaction parties corresponding to the target transaction data and the co-occurrence frequency index of each time; a specific analysis of the business association degree is realized based on the transaction user as a unit, and subsequent community division is realized based on the association of different transaction users. The transaction frequency index of the target user is determined according to the business association degree of the target user with other transaction users in the same community and the transaction amount of each transaction; that is, the transaction feature analysis is performed in the transaction user dimension to determine a more accurate and effective transaction frequency index, and then the priority index of the community can be determined according to the transaction frequency index of all transaction users in the same community; and the transaction information of different communities is classified and stored according to the values ​​of the priority index of all communities. In the embodiment of the present invention, different transaction users are divided into communities, and distributed data storage between blockchains is realized according to the community division effect, which can facilitate data calling, retrieval and verification, avoid occupying the transmission channel of the same database in the case of high concurrent requests, and enhance data processing efficiency.

[0067] This embodiment also provides a system for improving the efficiency of blockchain data processing. Figure 2 , Figure 2 This is a structural diagram of a system for improving blockchain data processing efficiency provided by an embodiment of the present invention. The system 600 includes a memory 601, a processor 602, and a computer program 603 stored in the memory 601 and executable on the processor 602. When the processor 602 executes the computer program 603, the steps of the aforementioned method for improving blockchain data processing efficiency are implemented.

[0068] This embodiment also provides a computer-readable storage medium, which stores a computer program code. When the computer program code runs on a computer, the computer executes the above-mentioned related method steps to implement a method for improving blockchain data processing efficiency provided in the above embodiment.

[0069] This embodiment also provides a computer program product. When the computer program product is run on a computer, the computer executes the above-mentioned related steps to implement a method for improving blockchain data processing efficiency provided in the above embodiment.

[0070] Among them, the system, computer-readable storage medium or computer program product provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0071] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0072] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. A method for improving blockchain data processing efficiency, characterized in that: The method comprises: Obtaining transaction information in blockchain data, extracting keywords from the transaction information, and determining transaction keywords for each transaction record data; Select any transaction record data as target transaction data; determine the co-occurrence frequency index of the transaction keywords in the target transaction data according to the frequency characteristics of the transaction keywords in all transaction record data; Building a transaction user network based on the transaction parties in all transaction record data; in the transaction user network, determining the business association degree of the corresponding transaction parties based on the frequency of the transaction record data of the transaction parties corresponding to the target transaction data and the co-occurrence frequency index of each time; Divide transaction users into different communities according to the business association degree; take any transaction user in any community as a target user, and determine the transaction frequency index of the target user according to the business association degree between the target user and other transaction users in the same community and the transaction amount of each transaction; determine the priority index of the community according to the transaction frequency index of all transaction users in the same community; The transaction information of different communities is classified and stored according to the values ​​of the priority indicators of all communities.

2. A method for improving blockchain data processing efficiency as claimed in claim 1, characterized in that: The step of determining the transaction keywords for each transaction record data includes: The source code of the smart contract corresponding to each transaction record data is obtained, and the transaction keywords are obtained from the source code based on the keyword extraction algorithm.

3. A method for improving blockchain data processing efficiency as claimed in claim 1, characterized in that: The method for obtaining the co-occurrence frequency index of transaction keywords in the target transaction data includes: Determine the frequency of occurrence of each transaction keyword, and construct frequent item sets of transaction keywords in all transaction record data based on the FP-Growth algorithm; The intersection of all transaction keywords corresponding to the target transaction data and the frequent item sets is used as the frequent words of the target transaction data; The proportion of the occurrence frequency of the frequent words in the target transaction data in the frequent item set is used as the co-occurrence frequency index of the transaction keywords in the target transaction data.

4. A method for improving blockchain data processing efficiency as claimed in claim 1, characterized in that: The method for obtaining the business association degree between the two parties to the transaction includes: Determine the mean of the collinearity frequency index of each transaction between the two parties as the first correlation coefficient; The number of transactions is normalized to the maximum and minimum values ​​to obtain the second correlation coefficient; The business association degree between the two parties to the transaction is determined according to the first association coefficient and the second association coefficient, wherein the first association coefficient and the second association coefficient are both positively correlated with the business association degree.

5. A method for improving blockchain data processing efficiency as claimed in claim 4, characterized in that: Determining the business correlation degree between the two parties of the transaction according to the first correlation coefficient and the second correlation coefficient includes: The product of the first association coefficient and the second association coefficient is calculated as the business association degree.

6. A method for improving blockchain data processing efficiency as claimed in claim 1, characterized in that: Transaction users are divided into different communities according to the degree of business association, including: Based on the different business association levels, the SLPA community algorithm is used to divide all transaction users into communities to obtain multiple different communities.

7. A method for improving blockchain data processing efficiency as claimed in claim 1, characterized in that: The method for obtaining the target user's transaction frequency index includes: The transaction amount of each transaction is normalized to the maximum and minimum values ​​to obtain the amount impact index; Calculate the product of the business association degree and amount impact index of the two parties in each transaction of the target user as the single frequency coefficient of the corresponding transaction; The sum of the single frequency coefficients of all transactions in which the target user participates is used as the transaction frequency index of the target user.

8. A method for improving blockchain data processing efficiency as claimed in claim 1, characterized in that: Determining the priority index of the community according to the transaction frequency index of all transaction users in the same community includes: The average of the transaction frequency indexes of all transaction users in the same community is calculated and normalized as the priority index of the community.

9. A method for improving blockchain data processing efficiency as claimed in claim 1, characterized in that: The transaction information of different communities is classified and stored according to the values ​​of the priority indicators of all communities, including: Communities whose priority index is greater than a preset priority threshold are regarded as first-class communities, and others are regarded as second-class communities; Different databases are used to store data corresponding to the first type of community and data corresponding to the second type of community, respectively. The database storing the data corresponding to the first type of community has a higher calling speed than the database storing the data corresponding to the second type of community.

10. A system for improving blockchain data processing efficiency, the system comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 9 are implemented.

Citation Information

Patent Citations

  • Financial network unusual transaction community finding method based on information entropy

    CN104199832A

  • Suspicious feature discovery method based on transaction network nodes

    CN110019188A

  • Transaction data processing method and device

    CN110838065A

  • Product recommendation method based on big data and network community

    CN113901317A

  • Risk identification method based on linear regression model and related equipment thereof

    CN114331463A