Data extraction method, device, electronic device and storage medium

By predicting and adjusting the data extraction time, the problem of uneven data extraction efficiency in ETL technology is solved, and real-time data analysis is achieved.

CN116089515BActive Publication Date: 2024-10-29PEOPLE'S INSURANCE COMPANY OF CHINA
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310080514.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-18
Publication Date
2024-10-29
Estimated Expiration
2043-01-18

AI Technical Summary

Technical Problem

When the existing technology extracts and synchronizes data from the SAP system production database through ETL technology, the data volume of each sub-data is not considered, resulting in uneven data extraction efficiency and difficulty in ensuring the real-time nature of data analysis.

Method used

By predicting the extraction time of each sub-data in the data to be extracted, and performing data splitting and merging based on the extraction time and historical average time, the target sub-data with balanced extraction time is obtained, and the same number of target sub-data is called according to different data extraction servers. Perform data extraction.

Benefits of technology

It achieves a balanced extraction time of target sub-data by each data extraction server, improves the overall data extraction efficiency, and ensures the real-time nature of data analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116089515B_ABST
    Figure CN116089515B_ABST
Patent Text Reader

Abstract

The present application discloses a data extraction method to solve the problem of low data extraction efficiency when extracting and synchronizing data in the SAP system production library through ETL technology. The method includes: predicting the extraction time of each sub-data in the data to be extracted; performing data splitting and / or data merging processing on each sub-data according to the extraction time of each sub-data and the historical average extraction time, and obtaining each target sub-data with a balanced extraction time; wherein each target sub-data satisfies: the difference in the balanced extraction time of different target sub-data is less than or equal to a preset time difference threshold; according to the calling method of calling different data extraction servers to extract the same number of target sub-data, respectively calling the data extraction servers to synchronously extract data from the target sub-data. The present application also discloses a data extraction device, an electronic device, and a computer-readable storage medium.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data extraction method, device, electronic device and computer-readable storage medium. Background Art

[0002] As the main enterprise resource management system, the systems applications and products in data processing (SAP) system carries a large number of original business documents and detailed data from various departments of the enterprise. In related technologies, in order to save the storage resources of the SAP system, the data warehouse technology (Extract-Transform-Load, ETL) of the SAP system is usually used to regularly extract and synchronize the data from the SAP system production library to the HANA database, and the corresponding source data is deleted from the SAP system production library after the data extraction is completed.

[0003] However, when the above-mentioned related technologies are used for data extraction, the sub-data to be extracted in the SAP system production library are usually directly distributed to multiple data extraction servers for data extraction, without considering the data volume of each sub-data. In this way, for a data extraction server that processes a smaller amount of data, it only takes a shorter data extraction time to extract data, and it is idle most of the time after data extraction; while for a data extraction server that processes a larger amount of data, it takes a longer data extraction time to extract data, and it is busy most of the time. In short, the data extraction time of each data extraction server is uneven, resulting in low overall data extraction efficiency and difficulty in ensuring the real-time nature of subsequent data analysis. Summary of the invention

[0004] The embodiment of the present application provides a data extraction method to solve the problem of low overall data extraction efficiency when extracting and synchronizing data of a SAP system production library through ETL technology in the prior art.

[0005] The embodiments of the present application also provide a data extraction device, an electronic device, and a computer-readable storage medium.

[0006] The present application embodiment adopts the following technical solutions:

[0007] A data extraction method, comprising:

[0008] Predict the extraction time of each sub-data in the data to be extracted;

[0009] According to the extraction time of each sub-data and the historical average extraction time, each sub-data is split and / or merged to obtain each target sub-data with a balanced extraction time; wherein each target sub-data satisfies: the difference in the balanced extraction time of different target sub-data is less than or equal to a preset time difference threshold;

[0010] According to the calling method of calling different data extraction servers to extract the same amount of target sub-data, the data extraction servers are called respectively to synchronously extract data from the target sub-data.

[0011] Optionally, data splitting and / or data merging are performed on each sub-data according to the extraction time of each sub-data and the historical average extraction time to obtain each target sub-data with a balanced extraction time, including:

[0012] Determine the partition information of each sub-data according to the knowledge network description of each sub-data; wherein the knowledge network description includes the name and primary key of the sub-data; the partition information is used to characterize the execution area of ​​the sub-data;

[0013] According to the partition information of each sub-data, the historical average extraction time of the execution area of ​​each sub-data is calculated respectively;

[0014] According to the extraction time of each sub-data and the historical average extraction time, each sub-data is split and / or merged to obtain each target sub-data with a balanced extraction time.

[0015] Optionally, partition information of each sub-data is determined according to the knowledge network description of each sub-data, including:

[0016] According to each sub-data, as well as the name, primary key and foreign key of each sub-data, a knowledge network is constructed; wherein each sub-data is a network node of the knowledge network, the name and primary key of each sub-data are used to generate a knowledge network description of the knowledge network, and the foreign key of each sub-data is used to determine the relationship between the network nodes;

[0017] Based on the knowledge network, each sub-data with the same knowledge network description is divided into the same execution partition to determine the partition information of each sub-data.

[0018] Optionally, according to the partition information of each sub-data, the historical average extraction time of the execution area of ​​each sub-data is calculated respectively, including:

[0019] Determine the total number of execution partitions of each sub-data according to the partition information of each sub-data;

[0020] Calculate the total data extraction time of each sub-data execution partition;

