Data comparison method, system, storage medium and electronic device

By obtaining the unique identifier id of the data and processing multi-value fields, the problem of low data comparison accuracy in existing technologies is solved, enabling more efficient and accurate data grouping and storage, and reducing computational complexity.

CN113688154BActive Publication Date: 2024-10-11BEIJING XUEZHITU NETWORK TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110863270.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-29
Publication Date
2024-10-11
Estimated Expiration
2041-07-29

AI Technical Summary

Technical Problem

Existing technologies have low accuracy in data comparison, especially in the case of multi-valued fields, which makes it difficult to accurately identify data similarity, leading to increased computational complexity and the generation of redundant data.

Method used

By obtaining the unique identifier id of the data, we determine whether the value of the entry is empty, and use a multi-pointer delimiter to split the value in the case of multi-value fields. We query similar data, calculate the number of matches, and group or discard duplicate data according to the matching results, reducing pairwise comparisons and improving accuracy.

Benefits of technology

It improves the accuracy and efficiency of data comparison, avoids redundant data storage, and reduces computational complexity, especially in the processing of multi-value fields where it is more accurate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113688154B_ABST
    Figure CN113688154B_ABST
Patent Text Reader

Abstract

The present application discloses a data comparison method, system, storage medium and electronic device, wherein the data comparison comprises: an acquisition step: acquiring a unique identification ID of the data to be compared, acquiring the data according to the unique identification ID, and obtaining an entry according to the data; a judgment step: judging whether the value of the entry is empty, querying the data similar to the value in the database according to the judgment result and extracting it into the masterDataList list; a maximum matching data acquisition step: traversing the masterDataList list, comparing the matching times of the unique identification ID of each data in the masterDataList list, and obtaining the maximum matching data according to the comparison result; a storage step: comparing the matching times with the count value, and putting the data and the maximum matching data into the database according to the comparison result. The present invention can avoid the generation of a large amount of redundant data in the database.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of data comparison, and in particular relates to a data comparison method, system, storage medium and electronic equipment. Background Art

[0002] In the context of massive data, how to prevent duplicate insertion of the same data and group and merge similar data is often a difficult problem. How to compare similar or identical data and calculate data similarity is a key link. In the face of dynamically changing table structures, more flexible data comparison operations are required.

[0003] When storing data, the prior art compares the data pairwise to calculate similarity, which increases the computational complexity. When encountering multi-value fields, the similarity between the data cannot be accurately identified, resulting in a low accuracy rate. Summary of the invention

[0004] The embodiments of the present application provide a data comparison method, system, storage medium and electronic device to at least solve the problem of low accuracy of existing data comparison methods.

[0005] The present invention provides a data comparison method, which comprises:

[0006] Acquisition step: acquiring a unique identification ID of the data to be compared, acquiring the data according to the unique identification ID, and obtaining an entry according to the data;

[0007] Judgment step: judge whether the value of the entry is empty, query the database for data similar to the value according to the judgment result and extract them into the masterDataList list;

[0008] The step of obtaining the maximum matching data is as follows: traversing the masterDataList list, comparing the matching times of the unique identification ID of each data in the masterDataList list, and obtaining the maximum matching data according to the comparison result;

[0009] Storing step: comparing the number of matches with the count value, and storing the data and the maximum matching data into the database according to the comparison result.

[0010] In the above data comparison method, the obtaining step comprises:

[0011] Data acquisition step: obtaining a unique identification ID of the data to be compared, and obtaining the data according to the unique identification ID;

[0012] Entry acquisition step: obtain metadata information of the table ID according to the table ID of the data, filter out the main attributes of the data according to the metadata information, generate a map, traverse the map, and obtain the entry.

[0013] In the above data comparison method, the judging step comprises:

[0014] Continue traversal steps: If the value of the entry is empty, continue traversal;

[0015] Determine multi-valued field step: if the value of the entry is not empty, check whether the field in the metadata information is a multi-valued field;

[0016] Extraction step: If it is a multi-value field, the value needs to be separated by a multi-value separator, and the data similar to the value in the database is queried according to the key value and extracted into the list masterDataList.

[0017] In the above data comparison method, the storing step includes:

[0018] Split point construction step: if the number of matches is less than the count value, grouping the data with the maximum matching data and storing them in the database;

