A data synchronization method, device and equipment
A data synchronization and data technology, which is applied in the field of data processing, can solve the problems of high requirements on the attributes of the database itself and the inability to achieve database data synchronization.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0082] Before executing the data synchronization method provided by the present invention, a timestamp field and a synchronization state field are added in each database table included in the database, the timestamp field is used to represent the writing time of each piece of data in the database table, and the The synchronization status field is used to represent whether each piece of data in the database table has been synchronized;
[0083] Specifically, the device managing any database may add a timestamp field timestamp and a synchronization status field syncstatus to each database table contained in the database in advance. Then, when writing data to any database table contained in the database, the time of writing to the database can be recorded. For example, the format of any database table can refer to Table 1:
[0084] Table 1
[0085]
[0086]
[0087] It can be seen from Table 1 that the row of each serial number represents a piece of data, and the column co...
Embodiment 2
[0143] After using the method provided by Embodiment 1 of the present invention to synchronize the unsynchronized data in other databases to be synchronized except the central database to the central database, in order to realize data synchronization between databases, for other databases to be synchronized, the central database can be The data in the database is synchronized to other databases to be synchronized. That is to say, the present invention can also execute after performing step S14 Image 6 The process shown includes the following steps:
[0144] S11a. Determine the database tables in the central library that need to be synchronized according to the identification information of the database tables that need to be synchronized in the central library.
[0145] During specific implementation, when performing the data synchronization method provided by Embodiment 1 of the present invention, when synchronizing the unsynchronized data in other databases to be synchroni...
Embodiment 3
[0186] Based on the same inventive concept, an embodiment of the present invention also provides a data synchronization device. Since the problem-solving principle of the above-mentioned device is similar to that of the data synchronization method, the implementation of the above-mentioned device can refer to the implementation of the method, and the repetition will not be repeated.
[0187] like Figure 10As shown, it is a schematic structural diagram of a data synchronization device provided in Embodiment 3 of the present invention, including: an acquisition unit 61, a first determination unit 62, a second determination unit 63, and a first synchronization processing unit 64, wherein:
[0188] The acquisition unit 61 is configured to acquire a configuration file for providing synchronization services, the configuration file includes attribute information of a pre-selected central library, identification information of database tables to be synchronized in each database to be ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