[0021] According to the total number of execution partitions of each sub-data and the total data extraction time of the execution partitions of each sub-data, the historical average extraction time of the execution area of ​​each sub-data is calculated respectively.

[0022] Optionally, data splitting and / or data merging are performed on each sub-data according to the extraction time of each sub-data and the historical average extraction time to obtain each target sub-data with a balanced extraction time, including:

[0023] According to the extraction time of each sub-data and the historical average extraction time, the sub-data with an extraction time shorter than the historical average extraction time are merged to obtain target sub-data with balanced extraction time; and / or,

[0024] According to the extraction time of each sub-data and the historical average extraction time, the sub-data with an extraction time greater than or equal to the historical average extraction time are split and processed to obtain target sub-data with balanced extraction time.

[0025] Optionally, according to a calling method of calling different data extraction servers to extract the same amount of target sub-data, respectively calling the data extraction servers to synchronously extract data from the target sub-data includes:

[0026] According to the directed edges of the knowledge network, the scheduling path of each target sub-data is determined;

[0027] According to the scheduling path, in accordance with the calling method of calling different data extraction servers to extract the same amount of target sub-data, the data extraction servers are called respectively to synchronously extract data from the target sub-data.

[0028] Optionally, predict the extraction time of each sub-data in the data to be extracted, including:

[0029] Calculate the data volume of each sub-data in the data to be extracted;

[0030] According to the data volume of each sub-data, the data volume of historically extracted data, and the historical extraction time of historically extracted data, the extraction time of each sub-data in the data to be extracted is predicted.

[0031] A data extraction device comprises a prediction module, a processing module and an extraction module, wherein:

[0032] A prediction module is used to predict the extraction time of each sub-data in the data to be extracted;

[0033] A processing module, used to perform data splitting and / or data merging processing on each sub-data according to the extraction time of each sub-data and the historical average extraction time, so as to obtain each target sub-data with a balanced extraction time;

[0034] The extraction module is used to call different data extraction servers to extract the same amount of target sub-data in accordance with the calling method of calling different data extraction servers to extract the target sub-data in synchronization.

[0035] Optional, processing module, including:

[0036] A determination unit, used to determine the partition information of each sub-data according to the knowledge network description of each sub-data; wherein the knowledge network description includes the name and primary key of the sub-data; the partition information is used to represent the execution area of ​​the sub-data;

[0037] A calculation unit, used for calculating the historical average extraction time of the execution area of ​​each sub-data according to the partition information of each sub-data;

[0038] The processing unit is used to perform data splitting and / or data merging processing on each sub-data according to the extraction time of each sub-data and the historical average extraction time, so as to obtain each target sub-data with a balanced extraction time.

[0039] Optionally, determine the unit for:

[0040] According to each sub-data, as well as the name, primary key and foreign key of each sub-data, a knowledge network is constructed; wherein each sub-data is a network node of the knowledge network, the name and primary key of each sub-data are used to generate a knowledge network description of the knowledge network, and the foreign key of each sub-data is used to determine the relationship between the network nodes;

[0041] Based on the knowledge network, each sub-data with the same knowledge network description is divided into the same execution partition to determine the partition information of each sub-data.

[0042] Optionally, a computing unit, including:

[0043] Determine the total number of execution partitions of each sub-data according to the partition information of each sub-data;

[0044] Calculate the total data extraction time of each sub-data execution partition;

[0045] According to the total number of execution partitions of each sub-data and the total data extraction time of the execution partitions of each sub-data, the historical average extraction time of the execution area of ​​each sub-data is calculated respectively.

[0046] Optionally, a processing module is used to:

[0047] According to the extraction time of each sub-data and the historical average extraction time, the sub-data with an extraction time shorter than the historical average extraction time are merged to obtain target sub-data with balanced extraction time; and / or,

[0048] According to the extraction time of each sub-data and the historical average extraction time, the sub-data with an extraction time greater than or equal to the historical average extraction time are split and processed to obtain target sub-data with balanced extraction time.

[0049] Optional, extraction module for:

[0050] According to the directed edges of the knowledge network, the scheduling path of each target sub-data is determined;

[0051] According to the scheduling path, in accordance with the calling method of calling different data extraction servers to extract the same amount of target sub-data, the data extraction servers are called respectively to synchronously extract data from the target sub-data.

[0052] Optional, prediction module for:

[0053] Calculate the data volume of each sub-data in the data to be extracted;

[0054] According to the data volume of each sub-data, the data volume of historically extracted data, and the historical extraction time of historically extracted data, the extraction time of each sub-data in the data to be extracted is predicted.

[0055] An electronic device comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the computer program implements the steps of the data extraction method described above when executed by the processor.

[0056] A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the data extraction method described above are implemented.

[0057] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects:

[0058] By adopting the method provided in the embodiment of the present application, the extraction time of each sub-data in the data to be extracted can be predicted first; then, according to the extraction time of each sub-data and the historical average extraction time, data splitting and / or data merging processing is performed on each sub-data to obtain each target sub-data with a balanced extraction time; wherein each target sub-data satisfies: the difference in balanced extraction time of different target sub-data is less than or equal to a preset time difference threshold; finally, according to the calling method of calling different data extraction servers to extract the same number of target sub-data, the data extraction servers are called respectively to synchronously extract data from the target sub-data. In this way, since each target sub-data extracted by each data extraction server has a balanced extraction time, it can be ensured that the extraction time spent by each data extraction server for extracting each target sub-data is balanced, thereby solving the problem of low overall data extraction efficiency due to failure to consider the data volume of each sub-data when extracting and synchronizing data in the SAP system production library in the prior art through ETL technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0060] Figure 1a A schematic diagram of an implementation flow of a data extraction method provided in an embodiment of the present application;

