Data synchronization method and system and storage medium
A data synchronization and database technology, applied in database indexing, structured data retrieval, special data processing applications, etc., can solve the problems of unstable synchronization and data loss, and achieve the effect of preventing data loss, fast performance, and good fault tolerance.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
specific Embodiment 1
[0058] The following combination image 3 The above method is explained in detail.
[0059] A data synchronization method includes the following steps:
[0060] Step 101: The main database event is triggered externally, which can be through the system application operating data or directly triggering the event in the database.
[0061] Step 102: After the trigger listens to the main database operation event, it inserts a piece of data into the synchronous queue library according to the event type. The data includes the data primary key value of the event, the self-increment sequence (queue primary key), and the event (addition, deletion, modification) , Status (to be synchronized, abnormal), trigger event identification (insert, update, delete).
[0062] Step 103: The synchronization program cyclically reads the primary key of the data waiting to be synchronized from the queue library, then finds the data in the table with the same name in the main database, and then writes it to the ...
specific Embodiment 2
[0067] The following combination Figure 4 The above system is explained in detail.
[0068] A data synchronization system includes a main database, a database trigger, a data configuration program to be synchronized, a trigger generation program, a synchronization queue, a synchronization program and at least one client database. The system can realize data synchronization configuration flexibly and quickly, and is compatible with most popular databases in the market.
[0069] The data configuration program to be synchronized is configured by the program to configure the database table names and synchronization conditions that need to be synchronized. The trigger generation program needs to configure the main database connection and the synchronization queue connection. After the program is started, the synchronization trigger is generated according to the database table name and synchronization conditions configured by the data configuration program to be synchronized. At the sa...
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