[0019] Comparison step: if the number of matches is greater than or equal to the count value, the fields are compared one by one and the comparison result is output;

[0020] Output step: when the comparison result shows that there are different fields, the data and the maximum matching data are grouped together and stored in the database; when the comparison result shows that there are no different fields, it means that the data is repeated and the data is discarded.

[0021] The present invention also provides a data comparison system, which includes:

[0022] An acquisition module, wherein the acquisition module acquires a unique identification ID of data to be compared, acquires the data according to the unique identification ID, and obtains an entry according to the data;

[0023] A judgment module, wherein the judgment module judges whether the value of the entry is empty, searches the database for data similar to the value according to the judgment result, and extracts the data into the masterDataList list;

[0024] A maximum matching data acquisition module is configured to traverse the masterDataList list, compare the matching times of the unique identification ID of each data in the masterDataList list, and obtain the maximum matching data according to the comparison result;

[0025] A storage module is provided, wherein the storage module compares the number of matches with the count value, and according to the comparison result, stores the data and the maximum matching data into the database.

[0026] The above data comparison system, wherein the acquisition module comprises:

[0027] A data acquisition unit, wherein the data acquisition unit acquires a unique identification ID of data to be compared, and acquires the data according to the unique identification ID;

[0028] An entry acquisition unit, wherein the entry acquisition unit acquires metadata information of the table ID according to the table ID of the data, filters out main attributes of the data according to the metadata information, generates a map, traverses the map, and acquires the entry.

[0029] The above data comparison system, wherein the judgment module comprises:

[0030] Continue traversal unit, if the value of the entry is empty, the continue traversal unit continues traversal;

[0031] A multi-valued field determination unit, if the value of the entry is not empty, the multi-valued field determination unit checks whether the field in the metadata information is a multi-valued field;

[0032] The extraction unit, if it is the multi-value field, needs to separate the value with a multi-value separator, and according to the key value, searches the database for data similar to the value and extracts them into the list masterDataList.

[0033] The above data comparison system, wherein the storage module comprises:

[0034] a segmentation point construction unit, wherein if the number of matches is less than the count value, the segmentation point construction unit groups the data and the maximum matching data into one group and stores the group into the database;

[0035] A comparison unit, if the number of matches is greater than or equal to the count value, the comparison unit compares the fields one by one and outputs a comparison result;

[0036] The output unit groups the data and the maximum matching data into one group and stores them in the database when the comparison result shows that there are different fields. When the comparison result shows that there are no different fields, it means that the data is repeated and the data is discarded.

[0037] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned data comparison methods when executing the computer program.

[0038] A storage medium stores a computer program, wherein when the program is executed by a processor, the data comparison method described above is implemented.

[0039] The beneficial effects of the present invention are:

[0040] The present invention belongs to the field of data analysis in data capabilities. The present invention avoids the generation of a large amount of redundant data in the database; the present invention can improve the matching efficiency, avoid comparing data two by two, and reduce the calculation complexity; the present invention performs special processing on multi-value fields, which can improve the matching accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The drawings described herein are used to provide 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 improper limitations on the present application.

[0042] In the attached picture:

[0043] Figure 1 It is the overall flow chart of the data comparison method of the present invention;

[0044] Figure 2 is a flow chart of the data comparison method of the present invention;

[0045] Figure 3 is a flow chart of step S1 of the present invention;

[0046] Figure 4 is a flow chart of sub-step S2 of the present invention;

[0047] Figure 5 is a flow chart of sub-step S4 of the present invention;

[0048] Figure 6 It is a structural schematic diagram of the data comparison system of the present invention;

[0049] Figure 7 is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0051] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.

[0052] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0053] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0054] The present invention is described in detail below in conjunction with the various embodiments shown in the accompanying drawings, but it should be noted that these embodiments are not limitations of the present invention, and any equivalent transformations or substitutions in functions, methods, or structures made by ordinary technicians in the field based on these embodiments are all within the scope of protection of the present invention.

[0055] Before elaborating on each embodiment of the present invention in detail, the core inventive concept of the present invention is summarized and elaborated in detail through the following several embodiments.

[0056] Embodiment 1:

[0057] The present invention provides a data comparison method. The main technical route of the present invention is as follows: Figure 1 As shown, the specific steps are as follows:

