Data synchronization method and device

By registering infrequently updated data tables in the database and deciding whether to synchronize according to their processing status, the problem of resource waste in the prior art is solved, and efficient synchronization of only updating data tables in the database is achieved.

CN119088874APending Publication Date: 2024-12-06BEIJING JINGDONG ZHENSHI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310656968.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-05
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

In the prior art, performing extraction tasks in infrequently updated data tables in the database leads to wasted computing and storage resources, and invalid extraction tasks lead to waste of resources.

Method used

By pre-registering a data table with a synchronization frequency or data amount less than the preset threshold into the preset registration library, comparing the target registration information of the data table to be extracted with the information in the registration library, and determining whether to perform the data synchronization task based on the processing status. Synchronize updated data tables.

Benefits of technology

It effectively reduces invalid data table extraction, saves calculation and storage resources, and improves the efficiency of data synchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119088874A_ABST
    Figure CN119088874A_ABST
Patent Text Reader

Abstract

The invention discloses a data synchronization method and device, and relates to the technical field of big data. A specific embodiment of the method comprises the steps of obtaining a data synchronization task and a to-be-extracted data table corresponding to the data synchronization task; determining whether target registration information corresponding to the to-be-extracted data table exists in a preset registration library or not; the preset registration library comprises registration information corresponding to a plurality of data tables of which synchronization frequencies or data volumes are smaller than a preset threshold value; under the condition that the target registration information exists in the preset registration library, determining a processing state of the target registration information; and determining whether to execute the data synchronization task or not according to the processing state. According to the embodiment, the purpose of synchronizing only the updated database table is achieved, invalid data table extraction is effectively reduced, and resource waste is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of big data technology, and in particular to a method and device for data synchronization. Background Art

[0002] In the prior art, offline extraction tasks or real-time extraction tasks are usually used to synchronize data stored in a MySQL database to a big data platform, wherein each offline extraction task is used to extract a data table in the MySQL database, and all data tables in the database are synchronized by executing all extraction tasks. However, the database tables in the database are not updated every day. For data tables that are not updated, the process of executing extraction tasks is actually a waste of computing and storage resources, and invalid extraction tasks cause a huge waste of resources. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a method and device for data synchronization, which pre-registers a data table whose synchronization frequency or data volume is less than a preset threshold in a preset registration library, and compares the target registration information of the data table to be extracted in the synchronization task with the registration information in the preset registration library to achieve preliminary screening of the data table to be extracted. Further, it is determined whether to execute the data synchronization task based on the processing status of the target registration information in the preset registration library, so as to achieve the purpose of synchronizing only the updated database table, effectively reducing invalid data table extraction and reducing resource waste.

[0004] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for data synchronization is provided.

[0005] A data synchronization method according to an embodiment of the present invention includes: obtaining a data synchronization task and a data table to be extracted corresponding to the data synchronization task; determining whether target registration information corresponding to the data table to be extracted exists in a preset registration library; the preset registration library includes registration information corresponding to multiple data tables whose synchronization frequency or data volume is less than a preset threshold; determining a processing status of the target registration information when the target registration information exists in the preset registration library; and determining whether to execute the data synchronization task based on the processing status.

[0006] Optionally, determining the processing status of the target registration information includes: acquiring the last update time of the target registration information; and determining that the processing status of the target registration information is pending when the last update time satisfies a current preset period.

[0007] Optionally, obtaining the last update time of the target registration information includes: determining the changed data and the inserted data in the target registration information; and taking the latest time of the changed data and the inserted data as the last update time of the target registration information.

[0008] Optionally, the determining the changed data and the inserted data in the target registration information includes: acquiring the changed data and the inserted data in the target registration information from a relational database management system according to the preset period by means of timed polling.

[0009] Optionally, the method further includes: when there is no target registration information corresponding to the data table to be extracted in the preset registration library, calling an execution node in the distributed cluster to execute the data synchronization task.