[0061] Figure 1b A schematic diagram of the historical extraction duration of historical extraction data provided in an embodiment of the present application;

[0062] Figure 1c A schematic diagram of a process for implementing data splitting and / or data merging processing for each sub-data according to the extraction time of each sub-data and the historical average extraction time provided in an embodiment of the present application;

[0063] Figure 1d A schematic diagram of the structure of a knowledge network provided in an embodiment of the present application;

[0064] Figure 1e Reconstructed operation interface for nearline library view of SAP system;

[0065] Figure 2 A specific structural schematic diagram of a data extraction device is provided for an embodiment of the present application;

[0066] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0067] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0068] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0069] Example 1

[0070] In related technologies, in order to save storage resources of the SAP system, the data of the SAP system production database is usually extracted and synchronized to the HANA database regularly through the data warehouse technology (Extract-Transform-Load, ETL) of the SAP system, and the corresponding source data is deleted from the SAP system production database after the data extraction is completed. Among them, the HANA database can achieve an ultra-high data compression ratio and reduce the memory burden on the one hand; on the other hand, the HANA database can achieve a faster data query speed in the future.

[0071] For example, after the financial monthly settlement is completed (about the 8th of each month), the financial data of the existing SAP system will run a scheduled ETL job (for example, on the 10th of each month) to extract the financial details of the previous month in the SAP system from the production database to the near-line database HANA database, and perform data comparison. After the data is completely consistent, it is archived. At the same time, historical data is deleted in the production database, and only the financial details within the preset time period (for example, 12 months) are retained. The historical data before the preset time period is compared with the near-line database. If they are completely consistent, they are deleted.

[0072] However, when the above-mentioned related technologies are used for data extraction, the sub-data to be extracted in the SAP system production library are usually directly distributed to multiple data extraction servers for data extraction, without considering the data volume of each sub-data. In this way, for a data extraction server that processes a smaller amount of data, it only takes a shorter data extraction time to extract data, and it is idle most of the time after data extraction; while for a data extraction server that processes a larger amount of data, it takes a longer data extraction time to extract data, and it is busy most of the time. In short, the data extraction time of each data extraction server is uneven, resulting in low overall data extraction efficiency and difficulty in ensuring the real-time nature of subsequent data analysis.

[0073] In order to solve the problem of low overall data extraction efficiency due to failure to consider the data volume of each sub-data when extracting and synchronizing data from a SAP system production library through ETL technology in the prior art, an embodiment of the present application provides a data extraction method, which can first predict the extraction time of each sub-data in the data to be extracted; then, according to the extraction time of each sub-data and the historical average extraction time, data splitting and / or data merging processing is performed on each sub-data to obtain target sub-data with balanced extraction time; wherein each target sub-data satisfies: the difference in balanced extraction time of different target sub-data is less than or equal to a preset time difference threshold; finally, according to the calling method of calling different data extraction servers to extract the same number of target sub-data, the data extraction servers are called respectively to synchronously extract data from the target sub-data.

[0074] The execution subject of the method may be various types of computing devices, or an application or application (Application, APP) installed on the computing device. The computing device may be, for example, a user terminal such as a mobile phone, a tablet computer, a smart wearable device, or a server.

[0075] For ease of description, the present application embodiment takes the execution subject of the method as an example of a server to introduce the method. Those skilled in the art can understand that the present application embodiment takes the server as an example to introduce the method, which is only an exemplary description and does not limit the protection scope of the claims corresponding to the present solution.

[0076] Specifically, the implementation process of the method provided in the embodiment of the present application is as follows: Figure 1a As shown, the following steps are included:

[0077] Step 11, predicting the extraction time of each sub-data in the data to be extracted.

[0078] The data to be extracted refers to the target data in the database that needs to be extracted according to actual needs. For example, if it is determined that database A needs to be fully extracted according to actual needs, the data to be extracted is all the data in database A. Among them, full extraction is similar to data migration or data replication. All tables or all views in the data source can be extracted from the database intact and converted into a format that can be recognized by your own ETL tool.

[0079] Alternatively, if it is determined based on actual needs that database B needs to be incrementally extracted, the data to be extracted is the incremental data in database B, that is, the data that is newly added or modified in database B. Incremental extraction refers to extracting only the data that is newly added or modified in the data source since the most recent extraction (for example, newly added or modified tables or views) from the database and converting it into a format that can be recognized by one's own ETL tool. Optionally, when determining the incremental data to be extracted, a timestamp method can be used, that is, a change data capture method based on snapshot comparison. Specifically, a timestamp field can be added to the source table, and when the table data is updated or modified in the SAP system, the value of the timestamp field is modified at the same time. When extracting data, the incremental data to be extracted can be determined by comparing the last extraction time with the value of the timestamp field.

[0080] The sub-data in the data to be extracted can be understood as part of the data in the data to be extracted. For example, if the data to be extracted is multiple tables or multiple views, the sub-data in the data to be extracted can refer to a table in the multiple tables, or a view in the multiple views.

[0081] The extraction time refers to the time it takes for the data extraction server to extract each sub-data in the extracted data.

[0082] In an embodiment of the present application, when predicting the extraction time of each sub-data in the data to be extracted, the data amount of each sub-data in the data to be extracted can be calculated first; then, based on the data amount of each sub-data, the data amount of historically extracted data, and the historical extraction time of historically extracted data, the extraction time of each sub-data in the data to be extracted is predicted.

