Data synchronization method and system of distributed database, terminal and storage medium

A data synchronization and database technology, applied in the field of distributed databases, can solve the problems of reading results not being up to date, data not being up-to-date, etc., to achieve the effect of reliable design principle, simple structure and wide application prospect.

Pending Publication Date: 2022-03-29
SUZHOU LANGCHAO INTELLIGENT TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] For the above-mentioned third synchronous replication technology, the master database responds to the user that the synchronization is successful after receiving a signal that a part of the slave database is successfully synchronize

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 and system of distributed database, terminal and storage medium
  • Data synchronization method and system of distributed database, terminal and storage medium
  • Data synchronization method and system of distributed database, terminal and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described The embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.

[0040] figure 1 is a schematic flowchart of a method in one embodiment of the present invention. in, figure 1 The execution subject may be a data synchronization system of a distributed database.

[0041] Such as figure 1 As shown, the method includes:

[0042] Step 110, generating an index for the object data for which the master ...

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 relates to the technical field of distributed databases, and particularly provides a data synchronization method and system for a distributed database, a terminal and a storage medium, and the method comprises the steps: generating an index for object data for executing an updating operation by a master node, and synchronizing the object data and the corresponding index to a slave node; periodically acquiring the latest index of the slave node, and checking the consistency of the latest index and the local latest index of the master node; if the latest index of the slave node does not pass the consistency verification, searching a positioning index matched with the latest index of the slave node in the master node; and synchronizing the index of which the operation time is after the positioning index and the corresponding object data to the slave node. According to the method and the device, the final consistency of the data of each node of the whole MySQL cluster can be realized, so that correct data can be returned to the client by the node which is recovered after a fault occurs.

Description

technical field [0001] The invention relates to the technical field of distributed databases, in particular to a data synchronization method, system, terminal and storage medium of a distributed database. Background technique [0002] With the advent of the mobile Internet era, there are more and more smart devices, more and more data storage, and the frequency and concurrency of users reading and writing data are also increasing. Traditional stand-alone databases cannot meet the requirements of massive data storage and concurrency. processing needs. More and more enterprises choose to use distributed database clusters, such as MySQL database clusters. The essence of using a distributed cluster is data replication between each node, and the accompanying problem is the consistency of the data of each node in the cluster, that is, only when the data in the master-slave database remains consistent, can the master-slave be replaced. Currently, the data replication technologies...

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
IPC IPC(8): G06F16/27G06F16/28G06F16/2455G06F16/23G06F16/22
CPCG06F16/275G06F16/22G06F16/2455G06F16/2365G06F16/284
Inventor 何金彪刘洋
Owner SUZHOU LANGCHAO INTELLIGENT 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