[0010] Optionally, the acquiring the data synchronization task includes: using a data integration tool to create an execution script for acquiring the data synchronization task, and acquiring the data synchronization task using the execution script.

[0011] Optionally, after executing the data synchronization task, the method further includes: changing the processing status of the target registration information to processed.

[0012] Optionally, determining whether to execute the data synchronization task according to the processing status includes: ignoring the data synchronization task when the processing status is processed; and executing the data synchronization task when the processing status is pending.

[0013] To achieve the above objective, according to another aspect of an embodiment of the present invention, a data synchronization device is provided.

[0014] A data synchronization device according to an embodiment of the present invention includes: an acquisition module, used to acquire a data synchronization task and a data table to be extracted corresponding to the data synchronization task; a determination module, used to determine whether target registration information corresponding to the data table to be extracted exists in a preset registration library; the preset registration library includes registration information corresponding to multiple data tables whose synchronization frequency or data volume is less than a preset threshold; an execution module, used to determine the processing status of the target registration information when the target registration information exists in the preset registration library; and determine whether to execute the data synchronization task based on the processing status.

[0015] To achieve the above objective, according to another aspect of an embodiment of the present invention, an electronic device for data synchronization is provided.

[0016] An electronic device for data synchronization according to an embodiment of the present invention comprises: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement a method for data synchronization according to an embodiment of the present invention.

[0017] To achieve the above objective, according to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided.

[0018] A computer-readable storage medium according to an embodiment of the present invention stores a computer program, and when the program is executed by a processor, a data synchronization method according to an embodiment of the present invention is implemented.

[0019] One embodiment of the above invention has the following advantages or beneficial effects: a data table whose synchronization frequency or data volume is less than a preset threshold is pre-registered in a preset registration library, and the target registration information of the data table to be extracted in the synchronization task is compared with the registration information in the preset registration library to achieve preliminary screening of the data table to be extracted. Further, whether to execute the data synchronization task is determined based on the processing status of the target registration information in the preset registration library, so as to achieve the purpose of synchronizing only the updated database table, effectively reducing invalid data table extraction and reducing resource waste.

[0020] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0022] Figure 1 is a flowchart of a method for data synchronization according to an embodiment of the present invention;

[0023] Figure 2 is a flow chart of a method for determining a processing state of target registration information according to an embodiment of the present invention;

[0024] Figure 3 is a schematic diagram of a process for determining the last update time according to an embodiment of the present invention;

[0025] Figure 4 is a schematic diagram of main modules of a data synchronization device according to an embodiment of the present invention;

[0026] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0027] Figure 6It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0029] It should be pointed out that the embodiments of the present invention and the technical features therein may be combined with each other without conflict.

[0030] Figure 1 is a schematic diagram of main steps of a method for data synchronization according to an embodiment of the present invention.

[0031] like Figure 1 As shown, the data synchronization method of the embodiment of the present invention mainly includes the following steps:

[0032] Step S101: obtaining a data synchronization task and a data table to be extracted corresponding to the data synchronization task;

[0033] Step S102: Determine whether the target registration information corresponding to the data table to be extracted exists in a preset registration library; the preset registration library includes registration information corresponding to multiple data tables whose synchronization frequency or data volume is less than a preset threshold value;

[0034] Step S103: if the target registration information exists in the preset registration library, determining the processing status of the target registration information;

[0035] Step S104: Determine whether to execute the data synchronization task according to the processing status.

[0036] The data synchronization task is created in advance by a task creation tool. In an optional embodiment, a data integration tool can be used to create an execution script for obtaining the data synchronization task, and the data synchronization task is obtained by using the execution script. Usually, in order to improve the execution efficiency of the task, each data synchronization task corresponds to only one data table to be extracted.