[0083] In actual application scenarios, after calculating the data volume of each sub-data in the data to be extracted, the historical extraction time consumed by the data extraction server to extract each historical sub-data in the historical month and the data volume of each historical sub-data can be determined according to the field information of each sub-data (for example, the table name or the table ID). Then, the unit extraction time consumed for the unit data volume is calculated according to the data volume of the historical extracted data and the historical extraction time of the historical extracted data. Finally, the extraction time of each sub-data in the data to be extracted is predicted according to the data volume of each sub-data and the calculated unit extraction time.

[0084] For example, Figure 1bAs shown, assuming that the extraction time of the data in the table with table ID EA71883A660B1EDCADF843743FAC8A3B needs to be predicted, the historical extraction time consumed by the data extraction server to extract the historical data in the table in the historical month and the data volume of each historical sub-data extracted can be determined based on the table ID; then, based on the data volume of each sub-data, the data volume of the historical extracted data and the historical extraction time of the historical extracted data, the extraction time of each sub-data in the data to be extracted is predicted. Figure 1b As shown, according to the table ID (EA71883A660B1EDCADF843743FAC8A3B), it can be determined that the data extraction server extracted the historical data in the table twice in April 2022. The first data extraction took 5948 units of time (i.e. Figure 1b The second data extraction took 10740 units of time (i.e. Figure 1b Then, the data volume of the historical extracted data corresponding to the first data extraction and the second data extraction can be further obtained, and the unit extraction time consumed when extracting a unit amount of data can be calculated based on the determined historical extraction time and the data volume of the historical extracted data; finally, the extraction time of each sub-data in the data to be extracted can be predicted according to the unit extraction time consumed when extracting a unit amount of data and the data volume of each sub-data.

[0085] Step 12, according to the extraction time of each sub-data and the historical average extraction time, data splitting and / or data merging processing is performed on each sub-data to obtain target sub-data with balanced extraction time; wherein each target sub-data satisfies: the difference in balanced extraction time of different target sub-data is less than or equal to a preset time difference threshold.

[0086] In the embodiment of the present application, considering that the relevant technology performs data extraction, since the sub-data to be extracted in the SAP system production library are usually directly distributed to multiple data extraction servers for data extraction, the data volume of each sub-data is not considered. In this way, the data extraction time of each data extraction server may be uneven, resulting in low overall data extraction efficiency and difficulty in ensuring the real-time performance of subsequent data analysis. In order to avoid this problem, in the embodiment of the present application, data splitting and / or data merging can be performed on each sub-data according to the extraction time of each sub-data and the historical average extraction time, so as to obtain each target sub-data with a balanced extraction time.

[0087] like Figure 1cAs shown, in the embodiment of the present application, when performing data splitting and / or data merging processing on each sub-data according to the extraction time of each sub-data and the historical average extraction time, it can be implemented according to the following steps 121 to 123:

[0088] Step 121, determining the partition information of each sub-data according to the knowledge network description of each sub-data; wherein the knowledge network description includes the name and primary key of the sub-data; and the partition information is used to characterize the execution area of ​​the sub-data.

[0089] In an embodiment of the present application, when determining the partition information of each sub-data based on the knowledge network description of each sub-data, a knowledge network can be first constructed based on each sub-data, as well as the name, primary key and foreign key of each sub-data; wherein each sub-data is a network node of the knowledge network, the name and primary key of each sub-data are used to generate the knowledge network description of the knowledge network, and the foreign key of each sub-data is used to determine the relationship between the network nodes; then, based on the knowledge network, each sub-data with the same knowledge network description is divided into the same execution partition to determine the partition information of each sub-data.

[0090] Among them, the knowledge network can be a directed graph structure, and each network node in the directed graph structure can be composed of each sub-data; the "edge" in the directed graph structure can be used to represent the relationship between each sub-data, which can be determined by the foreign key of each sub-data.

[0091] like Figure 1d As shown, it is a structural diagram of a knowledge network provided in an embodiment of the present application. In the structural diagram, each dot is a network node of the knowledge network, and the lines between different dots are "edges" of the knowledge network.

[0092] Secondly, in the embodiment of the present application, each sub-data with the same knowledge network description is divided into the same execution partition, that is, the sub-data with the same name and primary key are divided into the same execution partition.

[0093] For example, Figure 1e As shown in the figure, it is the operation interface reconstructed from the near-line library view of our company's SAP system. The operation interface shows a list of some task tables that can be extracted to the near-line library. When constructing the knowledge network of this part of the task tables, each table can be mapped to a node in the knowledge network. For example, the payment system interface-financial document table is mapped to node 1 in the knowledge network; the payment system interface-original insurance business document main table is mapped to node 2 in the knowledge network; the payment system interface-financial voucher tracking table is mapped to node 3 in the knowledge network, and so on. The number of network nodes of the knowledge network finally generated is the same as the number of all task tables.

[0094] At the same time, the knowledge network description of each table can be generated according to the name and primary key of each table. For example, the knowledge network description of the payment system interface-financial document table is determined as "payment system interface-financial document".

[0095] Finally, based on the constructed knowledge network, the sub-data with the same knowledge network description are divided into the same execution partition to determine the partition information of each sub-data. Figure 1e ,from Figure 1e It can be seen that the knowledge network descriptions of the payment and collection system interface-financial documents and the payment and collection system interface-financial document summary table are the same. Therefore, the payment and collection system interface-financial documents and the payment and collection system interface-financial document summary table can be divided into the same execution partition.

[0096] Step 122, according to the partition information of each sub-data, respectively calculate the historical average extraction time of the execution area of ​​each sub-data.

[0097] In an embodiment of the present application, when calculating the historical average extraction time of the execution area of ​​each sub-data according to the partition information of each sub-data, the total number of execution partitions of each sub-data can be determined according to the partition information of each sub-data; then, the total data extraction time of the execution partitions of each sub-data is calculated; finally, according to the total number of execution partitions of each sub-data and the total data extraction time of the execution partitions of each sub-data, the historical average extraction time of the execution area of ​​each sub-data is calculated.

[0098] Step 123, according to the extraction time of each sub-data and the historical average extraction time, data splitting and / or data merging processing is performed on each sub-data to obtain each target sub-data with a balanced extraction time.

[0099] In an optional implementation, based on the extraction time of each sub-data and the historical average extraction time, data merging can be performed on sub-data with an extraction time less than the historical average extraction time to obtain target sub-data with balanced extraction time; and / or data splitting can be performed on sub-data with an extraction time greater than or equal to the historical average extraction time to obtain target sub-data with balanced extraction time.

[0100] For example, assuming that the historical average extraction time is 40 seconds, the predicted extraction time of sub-data A is 10 seconds, the predicted extraction time of sub-data B is 25 seconds, and the predicted extraction time of sub-data C is 75 seconds, then in order to ensure that the extraction time of each sub-data is balanced, in an embodiment of the present application, sub-data A and sub-data B can be merged and then sent to the same data extraction server for data extraction; and sub-data C can be split, for example, sub-data C can be split into two parts of data, data C1 with extraction times of 40 seconds and data C2 with extraction times of 35 seconds respectively.

[0101] It should be noted that the above splitting of the sub-data C into two parts of data, data C1 with extraction durations of 40 seconds and data C2 with extraction durations of 35 seconds, is only an exemplary description of the embodiment of the present application and does not impose any limitation on the embodiment of the present application.

[0102] For another example, assuming that the historical average extraction time is 40 seconds, the predicted extraction time of sub-data A is 15 seconds, the predicted extraction time of sub-data B is 25 seconds, and the predicted extraction time of sub-data C is 70 seconds, then in order to ensure that the extraction time of each sub-data is balanced, in an embodiment of the present application, sub-data C can be split into three parts of data, namely, data C1 with extraction time of 40 seconds, data C2 with extraction time of 15 seconds, and data C3 with extraction time of 15 seconds; then, C1 is sent to the data extraction server 1 for data extraction; data C2 and sub-data A or sub-data B are merged and processed, and the merged data are sent to the data extraction server 2 for data extraction; data C3 and data C2 are merged to form the remaining sub-data (sub-data A or sub-data B), and the merged data are sent to the data extraction server 3 for data extraction.

[0103] Through the above step 123, each sub-data can be divided twice according to the extraction time of each sub-data and the historical average extraction time. In this way, the extraction time of the sub-data to be extracted in each execution partition can be kept at an average state. In this way, it can be avoided that the data volume of some sub-data is too large due to not considering the data volume of each sub-data, which requires a long extraction time, thereby causing the problem of low overall data extraction efficiency.

[0104] Step 13, according to the calling method of calling different data extraction servers to extract the same amount of target sub-data, respectively call the data extraction servers to synchronously extract data from the target sub-data.

[0105] In an embodiment of the present application, when executing step 13, the scheduling path of each target sub-data can be first determined based on the directed edges of the knowledge network; then, according to the scheduling path, the data extraction servers are called separately to synchronously extract data from the target sub-data in accordance with the calling method of calling different data extraction servers to extract the same number of target sub-data.

[0106] Through the implementation of step 13, the extraction tasks of each sub-data can be evenly distributed to multiple extraction paths, and each task execution path maintains a close extraction time, thereby avoiding the single-point extraction pressure caused by extracting all the data to be extracted by a single data extraction server in the related technology, and avoiding the problem of low overall data extraction efficiency due to the uneven data volume of each sub-data.

[0107] By adopting the method provided in the embodiment of the present application, the extraction time of each sub-data in the data to be extracted can be predicted first; then, according to the extraction time of each sub-data and the historical average extraction time, data splitting and / or data merging processing is performed on each sub-data to obtain each target sub-data with a balanced extraction time; wherein each target sub-data satisfies: the difference in balanced extraction time of different target sub-data is less than or equal to a preset time difference threshold; finally, according to the calling method of calling different data extraction servers to extract the same number of target sub-data, the data extraction servers are called respectively to synchronously extract data from the target sub-data. In this way, since each target sub-data extracted by each data extraction server has a balanced extraction time, it can be ensured that the extraction time spent by each data extraction server for extracting each target sub-data is balanced, thereby solving the problem of low overall data extraction efficiency due to failure to consider the data volume of each sub-data when extracting and synchronizing data in the SAP system production library in the prior art through ETL technology.

[0108] Example 2

[0109] In order to solve the problem that the data volume of each sub-data is not considered when extracting and synchronizing the data of the SAP system production library through ETL technology in the prior art, resulting in low overall data extraction efficiency, the embodiment of the present application provides a data extraction device 20, the specific structural schematic diagram of the device 20 is as follows: Figure 2 As shown, it includes a prediction module 21, a processing module 22 and an extraction module 23, wherein:

[0110] Prediction module 21, used to predict the extraction time of each sub-data in the data to be extracted;

[0111] The processing module 22 is used to perform data splitting and / or data merging processing on each sub-data according to the extraction time of each sub-data and the historical average extraction time, so as to obtain each target sub-data with a balanced extraction time;

[0112] The extraction module 23 is used to call different data extraction servers to extract the same amount of target sub-data in accordance with the calling method of calling different data extraction servers to extract the target sub-data in synchronization.

[0113] Optionally, the processing module 22 includes:

[0114] A determination unit, used to determine the partition information of each sub-data according to the knowledge network description of each sub-data; wherein the knowledge network description includes the name and primary key of the sub-data; the partition information is used to represent the execution area of ​​the sub-data;

[0115] A calculation unit, used for calculating the historical average extraction time of the execution area of ​​each sub-data according to the partition information of each sub-data;

[0116] The processing unit is used to perform data splitting and / or data merging processing on each sub-data according to the extraction time of each sub-data and the historical average extraction time, so as to obtain each target sub-data with a balanced extraction time.

[0117] Optionally, determine the unit for:

[0118] According to each sub-data, as well as the name, primary key and foreign key of each sub-data, a knowledge network is constructed; wherein each sub-data is a network node of the knowledge network, the name and primary key of each sub-data are used to generate a knowledge network description of the knowledge network, and the foreign key of each sub-data is used to determine the relationship between the network nodes;

[0119] Based on the knowledge network, each sub-data with the same knowledge network description is divided into the same execution partition to determine the partition information of each sub-data.

[0120] Optionally, a computing unit, including:

[0121] Determine the total number of execution partitions of each sub-data according to the partition information of each sub-data;

[0122] Calculate the total data extraction time of each sub-data execution partition;

[0123] According to the total number of execution partitions of each sub-data and the total data extraction time of the execution partitions of each sub-data, the historical average extraction time of the execution area of ​​each sub-data is calculated respectively.

[0124] Optionally, the processing module 22 is used to:

[0125] According to the extraction time of each sub-data and the historical average extraction time, the sub-data with an extraction time shorter than the historical average extraction time are merged to obtain target sub-data with balanced extraction time; and / or,

[0126] According to the extraction time of each sub-data and the historical average extraction time, the sub-data with an extraction time greater than or equal to the historical average extraction time are split and processed to obtain target sub-data with balanced extraction time.

[0127] Optionally, the extraction module 23 is used to:

[0128] According to the directed edges of the knowledge network, the scheduling path of each target sub-data is determined;

[0129] According to the scheduling path, in accordance with the calling method of calling different data extraction servers to extract the same amount of target sub-data, the data extraction servers are called respectively to synchronously extract data from the target sub-data.

[0130] Optionally, the prediction module 21 is used to:

[0131] Calculate the data volume of each sub-data in the data to be extracted;

[0132] According to the data volume of each sub-data, the data volume of historically extracted data, and the historical extraction time of historically extracted data, the extraction time of each sub-data in the data to be extracted is predicted.

[0133] By using the device provided in the embodiment of the present application, the extraction time of each sub-data in the data to be extracted can be predicted first; then, according to the extraction time of each sub-data and the historical average extraction time, data splitting and / or data merging processing is performed on each sub-data to obtain each target sub-data with a balanced extraction time; wherein each target sub-data satisfies: the difference in balanced extraction time of different target sub-data is less than or equal to a preset time difference threshold; finally, according to the calling method of calling different data extraction servers to extract the same number of target sub-data, the data extraction servers are called respectively to synchronously extract data from the target sub-data. In this way, since each target sub-data extracted by each data extraction server has a balanced extraction time, it can be ensured that the extraction time spent by each data extraction server for extracting each target sub-data is balanced, thereby solving the problem of low overall data extraction efficiency due to failure to consider the data volume of each sub-data when extracting and synchronizing data in the SAP system production library in the prior art through ETL technology.

[0134] Example 3

[0135] Figure 3 A hardware structure diagram of an electronic device for implementing each embodiment of the present application, the electronic device 300 includes but is not limited to: a radio frequency unit 301, a network module 302, an audio output unit 303, an input unit 304, a sensor 305, a display unit 306, a user input unit 307, an interface unit 308, a memory 309, a processor 310, and a power supply 311. Those skilled in the art can understand that Figure 3 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. In the embodiments of the present application, the electronic device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.

[0136] Among them, the processor 310 is used to predict the extraction time of each sub-data in the data to be extracted; according to the extraction time of each sub-data and the historical average extraction time, the data is split and / or the data is merged to obtain each target sub-data with a balanced extraction time; wherein each target sub-data satisfies: the difference in the balanced extraction time of different target sub-data is less than or equal to a preset time difference threshold; according to the calling method of calling different data extraction servers to extract the same number of target sub-data, the data extraction servers are called respectively to synchronously extract data from the target sub-data.

[0137] Optionally, data splitting and / or data merging are performed on each sub-data according to the extraction time of each sub-data and the historical average extraction time to obtain each target sub-data with a balanced extraction time, including:

[0138] Determine the partition information of each sub-data according to the knowledge network description of each sub-data; wherein the knowledge network description includes the name and primary key of the sub-data; the partition information is used to characterize the execution area of ​​the sub-data;

[0139] According to the partition information of each sub-data, the historical average extraction time of the execution area of ​​each sub-data is calculated respectively;

[0140] According to the extraction time of each sub-data and the historical average extraction time, each sub-data is split and / or merged to obtain each target sub-data with a balanced extraction time.

[0141] Optionally, partition information of each sub-data is determined according to the knowledge network description of each sub-data, including:

[0142] According to each sub-data, as well as the name, primary key and foreign key of each sub-data, a knowledge network is constructed; wherein each sub-data is a network node of the knowledge network, the name and primary key of each sub-data are used to generate a knowledge network description of the knowledge network, and the foreign key of each sub-data is used to determine the relationship between the network nodes;

[0143] Based on the knowledge network, each sub-data with the same knowledge network description is divided into the same execution partition to determine the partition information of each sub-data.

[0144] Optionally, according to the partition information of each sub-data, the historical average extraction time of the execution area of ​​each sub-data is calculated respectively, including:

[0145] Determine the total number of execution partitions of each sub-data according to the partition information of each sub-data;

[0146] Calculate the total data extraction time of each sub-data execution partition;

[0147] According to the total number of execution partitions of each sub-data and the total data extraction time of the execution partitions of each sub-data, the historical average extraction time of the execution area of ​​each sub-data is calculated respectively.

[0148] Optionally, data splitting and / or data merging are performed on each sub-data according to the extraction time of each sub-data and the historical average extraction time to obtain each target sub-data with a balanced extraction time, including:

[0149] According to the extraction time of each sub-data and the historical average extraction time, the sub-data with an extraction time shorter than the historical average extraction time are merged to obtain target sub-data with balanced extraction time; and / or,

[0150] According to the extraction time of each sub-data and the historical average extraction time, the sub-data with an extraction time greater than or equal to the historical average extraction time are split and processed to obtain target sub-data with balanced extraction time.

[0151] Optionally, according to a calling method of calling different data extraction servers to extract the same amount of target sub-data, respectively calling the data extraction servers to synchronously extract data from the target sub-data includes:

[0152] According to the directed edges of the knowledge network, the scheduling path of each target sub-data is determined;

[0153] According to the scheduling path, in accordance with the calling method of calling different data extraction servers to extract the same amount of target sub-data, the data extraction servers are called respectively to synchronously extract data from the target sub-data.

[0154] Optionally, predict the extraction time of each sub-data in the data to be extracted, including:

[0155] Calculate the data volume of each sub-data in the data to be extracted;

[0156] According to the data volume of each sub-data, the data volume of historically extracted data, and the historical extraction time of historically extracted data, the extraction time of each sub-data in the data to be extracted is predicted.

[0157] The memory 309 is used to store a computer program that can be run on the processor 310. When the computer program is executed by the processor 310, the above functions implemented by the processor 310 are realized.

[0158] It should be understood that in the embodiment of the present application, the radio frequency unit 301 can be used for receiving and sending signals during information transmission or calls. Specifically, after receiving downlink data from the base station, it is sent to the processor 310 for processing; in addition, uplink data is sent to the base station. Generally, the radio frequency unit 301 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 301 can also communicate with the network and other devices through a wireless communication system.

[0159] The electronic device provides users with wireless broadband Internet access through the network module 302, such as helping users to send and receive emails, browse web pages, and access streaming media.

[0160] The audio output unit 303 can convert the audio data received by the RF unit 301 or the network module 302 or stored in the memory 309 into an audio signal and output it as sound. Moreover, the audio output unit 303 can also provide audio output related to a specific function performed by the electronic device 300 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 303 includes a speaker, a buzzer, a receiver, etc.

[0161] The input unit 304 is used to receive audio or video signals. The input unit 304 may include a graphics processor (GPU) 3041 and a microphone 3042, and the graphics processor 3041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 306. The image frame processed by the graphics processor 3041 can be stored in the memory 309 (or other storage medium) or sent via the radio frequency unit 301 or the network module 302. The microphone 3042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 301 in the case of a telephone call mode.

[0162] The electronic device 300 also includes at least one sensor 305, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 3061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 3061 and / or the backlight when the electronic device 300 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 305 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.

[0163] The display unit 306 is used to display information input by the user or information provided to the user. The display unit 306 may include a display panel 3061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0164] The user input unit 307 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 307 includes a touch panel 3071 and other input devices 3072. The touch panel 3071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 3071 or near the touch panel 3071 using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 3071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the contact point coordinates, and then sends it to the processor 310, receives the command sent by the processor 310 and executes it. In addition, the touch panel 3071 can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch panel 3071, the user input unit 307 may also include other input devices 3072. Specifically, other input devices 3072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail here.

[0165] Furthermore, the touch panel 3071 may be overlaid on the display panel 3061. When the touch panel 3071 detects a touch operation on or near it, it is transmitted to the processor 310 to determine the type of touch event. Then, the processor 310 provides corresponding visual output on the display panel 3061 according to the type of touch event. Figure 3 In the figure, the touch panel 3071 and the display panel 3061 are used as two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 3071 and the display panel 3061 can be integrated to realize the input and output functions of the electronic device, which is not limited here.

[0166] The interface unit 308 is an interface for connecting an external device to the electronic device 300. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 308 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 300 or may be used to transmit data between the electronic device 300 and an external device.

[0167] The memory 309 can be used to store software programs and various data. The memory 309 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 309 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0168] The processor 310 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 309 and calling data stored in the memory 309, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 310 may include one or more processing units; preferably, the processor 310 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 310.

