Data synchronization method and device
A data synchronization and database technology, applied in the computer field, can solve the problems of data loss, timing value reaching the expiration time, loss, etc., to achieve the effect of improving reliability, avoiding loss, and improving data synchronization technology
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0040] Embodiment 1. Data synchronization method.
[0041] figure 1 This is a flowchart of the data synchronization method of this embodiment. figure 1 In this embodiment, the method of this embodiment mainly includes: step S100, step S110, and step S120. The method in this embodiment is usually executed by a device (such as a computer or a server) that can access the source database and the target database.
[0042] The steps included in the method of this embodiment will be described separately below.
[0043] S100. Acquire a first data set that has been synchronized and a second data set to be synchronized.
[0044] As an example, the first data set based on the indicator that has been synchronized last time and the second data set based on the indicator to be synchronized this time can be obtained from the source database, and the corresponding data containing indicators in the data warehouse can be synchronized to the memory database In the application scenario in this embodimen...
Embodiment 2
[0096] The second embodiment is the data synchronization method.
[0097] Figure 5 This is a flowchart of the data synchronization method of this embodiment. The method in this embodiment is usually executed by a device (such as a computer or a server) capable of accessing a data warehouse and a memory database.
[0098] The steps included in the method of this embodiment will be described separately below.
[0099] S500: Perform index calculation on the data in the data warehouse, and obtain a data table of the current day to be synchronized based on the index after the index calculation.
[0100] S510. Obtain a data table of the previous day based on the indicator that has been synchronized last time from the data warehouse.
[0101] S520: According to the primary key of the data table of the current day and the data table of the previous day, the data table of the current day and the data package of the previous day are fully associated.
Embodiment 3
[0110] The third embodiment is a data synchronization device.
[0111] Image 6 This is a schematic diagram of the structure of the data synchronization device of this embodiment. Image 6 In this embodiment, the apparatus of this embodiment mainly includes: a first acquisition module 600, a second acquisition module 610, and a first synchronization module 620. The device of this embodiment is usually set in a device (such as a computer or a server) that can access the source database and the target database. In addition, the device of this embodiment may also optionally include: a setting module 630, a third acquisition module 640, a second synchronization module 650, a fourth acquisition module 660, and a third synchronization module 670 (such as Figure 7 Shown).
[0112] The modules included in the device of this embodiment will be described below.
[0113] The first obtaining module 600 is mainly used to obtain the first data set that has been synchronized and the second data s...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