[0037] The preset registration library includes multiple data tables whose synchronization frequency or data volume is less than the preset threshold, which can be obtained by manual screening based on experience, or by screening from the full data table using a screening tool. Since most of the data tables to be extracted are updated every day, in order to reduce invalid data table extraction, the embodiment of the present invention chooses to register data tables whose synchronization frequency or data volume is less than the preset threshold, that is, to put infrequently updated data tables into the preset registration library, and then screen out infrequently updated data tables through comparison, and determine whether synchronization is required based on the processing status. In the case where there is no target registration information corresponding to the data table to be extracted, in an optional embodiment, an execution node in the distributed cluster is called to perform the data synchronization task.

[0038] In an optional embodiment, the process of determining the processing status of the target registration information in step S103 is as follows: Figure 2 As shown, including:

[0039] Step S201: Obtain the last update time of the target registration information;

[0040] Step S202: when the last update time meets the current preset period, determining that the processing status of the target registration information is to be processed.

[0041] Among them, the preset period can be set to 1h, 12h or 1 day, and the current preset period is the preset period corresponding to the current time. For example, when the preset period is 1h, the current time is 8:50, then the corresponding current preset period is 8:00-9:00. Exemplarily, if the last update time of the target registration information is 8:10, that is, the last update time meets the current preset period, then the processing status of the target registration information is determined to be pending; if the last update time of the target registration information is 7:00, which does not meet the current preset period, then the processing status of the target registration information is determined to be processed. By comparing whether the last update time of the target registration information meets the current preset period, it can be known whether the data table to be extracted corresponding to the target registration information has been updated within the current preset period, so that only the updated data table to be extracted is synchronized, reducing invalid data synchronization processes. That is, for the updated data table to be extracted, data synchronization is required, and for the data table to be extracted that has not been updated, data synchronization is not required again.

[0042] In an optional embodiment, the process of determining the last update time in step S201 is as follows: Figure 3 As shown, further comprising:

[0043] Step S301: Determine the changed data and inserted data in the target registration information;

[0044] Step S302: The latest time between the change time of the changed data and the insertion time of the inserted data is used as the last update time of the target registration information.

[0045] Among them, the change data refers to the data whose index value has changed, and the inserted data refers to the newly inserted data. The last update time of the target registration information can be determined by the operation time of the change data and the insert data. For step S301, a timed polling method can be adopted to obtain the change data and the insert data in the target registration information from the relational database management system according to the preset period. In other words, data acquisition is performed once every preset period, and at the same time, it is determined whether the latest update time of the acquired data meets the current preset period to determine whether the synchronization task needs to be executed. Among them, the operation of the timed polling relational database management system is IO intensive, and the computing and storage resources of the execution node are relatively low, and it can usually be completed on a single physical machine. The method of calling up offline sampling tasks on demand can save a lot of computing and storage resources.

[0046] In a further optional embodiment, after executing the data synchronization task, it also includes: changing the processing status of the target registration information to processed. In actual application scenarios, the processing status of the target registration information of the data table to be extracted obtained by the data synchronization task is usually pending. For the data synchronization task that directly obtains the processed target registration information, it may be due to an abnormality in the task creation process, resulting in the repeated creation of two identical tasks. After the previous task is executed, the processing status is changed from pending to processed, so the latter task directly obtains the processed processing status. In this case, the data synchronization task can be ignored or deleted, and it can be executed without repetition.

[0047] For step S104, in an optional embodiment, it includes: when the processing status is processed, ignoring the data synchronization task; when the processing status is pending, executing the data synchronization task. Among them, for step S104, it can be executed by the main synchronization server that executes the data synchronization task, or it can be executed by the execution node in the distributed cluster. By having the allocation and execution process of the data synchronization task be executed by the synchronization server and the execution node respectively, the load pressure of the synchronization server can be reduced, and the execution efficiency of the data synchronization task can be effectively improved.

[0048] According to the data synchronization method of the embodiment of the present invention, it can be seen that the data table whose synchronization frequency or data volume is less than the preset threshold is pre-registered in the preset registration library, and the target registration information of the data table to be extracted in the synchronization task is compared with the registration information in the preset registration library to achieve preliminary screening of the data table to be extracted. Further, it is determined whether to execute the data synchronization task according to the processing status of the target registration information in the preset registration library, so as to achieve the purpose of synchronizing only the updated database table, effectively reducing invalid data table extraction and reducing resource waste.