[0058] Please refer to Figure 2 , Figure 2 is a flow chart of the audio data analysis method. Figure 2 As shown, the data comparison method of the present invention comprises:

[0059] Acquisition step S1: acquiring a unique identification ID of data to be compared, acquiring the data according to the unique identification ID, and obtaining an entry according to the data;

[0060] Determination step S2: Determine whether the value of the entry is empty, and query the database for data similar to the value according to the determination result and extract them into the masterDataList list;

[0061] Obtaining the maximum matching data step S3: traversing the masterDataList list, comparing the matching times of the unique identification ID of each data in the masterDataList list, and obtaining the maximum matching data according to the comparison result;

[0062] Storage step S4: compare the matching times with the count value, and store the data and the maximum matching data into the database according to the comparison result.

[0063] Please refer to Figure 3 , Figure 3 is a flowchart for obtaining step S1. Figure 3 As shown, the acquisition step S1 includes:

[0064] Data acquisition step S11: acquiring a unique identifier ID of data to be compared, and acquiring the data according to the unique identifier ID;

[0065] Entry acquisition step S12: acquiring metadata information of the table ID according to the table ID of the data, filtering out the main attributes of the data according to the metadata information, generating a map, traversing the map, and acquiring the entry.

[0066] Please refer to Figure 4 , Figure 4 is a flowchart of the determination step S2. Figure 4 As shown, the determination step S2 includes:

[0067] Continue traversing step S21: if the value of the entry is empty, continue traversing;

[0068] Determine multi-valued field step S22: if the value of the entry is not empty, check whether the field in the metadata information is a multi-valued field;

[0069] Extraction step S23: If it is a multi-value field, the value needs to be separated by a multi-value separator, and the data similar to the value in the database is queried according to the key value and extracted into the list masterDataList.

[0070] Please refer to Figure 5 , Figure 5 is the flow chart stored in step S4. Figure 5 As shown, the storing step S4 includes:

[0071] Segmentation point construction step S41: if the number of matches is less than the count value, grouping the data with the maximum matching data and storing them in the database;

[0072] Comparison step S42: if the number of matches is greater than or equal to the count value, the fields are compared one by one and the comparison result is output;

[0073] Output step S43: When the comparison result shows that there are different fields, the data and the maximum matching data are grouped together and stored in the database; when the comparison result shows that there are no different fields, it means that the data is repeated and the data is discarded.

[0074] Specifically, in the case of dynamically changing table structures, this solution flexibly matches data, calculates data similarity, avoids repeated storage of the same data, and groups similar data for subsequent data fusion.

[0075] Furthermore, the present invention proposes a method for data comparison based on keyword matching similar data:

[0076] When storing data, first obtain key fields and multi-value fields based on the stored metadata information, traverse the key field data values ​​and count them, extract similar data values ​​of the field from the stored data, and calculate the number of matches of the matched data. If the maximum number of matches is greater than or equal to the count value, extract the data b with the maximum number of matches and compare it with the data a to be matched. If there is no different field value, discard the duplicate data. Otherwise, put data a and data b in a group for subsequent data fusion.

[0077] Going further, Figure 1 As shown in the figure, first obtain the unique identifier id of the data a to be compared, obtain the data of a according to the unique identifier, then obtain the table id storing a to obtain the metadata information (field information) of the table, filter out the main attributes of a according to the metadata information, generate a map <field id, field value>, traverse the map, obtain each Entry <field id, field value> (<key,value> ), if the value of the Entry is empty, continue traversing. If it is not empty, check whether the field in the metadata is a multi-valued field. If it is a multi-valued field, the value needs to be separated by a multi-finger separator, and the data similar to the value in the database is queried according to the key value and extracted into the list masterDataList, and the count value is increased by one.

[0078] Traverse the masterDataList, generate a map<data unique identifier, matching times (number of data in the list)> based on the unique identifier of each data in the list, compare the matching times, if there is no matching similar data, generate a new grouping identifier and store it in the database. If a match is found, get the maximum matching data b, if the matching times are less than the count value, group data a and data b into one group and store them in the database, if the matching times are greater than or equal to the count value, compare the fields one by one, if there are different values, group data a and data b into one group and store them in the database, if there are no different fields, it means that data a is repeated, and the data is discarded.

[0079] Embodiment 2:

