Method and apparatus for writing business data of block chain, and business subset determination method
A business data and business sub-technology, applied in the computer field, can solve the problems of single-machine performance, limited scalability, limited database writing performance and efficiency, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0072] figure 1 A method for writing blockchain business data according to the embodiment of this application is given, specifically including:
[0073] S101: Obtain multiple business data to be written into the blockchain;
[0074] S102: Determine the business subset to which the business data belongs according to the business type and / or data change scope of the business data; wherein, there is no transaction dependency between business data belonging to different business subsets;
[0075] S103: Execute each business subset in parallel, so as to write the execution result into the blockchain.
[0076] In the above-mentioned embodiment, after executing step S101 to obtain the business data to be written into the block chain, it can be determined whether there is a transaction dependency between the business data according to the business type or data change range of the business data, and then it can be determined according to the business data between According to the tra...
Embodiment 2
[0132] The embodiment of this application also provides another method for writing blockchain business data, including:
[0133] Obtain multiple business data to be written into the blockchain;
[0134] According to the data change range of the business data, determine the first business data that does not have a transaction dependency relationship; wherein, the first business data does not have a transaction dependency relationship;
[0135] Executing each of the first service data in parallel, so as to write the execution result into the block chain.
[0136] Specifically, when determining the first business data, according to the data change range of the business data, business data that has no intersection with the data change range of any other business data can be determined as the first business data that does not have a transaction dependency relationship. business data.
[0137] Assume that the multiple pieces of business data obtained are as follows:
[0138] ...
Embodiment 3
[0141] see Figure 5 As shown, a device for writing blockchain business data provided by this application may include:
[0142] Obtaining module 101, acquiring a plurality of business data to be written into the block chain;
[0143] The business sub-set determining module 102 determines the business sub-set to which the business data belongs according to the business type and / or data change scope of the business data; wherein, there is no transaction dependency between business data belonging to different business sub-sets;
[0144] The data execution module 103 executes each business subset in parallel to write the execution result into the block chain.
[0145] This embodiment is a device corresponding to the method for writing blockchain business data in Embodiment 1. All explanations in Embodiment 1 are applicable to this embodiment, and will not be repeated here.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com