[0169] The electronic device 300 may also include a power supply 311 (such as a battery) for supplying power to each component. Preferably, the power supply 311 may be logically connected to the processor 310 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.

[0170] In addition, the electronic device 300 includes some functional modules not shown, which will not be described in detail here.

[0171] Preferably, an embodiment of the present application also provides an electronic device, including a processor 310, a memory 309, and a computer program stored in the memory 309 and executable on the processor 310. When the computer program is executed by the processor 310, each process of the above-mentioned data extraction method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0172] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned data extraction method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0173] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0174] The present application is described with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, and the combination of the process and / or box in the flowchart and / or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one process or multiple processes in the flowchart and / or one box or multiple boxes in the block diagram.

[0175] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0176] These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.

[0177] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0178] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0179] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0180] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0181] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A data extraction method, characterized in that: include: Predict the extraction time of each sub-data in the data to be extracted; According to the extraction time of each sub-data and the historical average extraction time, each sub-data is subjected to data splitting and / or data merging processing to obtain each target sub-data with a balanced extraction time; wherein each target sub-data satisfies: the difference in the balanced extraction time of different target sub-data is less than or equal to a preset time difference threshold; According to the calling method of calling different data extraction servers to extract the same amount of target sub-data, respectively calling the data extraction servers to synchronously extract data from the target sub-data; According to the extraction time of each sub-data and the historical average extraction time, each sub-data is subjected to data splitting and / or data merging processing to obtain each target sub-data with a balanced extraction time, including: Determine partition information of each sub-data according to the knowledge network description of each sub-data; wherein the knowledge network description includes the name and primary key of the sub-data; and the partition information is used to characterize the execution area of ​​the sub-data; Calculating the historical average extraction time of the execution area of ​​each sub-data respectively according to the partition information of each sub-data; According to the extraction time of each sub-data and the historical average extraction time, data splitting and / or data merging processing is performed on each sub-data to obtain each target sub-data with a balanced extraction time.