[0080] Please refer to Figure 6 , Figure 6 Schematic diagram of the structure of the data comparison system of the present invention. Figure 6 A data comparison system of the present invention is shown, which includes:

[0081] An acquisition module, wherein the acquisition module acquires a unique identification ID of data to be compared, acquires the data according to the unique identification ID, and obtains an entry according to the data;

[0082] A judgment module, wherein the judgment module judges whether the value of the entry is empty, searches the database for data similar to the value according to the judgment result, and extracts the data into the masterDataList list;

[0083] A maximum matching data acquisition module is configured to traverse the masterDataList list, compare the matching times of the unique identification ID of each data in the masterDataList list, and obtain the maximum matching data according to the comparison result;

[0084] A storage module is provided, wherein the storage module compares the number of matches with the count value, and according to the comparison result, stores the data and the maximum matching data into the database.

[0085] Wherein, the acquisition module includes:

[0086] A data acquisition unit, wherein the data acquisition unit acquires a unique identification ID of data to be compared, and acquires the data according to the unique identification ID;

[0087] An entry acquisition unit, wherein the entry acquisition unit acquires metadata information of the table ID according to the table ID of the data, filters out main attributes of the data according to the metadata information, generates a map, traverses the map, and acquires the entry.

[0088] Wherein, the judgment module includes:

[0089] Continue traversal unit, if the value of the entry is empty, the continue traversal unit continues traversal;

[0090] A multi-valued field determination unit, if the value of the entry is not empty, the multi-valued field determination unit checks whether the field in the metadata information is a multi-valued field;

[0091] The extraction unit, if it is the multi-value field, needs to separate the value with a multi-value separator, and according to the key value, searches the database for data similar to the value and extracts them into the list masterDataList.

[0092] Wherein, the storage module includes:

[0093] a segmentation point construction unit, wherein if the number of matches is less than the count value, the segmentation point construction unit groups the data and the maximum matching data into one group and stores the group into the database;

[0094] A comparison unit, if the number of matches is greater than or equal to the count value, the comparison unit compares the fields one by one and outputs a comparison result;

[0095] The output unit groups the data and the maximum matching data into one group and stores them in the database when the comparison result shows that there are different fields. When the comparison result shows that there are no different fields, it means that the data is repeated and the data is discarded.

[0096] Embodiment three:

[0097] Combination Figure 7 As shown, this embodiment discloses a specific implementation of an electronic device. The electronic device may include a processor 81 and a memory 82 storing computer program instructions.

[0098] Specifically, the processor 81 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0099] Among them, the memory 82 may include a large-capacity memory for data or instructions. By way of example and not limitation, the memory 82 may include a hard disk drive (HDD), a floppy disk drive, a solid-state drive (SSD), a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 82 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 82 may be inside or outside the data processing device. In a specific embodiment, the memory 82 is a non-volatile memory. In a specific embodiment, the memory 82 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable ProgrammableRead-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable ProgrammableRead-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM can be a fast page mode dynamic random access memory (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.

[0100] The memory 82 may be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 81 .

[0101] The processor 81 implements any one of the data comparison methods in the above embodiments by reading and executing computer program instructions stored in the memory 82 .

[0102] In some of the embodiments, the electronic device may further include a communication interface 83 and a bus 80. Figure 7 As shown, the processor 81, the memory 82, and the communication interface 83 are connected via a bus 80 and communicate with each other.

[0103] The communication interface 83 is used to implement communication between the modules, devices, units and / or equipment in the embodiment of the present application. The communication interface 83 can also implement data communication with other components such as: external devices, image / data acquisition equipment, databases, external storage, and image / data processing workstations.

[0104] The bus 80 includes hardware, software or both, and couples the components of the electronic device to each other. The bus 80 includes but is not limited to at least one of the following: a data bus, an address bus, a control bus, an expansion bus, and a local bus. By way of example and not limitation, bus 80 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses or a combination of two or more of these. Where appropriate, bus 80 may include one or more buses. Although embodiments of the present application describe and illustrate a particular bus, the present application contemplates any suitable bus or interconnect.

[0105] The electronic device can be based on data comparison to achieve combination Figure 2-Figure 5 Describe the method.

[0106] In addition, in combination with the data comparison method in the above embodiment, the embodiment of the present application can provide a computer-readable storage medium for implementation. The computer-readable storage medium stores computer program instructions; when the computer program instructions are executed by a processor, any one of the data comparison methods in the above embodiment is implemented.

[0107] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0108] In summary, the beneficial effects of the present invention are that the present invention avoids the generation of a large amount of redundant data in the database; the present invention can improve the matching efficiency, avoid comparing data pairwise, and reduce the calculation complexity; the present invention performs special processing on multi-value fields, which can improve the matching accuracy.

