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.

Active Publication Date: 2017-07-25
ADVANCED NEW TECH CO LTD
View PDF4 Cites 52 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the existing technology, in order to ensure the consistency of the database state, it is necessary to process the data serially according to the time stamp received by the transaction (which can also be understood as the business data to be written into the blockchain), so it is limited that it can only be executed by a single machine , resulting in the write performance and efficiency of the database being limited by the performance of a single machine
If you want to improve the writing performance and efficiency, you can only improve the physical performance of the single-machine CPU, such as increasing the number of CPU cores, etc., which is not only expensive, but also has limited scalability.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and apparatus for writing business data of block chain, and business subset determination method
  • Method and apparatus for writing business data of block chain, and business subset determination method
  • Method and apparatus for writing business data of block chain, and business subset determination method

Examples

Experimental program
Comparison scheme
Effect test

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.

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for writing business data of a block chain. The method comprises the steps of obtaining multiple pieces of business data to be written in the block chain; according to business types and/or a data change range of the business data, determining business subsets which the business data belongs to, wherein the business data belonging to different business subsets does not have a transaction dependency relationship; and executing the business subsets in parallel, thereby writing executive results in the block chain. The invention furthermore discloses an apparatus for writing the business data of the block chain, and a business subset determination method. According to the method and the apparatus, parallel execution of the business data free of the transaction dependency relationship can be realized, so that the cost of improving data processing execution efficiency is reduced and the expandability is improved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method and device for writing blockchain business data, and a method for determining a business subset of blockchain business data. Background technique [0002] With the development of computer technology, blockchain technology (also known as distributed ledger technology) is favored for its advantages of decentralization, openness, transparency, immutability, and trustworthiness. It is widely used in smart contracts, securities transactions, e-commerce, The Internet of Things, social communication, file storage, proof of existence, identity verification, equity crowdfunding and many other fields have been widely used. [0003] Specifically, blockchain technology is a decentralized distributed database technology. Every data in the blockchain will be broadcast to the blockchain nodes of the entire network, and each node will save a full amount of consistent data. ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
CPCG06F16/24568G06F16/27G06F17/00G06F9/28G06F9/466G06F9/4837H04L9/0637
Inventor 邱鸿霖
Owner ADVANCED NEW TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products