Database synchronization method and device, computer equipment and readable storage medium
A data synchronization and database technology, which is applied in the directions of database update, database distribution/replication, structured data retrieval, etc., can solve the problems of low efficiency of database synchronization and high labor cost, so as to improve synchronization efficiency and reduce labor cost. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] see figure 1 , a database synchronization method in this embodiment, comprising:
[0043] S102: identifying the target database and the original database;
[0044] S103: Acquire target data from the target database, and acquire original data from the original database;
[0045] S105: Comparing the difference between the target data and the original data to obtain difference data;
[0046] S107: Load the difference data into a preset formula program to obtain a synchronization script, and synchronize the difference data to the target database or the original database through the synchronization script, so that the target data and the original data Data synchronization in .
[0047]In an exemplary embodiment, the databases to be synchronized that have a corresponding relationship are obtained through the preset synchronization library table, the update time of the databases to be synchronized is obtained, and the database to be synchronized whose update time is closest...
Embodiment 2
[0052] This embodiment is a specific application scenario of the first embodiment above. Through this embodiment, the method provided by the present invention can be described more clearly and specifically.
[0053] Next, in the server running the database synchronization method, information synchronization is performed on the buffer and database therein and the return password identification is compared to the difference between the target data and the original data to obtain difference data, and the difference data is loaded The method provided in this embodiment will be described in detail by taking the synchronous script obtained from a preset formula program as an example. It should be noted that this embodiment is only exemplary, and does not limit the protection scope of the embodiment of the present invention.
[0054] figure 2 A schematic diagram of an environment application of the database synchronization method according to Embodiment 2 of the present application...
Embodiment 3
[0109] see Figure 4 , a database synchronization device 1 of the present embodiment, comprising:
[0110] Database identification module 12, for identifying target database and original database;
[0111] A data acquisition module 13, configured to acquire target data from the target database, and acquire original data from the original database;
[0112] A difference comparison module 15, configured to compare the difference between the target data and the original data to obtain difference data;
[0113] A data synchronization module 17, configured to load the difference data into a preset formula program to obtain a synchronization script, through which the difference data is synchronized to the target database or the original database, so that the target data Synchronize with the data in the original data. Optionally, the database synchronization device 1 also includes:
[0114] The trigger module 11 is configured to respond to a preset trigger cycle or a synchronizat...
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