Method and system for synchronizing data and related database

A technology for synchronizing data and databases, which is applied in the computer field and can solve problems such as unsatisfactory data services, increased queuing time, and limited processing speed of single-threaded data.

Active Publication Date: 2015-06-24
BEIJING QIHOO TECH CO LTD
View PDF3 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, when there are many operations such as writing, updating, and deleting on the master database, especially when the master database is triggered by a large number of businesses, there will be a large number of write requirements when synchronizing the slave database, but only one thread is running when the slave database is synchronizing. Playback and write operations are performed according to the recording order of the binary log. The single-thread processing speed of data is limited, and data exceeding its processing speed needs to be queued. Further increase the queue time
Therefore, when the master database writes a lot, the slave database synchronization will be delayed due to the limitation of single-thread processing speed, and the delay may become larger and larger due to the increase in the amount of data, which will lead to the inability to meet the subsequent data service requirements. needs

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 system for synchronizing data and related database
  • Method and system for synchronizing data and related database
  • Method and system for synchronizing data and related database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0052] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0053] In order to solve the above technical problems, an embodiment of the present invention provides a method for synchronizing data, which is applied to a database with a master-slave structure, wherein at least two transmission interfaces on the slave database are activated to receive data transmitted by the master database, figure 2 A schematic flowchart of a method for synchronizing data applied to a master database according...

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 provides a method and system for synchronizing data and a related database. The synchronizing method is applied to databases with a principal and subordinate structure, and at least two transmission interfaces of the subordinate database are activated to receive data transmitted by the principal database. The method comprises the steps that data to be synchronized are obtained from the principal database, multiple synchronization tasks are generated according to the data to be synchronized, at least two concurrent threads are called, the multiple synchronization tasks are allocated to the at least two concurrent threads according to preset rues, and the multiple synchronization tasks are sent to the subordinate database through the at least two concurrent threads for the subordinate database to achieve data synchronization with the principal database according to the multiple synchronization tasks. According to the technical scheme, the problem of synchronization time delay of the principal database and the subordinate database is solved, real-time synchronization can be achieved, and therefore the demand of providing subsequent data services is met.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method, system and related database for synchronizing data. Background technique [0002] MySQL is a relational database management system, and its master-slave architecture is currently one of the most used database architectures, especially for websites with relatively large loads. In MySQL's master-slave architecture, the master database performs operations such as writing, updating, and deleting, and executes these operations in the slave database through a predetermined synchronization strategy, so as to achieve data consistency in the master-slave database. [0003] In related technologies, the synchronization process of the MySQL master-slave database is: after operations such as writing, updating, and deleting have been performed on the MySQL master database, it will record these operations in the binary log (binary log), such as figure 1 As shown, in order to ensure...

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/27G06F16/284
Inventor 刘臻
Owner BEIJING QIHOO 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