A method for deduplicating master-slave synchronization data of a MySQL database
A technology for synchronizing data and data synchronization, applied in the field of database applications, can solve the problems of only providing single-threaded access and high performance overhead, and achieve the effect of simple and clear processing logic, low overhead, and performance improvement
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] See attached figure 1 .
[0029] A MySQL database master-slave synchronous data deduplication method is executed according to the following steps:
[0030] 1) Save the data in the master database to be synchronized in the temporary file of the server;
[0031] 2) Execute the data synchronization operation between the master database and the slave database;
[0032] 3) Call the MySQL trigger to record the log information of the completion of the synchronization operation in the master-slave synchronization log table, but the "deduplication table-level field" in the record is recorded as "not deduplication";
[0033] 4) The SAAS architecture program scans the master-slave synchronization log table every 5 seconds;
[0034] 5) The scan does not find any new batch data that has been synchronized but has not been deduplicated, and deletes the temporary files stored in step 1).
Embodiment 2
[0036] See attached figure 1 .
[0037] A MySQL database master-slave synchronous data deduplication method is executed according to the following steps:
[0038] 1) Save the data in the master database to be synchronized in the temporary file of the server;
[0039] 2) Execute the data synchronization operation between the master database and the slave database;
[0040] 3) Call the MySQL trigger to record the log information of the completion of the synchronization operation in the master-slave synchronization log table, but the "deduplication table-level field" in the record is recorded as "not deduplication";
[0041] 4) The SAAS architecture program scans the master-slave synchronization log table every 5 seconds;
[0042] 5) If there are new batches of data that have been synchronized but not deduplicated, compare the data that has been synchronized but not deduplicated with the data in the temporary file stored in step 1);
[0043] 6) After the comparison, no duplic...
Embodiment 3
[0045] See attached figure 1 .
[0046] A MySQL database master-slave synchronous data deduplication method is executed according to the following steps:
[0047] 1) Save the data in the master database to be synchronized in the temporary file of the server;
[0048] 2) Execute the data synchronization operation between the master database and the slave database;
[0049] 3) Call the MySQL trigger to record the log information of the completion of the synchronization operation in the master-slave synchronization log table, but the "deduplication table-level field" in the record is recorded as "not deduplication";
[0050] 4) The SAAS architecture program scans the master-slave synchronization log table every 5 seconds;
[0051] 5) If there are new batches of data that have been synchronized but not deduplicated, compare the data that has been synchronized but not deduplicated with the data in the temporary file stored in step 1);
[0052] 6) After comparison, duplicate dat...
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