Mass master data fusion method and device

By designing the main data table structure and configuration version number, and combining the HBase table to fusion massive master data, the problems of low execution efficiency, high development cost and large data latency are solved, efficient and reliable fusion of multiple data sources is achieved, and atomics are simplified Sexual control.

CN119004364APending Publication Date: 2024-11-22GUANGZHOU BINGO SOFTWARE
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411057049.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The prior art has problems such as low execution efficiency, high development cost, large data delay, single data source and complex atomic control when fusion of massive master data.

Method used

Design the main data table structure, configure the number field and data update time field of the source table, generate version numbers, and use the HBase table to perform data fusion, support multiple data sources and streaming processing, simplify the development process, and realize concurrent control.

Benefits of technology

Improve data processing efficiency, reduce development costs, reduce data latency, support multiple data sources, simplify atomic control, and ensure data reliability and consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119004364A_ABST
    Figure CN119004364A_ABST
Patent Text Reader

Abstract

The invention provides a mass master data fusion method and device. The method comprises the steps that the structure of a main data table is designed; configuring one or more source table access fields for the attribute fields, and setting confidence coefficients of the source table access fields and data content update time fields of the source tables; running a data fusion task, reading data from a configured source table, including contents of a primary key field and a data fetching field, generating a version number of the field content after comprehensive calculation according to confidence of the data fetching field, data content updating time and whether the data content is null or not, and writing a primary key, a primary data field name, the field content and the version number into an HBase table together. And the HBase compares the newly written version number with the current version number of the field content according to the numerical value. Completing the main data fusion, querying the main data table, and obtaining the fused main data. The invention provides an efficient, reliable and economical method for processing mass master data fusion.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of multi-system data sharing, and in particular to a method and device for merging massive master data. Background Art

[0002] Master data refers to data that is widely used in an enterprise or organization and needs to be shared and consistent among multiple systems. Master data usually includes information about key business entities, such as customers, products, suppliers, employees, population, and locations. These data play a vital role in the operation, decision-making, and analysis of an enterprise. The traditional master data management method is to first build a master data management system, and then maintain the complete master data content in the system. Each business system or sub-unit system directly references or synchronizes these master data. This is a top-down, advance maintenance model.

[0003] However, with the development of information technology and the explosive growth of data volume, various business systems were built and used before the master data management system, or no master data management system was built, and a large amount of master data has been accumulated in various industry systems. These master data are usually scattered in different data sources, with problems such as inconsistent data format, inconsistent data content, uneven data quality, and data redundancy. The data from different sources are integrated into a unified high-quality master data according to certain rules, which is called the bottom-up master data integration model.

[0004] In the field of big data processing and analysis, it is necessary to collect data from various data sources into the data warehouse and merge the data of the same subject into a unified master data in order to correctly carry out data profiling, statistical analysis, decision-making guidance and other applications. Therefore, how to efficiently merge and manage these master data has become an important topic in the current field of big data processing.

[0005] The industry implements bottom-up master data integration in the following ways:

[0006] Based on the database stored procedure calculation method. After the data from each data source is collected into the data warehouse, the data developer writes a stored procedure according to the data fusion rules, triggers the operation of the stored procedure at a fixed time, and completes the data fusion in a batch calculation manner. This method has the following limitations and disadvantages:

[0007] 1) High development cost. It is very complicated to write loops, logical judgments and other functions through SQL. As the number of fused fields and source tables increases, the volume of stored procedures is very large, usually up to several thousand lines of SQL scripts, which requires high developer capabilities and is more difficult to maintain as time goes by; 2) Low execution efficiency. When executing loop calculations in the database, the memory occupied is high, especially when the data volume is large and the number of fused tables and fields is large, it will occupy more computing resources such as CPU and memory. It may take several days to complete the fusion calculation of a master data table, and because the stored procedure cannot be executed in parallel, the efficiency is further reduced; 3) Large data delay. Data cannot be processed in a streaming manner. It needs to be executed in batches after all the data is prepared, and the real-time fusion time requirements of real-time data cannot be met; 4) Single data source. Only data that has been collected in the data warehouse can be fused. The stored procedure cannot read data across data sources, such as Kafka-type real-time data and HTTP interface protocol data.