[0109] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of protection of the invention. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the attached claims.

Claims

1. A data comparison method, characterized in that: include: Acquisition step: acquiring a unique identification ID of the data to be compared, acquiring the data according to the unique identification ID, and obtaining an entry according to the data; Judgment step: judge whether the value of the entry is empty, query the database for data similar to the value according to the judgment result and extract them into the masterDataList list; The step of obtaining the maximum matching data is as follows: traversing the masterDataList list, comparing the matching times of the unique identification ID of each data in the masterDataList list, and obtaining the maximum matching data according to the comparison result; Storing step: comparing the matching times with the count value, and storing the data and the maximum matching data into the database according to the comparison result; Wherein, the obtaining step includes: Data acquisition step: obtaining a unique identification ID of the data to be compared, and obtaining the data according to the unique identification ID; Entry acquisition step: acquiring metadata information of the table ID according to the table ID of the data, filtering out the main attributes of the data according to the metadata information, generating a map, traversing the map, and acquiring the entry; The judging step includes: Continue traversal steps: If the value of the entry is empty, continue traversal; Determine multi-valued field step: if the value of the entry is not empty, check whether the field in the metadata information is a multi-valued field; Extraction step: if it is a multi-value field, the value needs to be separated by a multi-value separator, and the data similar to the value in the database is queried according to the key value and extracted into the list masterDataList; Wherein, the depositing step comprises: Split point construction step: if the number of matches is less than the count value, grouping the data with the maximum matching data and storing them in the database; Comparison step: if the number of matches is greater than or equal to the count value, the fields are compared one by one and the comparison result is output; Output step: when the comparison result shows that there are different fields, the data and the maximum matching data are grouped together and stored in the database; when the comparison result shows that there are no different fields, it means that the data is repeated and the data is discarded.

2. A data comparison system, characterized in that: include: An acquisition module, wherein the acquisition module acquires a unique identification ID of data to be compared, acquires the data according to the unique identification ID, and obtains an entry according to the data; A judgment module, wherein the judgment module judges whether the value of the entry is empty, searches the database for data similar to the value according to the judgment result, and extracts the data into the masterDataList list; A maximum matching data acquisition module is configured to traverse the masterDataList list, compare the matching times of the unique identification ID of each data in the masterDataList list, and obtain the maximum matching data according to the comparison result; A storage module, wherein the storage module compares the number of matches with a count value and stores the data and the maximum matching data into the database according to the comparison result; Wherein, the acquisition module includes: A data acquisition unit, wherein the data acquisition unit acquires a unique identification ID of data to be compared, and acquires the data according to the unique identification ID; An entry acquisition unit, wherein the entry acquisition unit acquires metadata information of the table ID according to the table ID of the data, filters out the main attributes of the data according to the metadata information, generates a map, traverses the map, and acquires the entry; Wherein, the judgment module includes: Continue traversal unit, if the value of the entry is empty, the continue traversal unit continues traversal; A multi-valued field determination unit, if the value of the entry is not empty, the multi-valued field determination unit checks whether the field in the metadata information is a multi-valued field; The extraction unit, if it is the multi-value field, needs to separate the value with a multi-value separator, and according to the key value, searches the database for data similar to the value and extracts them into the list masterDataList; The deposit module includes: a segmentation point construction unit, wherein if the number of matches is less than the count value, the segmentation point construction unit groups the data and the maximum matching data into one group and stores the group into the database; A comparison unit, if the number of matches is greater than or equal to the count value, the comparison unit compares the fields one by one and outputs a comparison result; The output unit groups the data and the maximum matching data into one group and stores them in the database when the comparison result shows that there are different fields. When the comparison result shows that there are no different fields, it means that the data is repeated and the data is discarded.

3. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the data comparison method as claimed in claim 1 is implemented.

4. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the data comparison method as claimed in claim 1 is implemented.