2. The method according to claim 1, characterized in that Determining partition information of each sub-data according to the knowledge network description of each sub-data includes: A knowledge network is constructed according to each of the sub-data, and the name, primary key and foreign key of each of the sub-data; wherein each of the sub-data is a network node of the knowledge network, the name and primary key of each of the sub-data are used to generate the knowledge network description of the knowledge network, and the foreign key of each of the sub-data is used to determine the relationship between the network nodes; Based on the knowledge network, the sub-data with the same description in the knowledge network are divided into the same execution area to determine the partition information of the sub-data.

3. The method according to claim 1, characterized in that Calculating the historical average extraction time of the execution area of ​​each sub-data according to the partition information of each sub-data respectively includes: Determining the total number of the execution areas of each of the sub-data according to the partition information of each of the sub-data; Calculate the total data extraction time of the execution area of ​​each sub-data; The historical average extraction time of the execution area of ​​each sub-data is calculated respectively according to the total number of the execution areas of each sub-data and the total data extraction time of the execution area of ​​each sub-data.

4. The method according to claim 1, characterized in that According to the extraction time of each sub-data and the historical average extraction time, each sub-data is subjected to data splitting and / or data merging processing to obtain each target sub-data with a balanced extraction time, including: According to the extraction time of each sub-data and the historical average extraction time, the sub-data whose extraction time is less than the historical average extraction time are subjected to data merging processing to obtain the target sub-data with balanced extraction time; and / or, According to the extraction time of each sub-data and the historical average extraction time, data splitting processing is performed on the sub-data whose extraction time is greater than or equal to the historical average extraction time to obtain the target sub-data with balanced extraction time.