[0008] Develop a special data fusion calculation program. After the data from each data source is collected into the data warehouse or during the collection process, the data fusion calculation program will read the source table data and the previously fused data into the program process memory, and make judgments and calculations based on the fusion rules. If the fusion rules are met, the source table data will be written into the fusion table, otherwise, the subsequent processing will continue. This method has the following limitations and disadvantages:

[0009] Low execution efficiency. The fused data needs to be read out first, and then written after the fusion rules are judged and calculated. This increases the steps of reading and writing data, resulting in increased network I / O, longer calculation time, and increased pressure on the database, thus reducing the overall execution efficiency;

[0010] The atomicity control is complex. At the calculation program layer, the rule judgment calculation is performed and then written. Multiple source fields are merged into the same target field. When executed in parallel, they will be overwritten, resulting in data inconsistency. If the data fusion calculation program adds a distributed synchronization lock, the execution efficiency will be very low. Summary of the invention

[0011] The purpose of the present invention is to provide a method and device for merging massive master data, which can solve the problems of low execution efficiency, high development cost, large data delay, single data source, and complex atomicity control when merging massive master data from multiple sources and multiple fields.

[0012] Another object of the present invention is to provide a device for implementing the above-mentioned method for merging massive master data. The present invention provides an efficient, reliable and economical method for processing massive master data fusion.

[0013] The technical solution adopted by the present invention is as follows:

[0014] A method for merging massive master data, the method comprising the following steps:

[0015] 1) First, by designing the structure of the master data table;

[0016] 2) Then, configure one or more source table number fields for the attribute field, and set the confidence of the source table number fields and the data content update time field of the source table;

[0017] Next, run the data fusion task to read data from the configured source table, including the primary key field and the content of the access field. According to the confidence of the access field, the data content update time, and whether the data content is empty, the version number of the field content is generated after comprehensive calculation. Then, the primary key, primary data field name, field content, and version number are written into the HBase table together. HBase compares the newly written version number with the current version number of the field content according to the numerical value.

[0018] 3) Finally, complete the master data fusion, query the master data table, and obtain the fused master data.

[0019] Furthermore, in the method for merging massive master data of the present invention, the massive master data fusion device mainly includes a fusion rule configuration unit, a version number generation unit, and a fusion result storage unit; the fusion rule configuration unit includes the following:

[0020] 1) Design the master data table structure, including name, primary key and attribute fields; usually the master data table is designed as a wide table, with up to hundreds of fields or more;

[0021] 2) Configure the fusion rules of attribute fields. The rules mainly include: source table, number field, data update time field, and confidence. The source table is an abstract concept, which can be a table in a relational database, a topic in a Kafka message queue, or an HTTP data interface. It represents the specific location of the source data. The number field is a field in the source table, which will be used to fill the field content into the attribute field of the main data table. The data update time field is also a field in the source table, which is used to indicate the freshness of the data.

[0022] The confidence of a numeric field is a non-decimal percentage ranging from 0% to 100%. Its value can be the value determined by the business personnel's experience or from a statistical analysis algorithm, such as the confidence calculated based on comprehensive statistical analysis of the field content fill rate, the number of field references, and the timeliness of data updates. The formula is: For example, confidence level = α1*field content fill rate score + α2*field citation count score + α3*data update timeliness score + α4*data source reliability score.

[0023] Furthermore, in the method for fusion of massive master data of the present invention, the scoring rule table of each factor of the confidence level of the digital segment is obtained, wherein:

[0024] αi is the weight of each factor, which can be adjusted according to actual business needs and experience, and the sum of all weights should be 1; Si is the score range of each factor normalized to between 0 and 1 for unified calculation;

[0025] 3) Each attribute field of master data can be configured with one or more fusion rules;

[0026] 4) Complete the configuration of all attribute field fusion rules for master data.

[0027] Furthermore, in the method for merging massive master data of the present invention, the version number generating unit comprises:

[0028] 1) Run data fusion tasks; each source table corresponds to a data fusion task, which can be run manually, scheduled, or triggered when new data arrives;

[0029] 2) Read data from the configured source table, including the primary key field, the number field, and the data content update time field;

[0030] 3) Loop and read each source data;

[0031] 4) Because empty data is meaningless for fusion, first determine whether the content of the number field is empty. If not, proceed to step 5), otherwise proceed to step 3);

