Full-amount data synchronization method and device, equipment and medium
A technology of full data and incremental data, applied in the field of devices, equipment and media, and full data synchronization methods, can solve problems affecting data table reading and writing, and achieve the effect of improving efficiency and frequency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] figure 1 It is a flow chart of a full data synchronization method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation where the data in the database is fully synchronized to the data warehouse, for example, the data in the MySQL database can be synchronized to the HIVE data warehouse. In the case of full-volume synchronization, the method can be executed by a full-volume data synchronization device provided in any embodiment of the present invention, which can be composed of hardware and / or software, and can generally be integrated into computer equipment.
[0027] Such as figure 1 As shown, the full data synchronization method provided in this embodiment includes the following steps:
[0028] S110. Obtain the incremental log data of the source database imported into the data warehouse within the current synchronization time period.
[0029] The source database refers to a database that requires full data synchronization, ...
Embodiment 2
[0064] figure 2 It is a flow chart of a full data synchronization method provided in Embodiment 2 of the present invention. This embodiment is embodied on the basis of the above embodiments, wherein, the incremental data row record is determined according to the incremental log data, which can be specifically for:
[0065] For the first type of log data whose operation type is insertion or deletion in the incremental log data, the data row record corresponding to the first type of log data is used as an incremental data row record;
[0066] For the second type of log data in the incremental log data whose operation type is updated and whose primary key value has not been changed, the updated data row record corresponding to the second type of log data is used as the incremental data row record;
[0067] For the third type of log data in the incremental log data whose operation type is updating and changing the primary key value, the operation type corresponding to the third ...
Embodiment 3
[0124] image 3 It is a schematic diagram of the module structure of a full data synchronization device provided by Embodiment 3 of the present invention. This embodiment is applicable to the situation where the data in the database is fully synchronized to the data warehouse, for example, the data in the MySQL database can be sent to the HIVE data warehouse In the case of full synchronization, the device can be realized by software and / or hardware, and can generally be integrated into computer equipment.
[0125] Such as image 3 As shown, the full data synchronization device provided in this embodiment specifically includes: a log acquisition module 310 , a data merging module 320 and a data filtering and storage module 330 . in,
[0126] The log acquisition module 310 is used to acquire the incremental log data of the source database imported into the data warehouse within the current synchronization time period;
[0127] The data merging module 320 is configured to gene...
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.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap