Unlock instant, AI-driven research and patent intelligence for your innovation.

Data synchronization method, device, electronic device and storage medium

A data synchronization and database technology, applied in the blockchain field, can solve problems such as non-powers that are prone to occur

Active Publication Date: 2021-08-20
BEIJING CHENGSHI WANGLIN INFORMATION TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] This application provides a data synchronization method, device, electronic equipment, and storage medium to solve the problem of non-idempotence that is prone to occur when a relational database and a blockchain perform data synchronization

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
  • Data synchronization method, device, electronic device and storage medium
  • Data synchronization method, device, electronic device and storage medium
  • Data synchronization method, device, electronic device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0094] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0095] Such as figure 1 The application scene diagram shown, the data synchronization method, device, electronic device and storage medium described in the embodiment of the present application, use the relational database 2 and the block chain 3 as the interactive objects of data synchronization. For some terminals 1, such as For smart phones, tablets, computers, etc., the business data generated by the application software / APP in them is first stored in the re...

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 present application discloses a data synchronization method, device, electronic equipment, and storage medium. The data synchronization method includes: obtaining a message record in a pending state from a message table; the message table is used to save the message record associated with business data; The message record is recorded with contract call information, marking status and the primary key ID used to identify the message record; the message record in the pending state is associated with the business data of the account book to be written into the block chain; according to the message record in the pending state The contract call information to determine the contract that needs to be called; send synchronization information to the blockchain, the synchronization information includes the call request of the contract and the primary key ID of the message record in the pending state; if the synchronization success status fed back by the blockchain is received Information, change the flag state of the message record in the pending state to the successful state. This application can ensure the idempotency of the data written into the blockchain account book by the relational database, and ensure the consistency and accuracy of data synchronization.

Description

technical field [0001] The present application relates to the technical field of blockchain, and in particular to a data synchronization method, device, electronic equipment and storage medium. Background technique [0002] The blockchain can be regarded as a distributed ledger, which is used to record and store data. It has the advantages of decentralization, openness, security and non-tampering. The blockchain integrated with smart contracts can also automatically execute certain pre-defined rules and terms. Based on the advantages of blockchain technology, for some application software, such as shopping, social or service software, more and more users choose to upload the business data generated by the software to the blockchain. This process is called uploading. chain. The conventional on-chain process is: first store the business data in the relational database, and then the relational database will synchronize the business data to the ledger of the blockchain. [00...

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 Patents(China)
IPC IPC(8): G06F16/27G06F16/28G06Q40/04
Inventor 牛燕强
Owner BEIJING CHENGSHI WANGLIN INFORMATION TECH CO LTD