[0032] 5) Generate a version number for the field content. The generation rule is confidence level + data content update time formatted as a 13-bit timestamp. For example, if the confidence level is 75% and the data content update time is 2024-07-03 12:23:43, the version number is "751719980624000";

[0033] 6) The primary key value, primary data field name, field content, and version number are written into the HBase table.

[0034] Furthermore, in the method for merging massive master data of the present invention, the fusion result storage unit comprises:

[0035] 1) Receive the primary key value, primary data field name, number field content, and version number sent;

[0036] 2) According to the primary key value and the primary data field name, find the data record and field that needs to be updated, and prepare to update the field with the content of the number field and the version number;

[0037] 3) Compare the new version number with the current version number of the field content by numerical value. If the new version number is greater than or equal to the current version number, proceed to step 4), otherwise proceed to step 5);

[0038] 4) Set the newly written data as the current version to complete the fusion of new data;

[0039] 5) It is written as a historical version, will not be updated to the current version, and is not visible to default data query operations.

[0040] By means of the above technical solution, the present invention has the following beneficial effects:

[0041] 1) Improve execution efficiency: By optimizing the data fusion algorithm and process, and combining the data update characteristics of HBase with cleverly designed version numbers, redundant steps of reading and writing fused data can be avoided, effectively improving the speed and efficiency of data processing, and solving the problem of low execution efficiency when merging massive master data from multiple sources and multiple fields;

[0042] 2) Reduce development costs: Provide standardized configuration functions and friendly pages to simplify the development process, greatly reduce the ability requirements of master data fusion developers, and thus reduce development costs;

[0043] 3) Reduce data delay: Support streaming data fusion and scheduled batch data fusion to ensure timely data processing and updating, significantly reduce data delay, and can reduce delay to seconds;

[0044] 4) Support for multiple data sources: Support the access and integration of multiple data sources to ensure the diversity of data sources and enhance the comprehensiveness and reliability of data;

[0045] 5) Simplify atomicity control: By unifying the atomic control updated at the HBase data field level, transaction management and concurrency control are implemented, the complexity of atomicity control is simplified, and the reliability and consistency of data operations are ensured.

[0046] 6) Strong scalability: Design a distributed architecture with good scalability to facilitate system expansion and upgrades to meet the growing data processing needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 Shown is the overall flow chart of the method and device for merging massive master data of the present invention;

[0048] Figure 2 Shown is a schematic diagram of the structure of the method and device for merging massive master data of the present invention;

[0049] Figure 3 Shown is a flow chart of the fusion rule configuration unit;

[0050] Figure 4 What is shown is a flow chart of the version number generation unit;

[0051] Figure 5 What is shown is a flow chart of the fusion result storage unit;

[0052] Figure 6 What is shown is the scoring rule table of each factor of the confidence level of the digital segment;

[0053] Figure 7 What is shown is a schematic diagram of an implementation example of population master data fusion in a certain industry;

[0054] Figure 8 Shown is a schematic diagram of the results of an implementation example of population master data fusion in a certain industry. DETAILED DESCRIPTION

[0055] To make the purpose, technical solution and advantages of the present invention more clearly understood, the technical solution provided by the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them.

[0056] The present invention provides a method and device for merging massive master data. The method for merging massive master data comprises the following steps:

[0057] First, design the structure of the master data table, including the name, primary key, and attribute fields. Then, configure one or more source table retrieval fields for the attribute fields, set the confidence level of the source table retrieval fields, and the source table data content update time field.

[0058] Next, run the data fusion task to read data from the configured source table, including the primary key field and the content of the access field. Based on the confidence of the access field, the data content update time, and whether the data content is empty, a comprehensive calculation is performed to generate the version number of the field content. Then, the primary key, primary data field name, field content, and version number are written into the HBase table together.

[0059] HBase compares the newly written version number with the current version number of the field content according to the numerical value. If the newly written version number is greater than the current version number, the new data is set as the current version as the latest fusion result. Otherwise, it is written as a historical version and the fused data is ignored. Finally, the master data fusion is completed, and the master data table is queried to obtain the fused master data.

[0060] The overall flow chart is as follows Figure 1 , 7 The technical solution of the present invention mainly includes a fusion rule configuration unit, a version number generation unit, and a fusion result storage unit.

[0061] Example 1

[0062] Taking the fusion of population master data of a certain industry as an example, the main method flow is as follows: Figure 1 shown.

