Data synchronization method and device, electronic device and storage medium
A data synchronization and data technology, applied in the computer field, can solve problems such as difficulty in ensuring data integrity and failure to capture
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0049] refer to image 3 As shown, in step S310, the first thread captures the data operation record, and distributes the captured data operation record to at least one second thread; in step S320, the at least one second thread according to The distributed data operation records are synchronized between the source database and the target database.
[0050] It should be noted that, in this embodiment of the present invention, the first thread may be a main thread, the second thread may be a sub-thread, and the main thread may be a daemon thread.
[0051] For example, the daemon thread can grab data operation records from the above synchronous log table, such as grabbing 1000 data operation records, and the daemon thread will distribute the captured data operation records to sub-threads, such as 20 sub-threads, sub-threads Synchronize the source database A with the target database B according to the distributed data operation records.
[0052] In an embodiment of the present ...
Embodiment 2
[0054] Grab the data operation records, and put the captured data operation records into the message queue; sequentially, according to each data operation record in the message queue, the source database and the target database are synchronized.
[0055] It should be noted that, in the second embodiment, the thread for capturing data operation records may be the main thread, and the thread for synchronizing according to the data operation records in the message queue may be a sub-thread. Of course, the embodiments of the present invention are not limited thereto. For example, the main thread can grab the data operation records from the synchronous log table, put the captured data operation records into the message queue, and use the sub-threads to update the source database according to the order of the data operation records in the message queue. A synchronizes with target database B.
[0056] Further, for the above-mentioned first and second embodiments, a predetermined num...
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