[0049] Figure 4 4 is a schematic diagram of main modules of a data synchronization device according to an embodiment of the present invention.

[0050] like Figure 4 As shown, the data synchronization device 400 of the embodiment of the present invention includes:

[0051] An acquisition module 401 is used to acquire a data synchronization task and a data table to be extracted corresponding to the data synchronization task;

[0052] The determination module 402 is used to determine whether the target registration information corresponding to the data table to be extracted exists in a preset registration library; the preset registration library includes registration information corresponding to multiple data tables whose synchronization frequency or data volume is less than a preset threshold value;

[0053] The execution module 403 is used to determine the processing status of the target registration information when the target registration information exists in the preset registration library; ignore the data synchronization task when the processing status is processed; and execute the data synchronization task when the processing status is pending.

[0054] In an optional embodiment of the present invention, the execution module 403 is further used to obtain the last update time of the target registration information; when the last update time meets the current preset period, determine that the processing status of the target registration information is pending.

[0055] In an optional embodiment of the present invention, the execution module 403 is also used to determine the change data and the inserted data in the target registration information; and the latest time between the change time of the change data and the insertion time of the inserted data is used as the last update time of the target registration information.

[0056] In an optional embodiment of the present invention, the execution module 403 is further configured to obtain the change data and the inserted data in the target registration information from the relational database management system in a timed polling manner according to the preset period.

[0057] In an optional embodiment of the present invention, the execution module 403 is further used to call an execution node in a distributed cluster to execute the data synchronization task when there is no target registration information corresponding to the data table to be extracted in the preset registration library.

[0058] In an optional embodiment of the present invention, the acquisition module 401 is further used to create an execution script for acquiring the data synchronization task using a data integration tool, and acquire the data synchronization task using the execution script.

[0059] In an optional embodiment of the present invention, the execution module 403 is further configured to, after executing the data synchronization task, further include: changing the processing status of the target registration information to processed.

[0060] According to the data synchronization device of the embodiment of the present invention, the data table whose synchronization frequency or data volume is less than the preset threshold is pre-registered in the preset registration library, and the target registration information of the data table to be extracted in the synchronization task is compared with the registration information in the preset registration library to achieve preliminary screening of the data table to be extracted. Further, it is determined whether to execute the data synchronization task according to the processing status of the target registration information in the preset registration library, so as to achieve the purpose of synchronizing only the updated database table, effectively reducing invalid data table extraction and reducing resource waste.

[0061] Figure 5 An exemplary system architecture 500 is shown to which the method or apparatus for data synchronization according to an embodiment of the present invention may be applied.

[0062] like Figure 5 As shown, the system architecture 500 may include a synchronization server 501, a network 502, and execution nodes 503, 504, and 505. The network 502 is used to provide a medium for a communication link between the synchronization server 501 and the execution nodes 503, 504, and 505. The network 502 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0063] The synchronization server 501 may be a server that provides various services, such as a background management server that provides support for the data tables to be extracted or data synchronization tasks uploaded by the user. The background management server may analyze and process the received data such as the data tables to be extracted or the data synchronization tasks, and feed back the processing results (such as the execution results of the tasks) to the user. The execution nodes 503, 504, and 505 may be computing nodes in a distributed cluster, which are used to execute the data synchronization tasks sent by the synchronization server 501, and feed back the processing results of the tasks to the synchronization server 501. Among them, the synchronization server 501 may execute the data synchronization tasks alone, or send the data synchronization tasks to the execution nodes for execution.

[0064] It should be noted that the data synchronization method provided in the embodiment of the present invention is generally executed by the synchronization server 505 , and accordingly, the data synchronization device is generally set in the synchronization server 505 .

[0065] It should be understood that Figure 5 The numbers of synchronization servers, networks, and execution nodes in the embodiment are only for illustration purposes. Any number of terminal devices, networks, and servers may be provided as required.

[0066] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0067] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) first interface 605 is also connected to the bus 604.

[0068] The following components are connected to the I / O first interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network first interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O first interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.

[0069] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.

[0070] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0071] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0072] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes an acquisition module, a determination module and an execution module. The names of these modules do not constitute a limitation on the modules themselves in some cases. For example, the acquisition module may also be described as "a module for acquiring data synchronization tasks and a data table to be extracted corresponding to the data synchronization tasks".

[0073] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: obtaining a data synchronization task and a data table to be extracted corresponding to the data synchronization task; determining whether the target registration information corresponding to the data table to be extracted exists in a preset registration library; the preset registration library includes registration information corresponding to multiple data tables whose synchronization frequency or data volume is less than a preset threshold; if the target registration information exists in the preset registration library, determining the processing status of the target registration information; if the processing status is processed, ignoring the data synchronization task; if the processing status is pending, executing the data synchronization task.

[0074] According to the technical solution of the embodiment of the present invention, the data table whose synchronization frequency or data volume is less than the preset threshold is pre-registered in the preset registration library, and the target registration information of the data table to be extracted in the synchronization task is compared with the registration information in the preset registration library to achieve preliminary screening of the data table to be extracted. Further, it is determined whether to execute the data synchronization task according to the processing status of the target registration information in the preset registration library, so as to achieve the purpose of synchronizing only the updated database table, effectively reducing invalid data table extraction and reducing resource waste.

[0075] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for data synchronization, characterized in that: include: Obtaining a data synchronization task and a data table to be extracted corresponding to the data synchronization task; Determine whether the target registration information corresponding to the data table to be extracted exists in a preset registration library; the preset registration library includes registration information corresponding to multiple data tables whose synchronization frequency or data volume is less than a preset threshold; In the case where the target registration information exists in the preset registration library, determining a processing state of the target registration information; According to the processing status, it is determined whether to execute the data synchronization task.

2. The method according to claim 1, characterized in that The determining the processing status of the target registration information includes: Obtain the last update time of the target registration information; When the last update time satisfies the current preset period, it is determined that the processing status of the target registration information is to be processed.

3. The method according to claim 2, characterized in that The obtaining of the last update time of the target registration information includes: Determining the changed data and inserted data in the target registration information; The latest time between the change time of the change data and the insertion time of the insertion data is used as the last update time of the target registration information.

4. The method according to claim 3, characterized in that The determining of the changed data and the inserted data in the target registration information includes: The change data and the inserted data in the target registration information are obtained from the relational database management system in a timed polling manner according to the preset period.

5. The method according to claim 1, characterized in that Also includes: When the target registration information corresponding to the data table to be extracted does not exist in the preset registration library, the execution node in the distributed cluster is called to execute the data synchronization task.

6. The method according to claim 1, characterized in that The task of acquiring data synchronization includes: Using a data integration tool, an execution script for obtaining the data synchronization task is created, and the data synchronization task is obtained using the execution script.

7. The method according to claim 1, characterized in that After executing the data synchronization task, the method further includes: Change the processing status of the target registration information to processed.

8. The method according to claim 1, characterized in that The determining whether to execute the data synchronization task according to the processing status includes: When the processing status is processed, ignoring the data synchronization task; When the processing status is pending, the data synchronization task is executed.

9. A data synchronization device, characterized in that: include: An acquisition module, used to acquire a data synchronization task and a data table to be extracted corresponding to the data synchronization task; A determination module, used to determine whether the target registration information corresponding to the data table to be extracted exists in a preset registration library; the preset registration library includes registration information corresponding to multiple data tables whose synchronization frequency or data volume is less than a preset threshold; an execution module, configured to determine a processing state of the target registration information if the target registration information exists in the preset registration library; According to the processing status, it is determined whether to execute the data synchronization task.

10. An electronic device for data synchronization, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 8.

11. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.