[0063] Step 101, design the structure of the master data table, including name, primary key and attribute fields. In this embodiment, the population master data is designed, including table name, ID number, gender, and residential address fields.

[0064] Step 102, select the attribute field, configure one or more source table retrieval fields, and set the confidence of the source table retrieval fields and the source table data content update time field. Figure 7 For example, data are extracted from the household registration address field of the household registration system's population information, the address field of the residence permit registration information, the contact address field of the driver's license information, and the address field of the visitor registration information. Their confidence levels are set to 85%, 90%, 78%, and 90%, respectively, and a data content update time field is set.

[0065] Step 103, run the data fusion task, read data from the configured source table, including the primary key field, the number field and the data content update time field, and generate the version number of the field content after comprehensive calculation based on the confidence of the number field, the data content update time, and whether the data content is empty. Then, write the primary key, primary data field name, field content and version number into the HBase table.

[0066] Step 104, HBase compares the newly written version number with the current version number of the field content according to the numerical value. If the newly written version number is greater than the current version number, the new data is set as the current version; otherwise, it is written as a historical version and the fused data is ignored.

[0067] Step 105, complete data fusion, query the master data table, and obtain the fused master data.

[0068] In this embodiment, after completing the data fusion rule configuration and raw data preparation, each source table starts running the data fusion task, and the tasks can be run in parallel. In order to facilitate the description of the running process of step 103, step 104, and step 105, the running process and running results of each fusion task will be described in sequence.

[0069] Example 2

[0070] like Figure 2As shown, the master data fusion device of some embodiments includes a fusion rule configuration module, a fusion task running module, and a fusion result storage module; the fusion rule configuration module 201 is used to create a master data table and configure the attribute field fusion rule of the master data table; the fusion task running module 202 is used to obtain the fusion rule, and according to the configuration of the data acquisition table and the data acquisition field of the fusion rule, read the data and calculate the version number, and send it to the fusion result storage module; the fusion result storage module 203 is used to receive the version number and other contents of the fusion calculation, compare the version numbers, and persistently store the fusion result data.

[0071] In an optional implementation of some embodiments, the device further includes: a confidence receiving unit, configured to receive a confidence value provided by an external system or interface.

[0072] It is understandable that the modules described in the device are similar to those described in the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device and the modules and units contained therein, and will not be repeated here.

[0073] like Figure 3 As shown, the composition of the fusion rule configuration unit is as follows:

[0074] 1) Design the master data table structure, including name, primary key and attribute fields. Usually the master data table is designed as a wide table, with hundreds of fields or more;

[0075] 2) Configure the fusion rules of the attribute fields, and the confidence value range is a non-decimal percentage from 0% to 100%. The rule content mainly includes: source table, number field, data update time field, confidence, which can be source table 1, source table 2, source table n or multiple. The source table is an abstract concept, which can be a table in a relational database, or a topic in a Kafka message queue or an HTTP data interface, which represents the specific location of the source data. The number field is a field in the source table, which will be used to fill the field content into the attribute field of the main data table. The data update time field is also a field in the source table, which is used to indicate the freshness of the data.

[0076] like Figure 4 As shown, the version number generation unit is composed as follows:

[0077] 1) Run data fusion tasks. Each source table corresponds to a data fusion task, which can be run manually, scheduled, or triggered when new data arrives;

[0078] 2) Read data from the configured source table, including the primary key field, the content of the number field, and the data content update time field;

[0079] 3) Loop through the data from each source table;

[0080] 4) First, determine whether the content of the number field is empty, because empty data is meaningless for fusion, so if it is not empty, go to step 5), otherwise go to step 3) to continue reading the next data;

[0081] 5) If the content is not empty, the version number of the field content is generated. The generation rule is confidence level + data content update time formatted as a 13-bit timestamp. For example, if the confidence level is 75% and the data content update time is 2024-07-03 12:23:43, the version number is "751719980624000";

[0082] 6) The primary key value, primary data field name, field content, and version number are written into the fusion result storage unit;

[0083] 7) The data fusion task is completed, and all source table data have been fused according to the fusion rules;

[0084] like Figure 5 As shown, the composition of the fusion result storage unit is as follows:

[0085] 1) Receive the primary key value, primary data field name, access field content, and version number sent;