5. The method according to claim 1, characterized in that According to the calling mode of calling different data extraction servers to extract the same amount of target sub-data, respectively calling the data extraction servers to synchronously extract data from the target sub-data includes: Determine the scheduling path of each target sub-data according to the directed edges of the knowledge network; According to the scheduling path, in accordance with a calling method of calling different data extraction servers to extract the same amount of target sub-data, the data extraction servers are respectively called to synchronously extract data from the target sub-data.

6. The method according to claim 1, characterized in that Predict the extraction time of each sub-data in the data to be extracted, including: Calculating the data volume of each sub-data in the data to be extracted; The extraction time of each of the sub-data in the data to be extracted is predicted according to the data volume of each of the sub-data, the data volume of the historically extracted data, and the historical extraction time of the historically extracted data.

7. A data extraction device, characterized in that: It includes prediction module, processing module and extraction module, among which: A prediction module is used to predict the extraction time of each sub-data in the data to be extracted; A processing module, configured to perform data splitting and / or data merging processing on each of the sub-data according to the extraction time of each of the sub-data and the historical average extraction time, so as to obtain each target sub-data with a balanced extraction time; An extraction module, used for calling different data extraction servers to extract the same amount of target sub-data, respectively calling the data extraction servers to synchronously extract data from the target sub-data; Wherein, the processing module is used to: Determine partition information of each sub-data according to the knowledge network description of each sub-data; wherein the knowledge network description includes the name and primary key of the sub-data; and the partition information is used to characterize the execution area of ​​the sub-data; Calculating the historical average extraction time of the execution area of ​​each sub-data respectively according to the partition information of each sub-data; According to the extraction time of each sub-data and the historical average extraction time, data splitting and / or data merging processing is performed on each sub-data to obtain each target sub-data with a balanced extraction time.

8. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the data extraction method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data extraction method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Batch task processing method and device, computer equipment and storage medium

    CN110955516A

  • Methods for analyzing and load balancing based on server health and devices thereof

    US10505818B1

  • Data processing method and apparatus, electronic device, and storage medium

    WO2022083197A1