[0086] 2) According to the primary key value and the primary data field name, find the data record and field that needs to be updated, and prepare to update the field with the content of the number field and the version number;

[0087] 3) Compare the new version number with the current version number of the field content by numerical value. If the new version number is greater than or equal to the current version number, proceed to step 4), otherwise proceed to step 5);

[0088] 4) Set the newly written data as the current version to complete the fusion of new data;

[0089] 5) It is written as a historical version, will not be updated to the current version, and is not visible to default data query operations.

[0090] Combine the following Figure 4-8 As shown, the main implementation principles, specific implementation methods and corresponding beneficial effects of the technical solutions of the embodiments of the present application are described in detail.

[0091] 1) Household registration system population information data fusion task

[0092] like Figure 4As shown, run the data fusion task, read data from the configured source table, including the primary key field, the content of the number field and the data content update time field, determine whether the content of the number field is empty, if the content is empty, continue to read the next data, if the content is not empty, generate a version number for the field content, and the generation rule is: confidence + data content update time formatted as a 13-bit timestamp, and write the data to the fusion result storage unit.

[0093] In this embodiment, three data are read out according to the data fusion configuration rules, among which the registered address of the ID number "XXX1..." is empty, so it is discarded and not processed further. The remaining two data have the same confidence level and data content update time, so the version numbers are both generated as "851720676571827".

[0094] like Figure 5 As shown, the primary key value, primary data field name, number field content, and version number are received. According to the primary key value and the primary data field name, the data record and field that need to be updated are found, and the number field content and version number are updated to the field. The new version number is compared with the current version number of the field content based on the numerical value. If the new version number is greater than or equal to the current version number, the newly written data is set as the current version to complete the fusion of the new data. Otherwise, it is written as a historical version and will not be updated to the current version. It is invisible to the default data query operation.

[0095] In this embodiment, because the residential address content of the current main data table is empty and the current version number is also empty, the version number of the newly written data is greater than the current version number, and ultimately both data are written into the fusion data storage unit HBase table.

[0096] 2) Residence permit registration information data fusion task

[0097] like Figure 4 Run the data fusion task, read data from the configured source table, including the primary key field, the content of the number field, and the data content update time field, determine whether the content of the number field is empty, if the content is empty, continue to read the next data, if the content is not empty, generate the version number of the field content, the generation rule is: confidence + formatted as a 13-bit timestamp data content update time, and write the data to the fusion result storage unit.

[0098] In this embodiment, two pieces of data are read according to the data fusion configuration rule, of which the address of the ID card number "XXX2..." is empty, so it is discarded without processing, and the remaining piece of data generates a version number of "901713253611867". The content of the one piece of data is written to the HBase table of the fusion data storage unit.

[0099] like Figure 5 As shown, the primary key value, primary data field name, number field content, and version number are received. According to the primary key value and the primary data field name, the data record and field that need to be updated are found, and the number field content and version number are updated to the field. The new version number is compared with the current version number of the field content based on the numerical value. If the new version number is greater than or equal to the current version number, the newly written data is set as the current version to complete the fusion of the new data. Otherwise, it is written as a historical version and will not be updated to the current version. It is invisible to the default data query operation.

[0100] In this embodiment, because the version number of the residential address field of the current primary key "XXX3..." is 901713253611867", which is greater than the current version number "851720676571827", the residential address is updated to "XXX, Tangwanghe Township, Sanshui District, Foshan City, Guangdong Province..." and "901713253611867" is used as the current version.

[0101] 3) Driver’s license information data fusion task

[0102] like Figure 4 As shown, run the data fusion task, read data from the configured source table, including the primary key field, the content of the number field and the data content update time field, determine whether the content of the number field is empty, if the content is empty, continue to read the next data, if the content is not empty, generate the version number of the field content, the generation rule is: confidence + formatted as a 13-bit timestamp data content update time, and write the data into the fusion result storage unit. In this embodiment, according to the data fusion configuration rules, 1 data is read out, and there is no data with an empty contact address, so only 1 data generates a version number of "781710305181427". Write the content of 1 data to the fusion data storage unit HBase table.

[0103] like Figure 5 As shown, the primary key value, primary data field name, number field content, and version number are received. According to the primary key value and the primary data field name, the data record and field that need to be updated are found, and the number field content and version number are updated to the field. The new version number is compared with the current version number of the field content based on the numerical value. If the new version number is greater than or equal to the current version number, the newly written data is set as the current version to complete the fusion of the new data. Otherwise, it is written as a historical version and will not be updated to the current version. It is invisible to the default data query operation.

[0104] In this embodiment, although the confidence of the source table is 78%, which is the lowest among all source tables, because the residential address content of the current main data table with ID card "XXX4..." is empty and the current version number is also empty, the version number of the newly written data is greater than the current version number, and finally one piece of data is written into the HBase table of the fusion data storage unit.

[0105] 4) Visitor registration information data fusion task

[0106] like Figure 4 As shown, run the data fusion task, read data from the configured source table, including the primary key field, the content of the number field and the data content update time field, determine whether the content of the number field is empty, if the content is empty, continue to read the next data, if the content is not empty, generate a version number for the field content, and the generation rule is: confidence + data content update time formatted as a 13-bit timestamp, and write the data to the fusion result storage unit.

[0107] In this embodiment, one piece of data is read out according to the data fusion configuration rule, and there is no data with an empty contact address, so only one piece of data is generated with a version number of "901721058161837". The content of one piece of data is written to the HBase table of the fusion data storage unit.

[0108] like Figure 5 As shown, the primary key value, primary data field name, number field content, and version number are received. According to the primary key value and the primary data field name, the data record and field that need to be updated are found, and the number field content and version number are updated to the field. The new version number is compared with the current version number of the field content based on the numerical value. If the new version number is greater than or equal to the current version number, the newly written data is set as the current version to complete the fusion of the new data. Otherwise, it is written as a historical version and will not be updated to the current version. It is invisible to the default data query operation.

[0109] In this embodiment, because the version number of the residential address field of the current primary key "XXX3..." is "901721058161837", which is greater than the current version number "901713253611867", the residential address is updated to "XXX, Eryuan Township, Yangxi County, Yangjiang City, Guangdong Province...", and "901721058161837" is used as the current version. This is equivalent to giving priority to the data with the latest update time when the confidence level is the same.

[0110] According to the field fusion rules of the population master data table, by running the data fusion task, the residential addresses of all source tables are calculated according to the data content is not empty, confidence, and data content update time, and the residential address field of the master data table is fused. The fusion process of other attribute fields of the population master data is the same as this field. Finally, the fusion of the entire population master data table is completed, and a high-quality population master data is provided to the outside world to help carry out related businesses.

[0111] The confidence of a numeric field is a non-decimal percentage ranging from 0% to 100%. Its value can be the value determined by the business personnel's experience or from a statistical analysis algorithm, such as the confidence calculated based on comprehensive statistical analysis of the field content fill rate, the number of field references, and the timeliness of data updates. The formula is: For example, confidence level = α1*field content fill rate score + α2*field citation count score + α3*data update timeliness score + α4*data source reliability score.

[0112] Take the score rule table of each factor of the digital segment confidence, such as Figure 6 As shown. Among them:

[0113] αi is the weight of each factor, which can be adjusted according to actual business needs and experience, and the sum of all weights should be 1; Si is the score range of each factor normalized to between 0 and 1 for unified calculation; each attribute field of master data can be configured with one or more fusion rules; complete the fusion rule configuration of all attribute fields of master data.

[0114] like Figure 7-8 As shown, the residential address field of the population master table extracts data from the household registration address field of the household registration system population information, the address field of the residence permit registration information, the contact address field of the driver's license information, and the address field of the visitor registration information. Their confidence levels are set to 85%, 90%, 78%, and 90%, respectively, and the data content update time field is set. After step 103 and step 104, data fusion is completed, the master data table is queried, and the fused master data is obtained.

[0115] like Figure 8 As shown, the result of the fusion of the master data table is that the ID card numbers are XXX3…, XXX2…, XXX4…, and the residential addresses are XXX… in Eryuan Township, Yangxi County, Yangjiang City, Guangdong Province, XXX… in Xin'an Town, Longhu District, Shantou City, Guangdong Province, and XXX… in Anping Township, Dianbai District, Maoming City, Guangdong Province.

[0116] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Therefore, any simple modification, equivalent change and modification made to the above embodiment according to the technical essence of the present invention without departing from the technical solution of the present invention still fall within the scope of the technical solution of the present invention.

Claims

1. A method for merging massive master data, characterized in that: The method comprises the following steps: 1) First, by designing the structure of the master data table; 2) Then, configure one or more source table number fields for the attribute field, and set the confidence of the source table number fields and the data content update time field of the source table; Next, run the data fusion task to read data from the configured source table, including the primary key field and the content of the access field. According to the confidence of the access field, the data content update time, and whether the data content is empty, the version number of the field content is generated after comprehensive calculation. Then, the primary key, primary data field name, field content, and version number are written into the HBase table together. HBase compares the newly written version number with the current version number of the field content according to the numerical value. 3) Finally, complete the master data fusion, query the master data table, and obtain the fused master data.

2. The method for merging massive master data according to claim 1, characterized in that: The massive master data fusion device mainly includes a fusion rule configuration unit, a version number generation unit, and a fusion result storage unit; The fusion rule configuration unit includes the following: 1) Design the master data table structure, including name, primary key and attribute fields. Usually the master data table is designed as a wide table, with hundreds of fields or more; 2) Configure the fusion rules of attribute fields: The rules mainly include source table, number field, data update time field, and confidence level. The source table is an abstract concept, which can be a table in a relational database, a topic in a Kafka message queue, or an HTTP data interface. It represents the specific location of the source data. The number field is a field in the source table, which will be used to fill the field content into the attribute field of the main data table. The data update time field is also a field in the source table, which is used to indicate the freshness of the data; The confidence of a numeric field is a non-decimal percentage ranging from 0% to 100%. Its value can be the value determined by the business personnel's experience or from a statistical analysis algorithm, such as the confidence calculated based on comprehensive statistical analysis of the field content fill rate, the number of field references, and the timeliness of data updates. The formula is: Confidence = α1*field content filling rate score + α2*field citation number score + α3*data update timeliness score + α4*data source reliability score.

3. The method for merging massive master data according to claim 1, characterized in that: The scoring rule table of each factor of the confidence factor of the digital field, where: αi is the weight of each factor, which can be adjusted according to actual business needs and experience, and the sum of all weights should be 1; The score range of each factor was normalized to between 0 and 1 to facilitate unified calculation; 3) Each attribute field of master data can be configured with one or more fusion rules; 4) Complete the configuration of all attribute field fusion rules for master data.

4. The method for merging massive master data according to claim 1, characterized in that: The version number generating unit comprises: 1) Run data fusion tasks; each source table corresponds to a data fusion task, which can be run manually, scheduled, or triggered when new data arrives; 2) Read data from the configured source table, including the primary key field, the number field, and the data content update time field; 3) Loop and read each source data; 4) Because empty data is meaningless for fusion, first determine whether the content of the number field is empty. If not, proceed to step 5), otherwise proceed to step 3); 5) Generate a version number for the field content. The generation rule is confidence level + data content update time formatted as a 13-bit timestamp. For example, if the confidence level is 75% and the data content update time is 2024-07-03 12:23:43, the version number is "751719980624000"; 6) The primary key value, primary data field name, field content, and version number are written into the HBase table.

5. The method for merging massive master data according to claim 1, characterized in that: The fusion result storage unit includes: 1) Receive the primary key value, primary data field name, number field content, and version number sent; 2) According to the primary key value and the primary data field name, find the data record and field that needs to be updated, and prepare to update the field with the content of the number field and the version number; 3) Compare the new version number with the current version number of the field content by numerical value. If the new version number is greater than or equal to the current version number, proceed to step 4), otherwise proceed to step 5); 4) Set the newly written data as the current version to complete the fusion of new data; 5) It is written as a historical version, will not be updated to the current version, and is not visible to default data query operations.

6. A massive master data fusion device, characterized in that: include: The fusion rule configuration module is used to create a master data table and configure the attribute field fusion rules of the master data table; The fusion task running module is used to obtain the fusion rules, and read the data and calculate the version number according to the configuration of the fusion rule data acquisition table and data acquisition field, and send it to the fusion result storage module; The fusion result storage module is used to receive the version number and other content of the fusion calculation, compare the version numbers, and persistently store the fusion result data.

Citation Information

Patent Citations

  • Data aggregation method and device, storage medium and electronic equipment

    CN112115163A

  • Systems and methods for updating labels assigned to electronic activities

    US10489462B1