A data cleaning method, device and storage medium based on data heat

By collecting and parsing data popularity information and automatically cleaning low-value data based on preset weight evaluations and strategies, it solves the problem of low manual evaluation efficiency in the existing technology and achieves efficient and accurate data cleaning.

CN112559504BActive Publication Date: 2024-09-03SI-TECH INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011448046.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-09
Publication Date
2024-09-03
Estimated Expiration
2040-12-09

AI Technical Summary

Technical Problem

The evaluation of data popularity and value in the existing technology relies on manual methods, which is inefficient, complex, and inaccurate, resulting in insufficient data cleaning efficiency and accuracy.

Method used

By collecting data popularity information, analyzing the popularity of multiple data types, conducting evaluations based on preset popularity weights, and automatically determining the types of data to be deleted for cleaning processing based on preset cleaning strategies, using computer programs to achieve automatic data cleaning.

Benefits of technology

It improves the efficiency and accuracy of data cleaning, reduces reliance on manual processing, and realizes automated data type heat assessment and cleaning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112559504B
    Figure CN112559504B
Patent Text Reader

Abstract

The present invention provides a data cleaning method, device and storage medium based on data heat, the method comprising: collecting data heat information from a target data platform; respectively parsing multiple data types in the data heat information to obtain the heat of each data type; performing heat evaluation on the heat of each data type according to a preset heat weight to obtain evaluation information of the heat of the data type; determining the data type to be deleted according to a preset cleaning strategy and the evaluation information, and cleaning the data corresponding to the data type to be deleted. The present invention can parse the collected data heat information to obtain the heat of the data type, and provide heat evaluation information of the heat of the data type based on a data heat evaluation model, and automatically clean the data type according to the evaluation information without relying on manual processing, thereby improving the cleaning efficiency and accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention mainly relates to the technical field of data cleaning, and in particular to a data cleaning method, device and storage medium based on data heat. Background Art

[0002] With the development of big data platforms, large-scale data warehouses, data lakes and other large data centers are becoming increasingly common. While data centers continue to accumulate data, they also bring pressure on storage and performance. Ensuring the efficient operation of data centers and improving the data value of data centers have brought new challenges to data operation and maintenance. Timely cleaning of low-value and low-heat data is an effective means to solve the above problems. However, the current methods for evaluating data heat and value rely more on manual methods, which are inefficient and complex, and often have problems with low accuracy. Summary of the invention

[0003] The technical problem to be solved by the present invention is to provide a data cleaning method, device and storage medium based on data heat in view of the deficiencies in the prior art.

[0004] The technical solution of the present invention to solve the above technical problem is as follows: a data cleaning method based on data heat, comprising the following steps:

[0005] Collect data popularity information from the target data platform;

[0006] Respectively analyzing multiple data types in the data heat information to obtain heat of each data type;

[0007] Performing a heat evaluation on the heat of each of the data types according to a preset heat weight to obtain evaluation information of the heat of the data type;

[0008] The type of data to be deleted is determined according to a preset cleaning strategy and the evaluation information, and the data corresponding to the type of data to be deleted is cleaned up.

[0009] Another technical solution of the present invention to solve the above technical problem is as follows: a data cleaning device based on data heat, comprising:

[0010] The collection module is used to collect data heat information from the target data platform;

[0011] A parsing module, used to parse multiple data types in the data heat information respectively to obtain the heat of each data type;

[0012] An evaluation module, used to evaluate the heat of each of the data types according to a preset heat weight, and obtain evaluation information of the heat of the data type;

[0013] The cleaning module is used to determine the type of data to be deleted according to a preset cleaning strategy and the evaluation information, and to clean up the data corresponding to the type of data to be deleted.

[0014] Another technical solution of the present invention to solve the above-mentioned technical problem is as follows: a data cleaning device based on data heat, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the data cleaning method based on data heat as described above is implemented.

[0015] Another technical solution of the present invention to solve the above technical problem is as follows: a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data cleaning method based on data heat as described above is implemented.

[0016] The beneficial effects of the present invention are: it can parse the collected data heat information to obtain the data type heat, and provide the heat evaluation information of the data type heat based on the data heat evaluation model, and automatically clean the data type according to the evaluation information without relying on manual processing, thereby improving the cleaning efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram of a flow chart of a data cleaning method based on data heat provided by an embodiment of the present invention;

[0018] Figure 2 A schematic diagram of the functional modules of a data cleaning device based on data heat provided in an embodiment of the invention. DETAILED DESCRIPTION

[0019] The principles and features of the present invention are described below in conjunction with the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.

[0020] Figure 1 A flowchart of a data cleaning method based on data heat provided in an embodiment of the present invention.

[0021] like Figure 1 As shown, a data cleaning method based on data heat includes the following steps:

[0022] Collect data popularity information from the target data platform;

[0023] Respectively analyzing multiple data types in the data heat information to obtain heat of each data type;

[0024] Performing a heat evaluation on the heat of each of the data types according to a preset heat weight to obtain evaluation information of the heat of the data type;

[0025] The type of data to be deleted is determined according to a preset cleaning strategy and the evaluation information, and the data corresponding to the type of data to be deleted is cleaned up.

[0026] In the above embodiment, the collected data heat information can be analyzed to obtain the data type heat, and the heat evaluation information of the data type heat can be given based on the data heat evaluation model. The data type is automatically cleaned according to the evaluation information without relying on manual processing, thereby improving the cleaning efficiency and accuracy.

[0027] Optionally, as an embodiment of the present invention, the data heat information includes database logs, metadata access logs, data authorization information and data association information;

[0028] The process of respectively parsing the multiple data types in the data heat information to obtain the heat of each data type includes:

[0029] Extracting table operation statements associated with data access operations from the database log by using a preset parsing data processing script and parsing the table operation statements to obtain table information, obtaining the number of table information accesses according to the table information, and obtaining data access heat according to the number of table information accesses;

[0030] Parsing the metadata access log by a preset parsing data processing script to obtain browsing model metadata information, obtaining the number of table metadata accesses from the browsing model metadata information, and obtaining metadata structure query popularity according to the number of table metadata accesses;

[0031] Parsing the data empowerment information through a preset parsing data processing script to obtain table empowerment information, obtaining table empowerment access times from the table empowerment information, and obtaining data empowerment heat according to the table empowerment access times;

[0032] The data association information is parsed by a preset parsing data processing script to obtain association table information, and a preset association script is used to parse the association table information through a recursive method to obtain multiple source tables and target tables associated with each source table, until the recursion is stopped when there is no association relationship between the source table and the target table, and the association heat is obtained based on the multiple associated source tables and target tables.

[0033] Specifically, the preset parsing data processing script includes select, update, and insert parsing keywords, and the database log, metadata access log, data empowerment information, and data association information are parsed through these parsing keywords.

[0034] Specifically, the preset association scripts include insert into...select... and create table...asselect..., the table after select is the source table, and the table after insert into and create table is the target table.

[0035] It should be understood that the process of "using a preset association script to parse the association table information to obtain multiple source tables and target tables associated with each source table" is repeated recursively to continue parsing the impact and dependency of the target table, and this process is repeated recursively until there is no association.

[0036] In the above embodiment, a plurality of different types of data types can be parsed to obtain corresponding heats.

[0037] Optionally, as an embodiment of the present invention, the process of performing heat evaluation on the heat of each data type according to a preset heat weight to obtain evaluation information includes:

[0038] The heat of each data type is sorted according to the preset heat weight to obtain heat sorting information, and the heat of each data type is scored according to the heat sorting information, and each data type and its corresponding data type heat and score are used as evaluation information, wherein the preset heat weights are 35% for data access heat, 30% for association heat, 10% for metadata structure query heat, 10% for data empowerment heat and 15% for activity; wherein the activity share is the additional weight share of the data type with the highest number of accesses within the current preset time period.

[0039] Specifically, the "current preset time period" can be set to three months. The number of visits to each data type is counted within three months, and the data type with the highest number of visits is given an additional weighted proportion, that is, the weight corresponding to the data type is the sum of its own proportion and the additional weighted proportion.

[0040] Specifically, a data heat evaluation model can be established by presetting heat weights, and the data access heat (number of database accesses), metadata structure query heat (number of metadata accesses), data empowerment heat (number of empowerment times), association heat (association model heat score), and recent access information (activity ratio) are evaluated. The scores of each heat are calculated by converting them into percentages and multiplying them by the ratios. The heat evaluation model reflects that the higher the heat of the model that is frequently authorized to access recently, the higher the impact on the model value, and the higher the value of the model; the heat score of the associated model is calculated by the score of the affected downstream model.

[0041] It should be understood that the operation heat, query heat, weighted heat, and associated heat weights can be manually adjusted.

[0042] In the above embodiment, each heat is weighted and sorted based on the data heat evaluation model, and scored according to the weight sorting information to obtain evaluation information, and data types of different heats can be further processed through the evaluation information.

[0043] Optionally, as an embodiment of the present invention, the preset cleaning strategy includes the number of cleaning items n and the cleaning cycle;

[0044] The process of determining the type of data to be deleted according to the preset cleaning strategy and the evaluation information includes:

[0045] In each cleaning cycle, n data types with lower scores are determined according to the number of cleaning items n and the evaluation information as data types to be deleted.

[0046] Specifically, the cleaning cycle can be set to a fixed time point, such as 1 o'clock in the morning, and the data is cleaned up every time the fixed time point is reached. The cleaning cycle can be set to a time period, such as 10 hours as a cycle, and the data is cleaned up every 10 hours.

[0047] The cleaning process also includes the following steps:

[0048] The data types to be cleaned are exported to form files, and the files are backed up.

[0049] Specifically, the preset cleaning strategy not only includes the number of cleaning items n and the cleaning cycle, but also includes scoring rules and backup rules, etc., which can meet the application of various scenarios.

[0050] In the above embodiment, data types with low popularity can be cleaned regularly according to the cleaning cycle to obtain valuable data types without manual participation, thereby improving efficiency. Before data cleaning, the cleaned data is backed up to prevent data loss due to misoperation.

[0051] Figure 2 A schematic diagram of the functional modules of a data cleaning device based on data heat provided in an embodiment of the invention.

[0052] Optionally, as another embodiment of the present invention, Figure 2 As shown, a data cleaning device based on data heat includes:

[0053] The collection module is used to collect data heat information from the target data platform;

[0054] A parsing module, used to parse multiple data types in the data heat information respectively to obtain the heat of each data type;

[0055] An evaluation module, used to evaluate the heat of each of the data types according to a preset heat weight, and obtain evaluation information of the heat of the data type;

[0056] The cleaning module is used to determine the type of data to be deleted according to a preset cleaning strategy and the evaluation information, and to clean up the data corresponding to the type of data to be deleted.

[0057] Optionally, as an embodiment of the present invention, the data heat information includes database logs, metadata access logs, data authorization information and data association information;

[0058] The analysis module is specifically used for:

[0059] Extracting the associated table operation statements from the database log and parsing the table operation statements through a preset parsing data processing script to obtain table information, obtaining the number of table information accesses according to the table information, and obtaining data access heat according to the number of table information accesses;

[0060] Parsing the metadata access log by a preset parsing data processing script to obtain browsing model metadata information, obtaining the number of table metadata accesses from the browsing model metadata information, and obtaining metadata structure query popularity according to the number of table metadata accesses;

[0061] Parsing the data empowerment information through a preset parsing data processing script to obtain table empowerment information, obtaining table empowerment access times from the table empowerment information, and obtaining data empowerment heat according to the table empowerment access times;

[0062] The data association information is parsed by a preset parsing data processing script to obtain association table information, and a preset association script is used to parse the association table information through a recursive method to obtain multiple source tables and target tables associated with each source table, until the recursion is stopped when there is no association relationship between the source table and the target table, and the association heat is obtained based on the multiple associated source tables and target tables.

[0063] Optionally, as an embodiment of the present invention, the preset cleaning strategy includes the number of cleaning items n and the cleaning cycle;

[0064] The process of cleaning all data types according to the preset cleaning strategy and the evaluation information includes:

[0065] According to each cleaning cycle, the number of cleaning items n, and the evaluation information, data types corresponding to the n data types with lower heat scores are cleaned.

[0066] Optionally, as an embodiment of the present invention, the cleaning process further includes the following steps before:

[0067] Export n data types to be cleaned to form a file, and back up the file. Optionally, as another embodiment of the present invention, a data cleaning device based on data heat includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the data cleaning method based on data heat as described above is implemented.

[0068] Optionally, as another embodiment of the present invention, a computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the data cleaning method based on data heat as described above is implemented.

[0069] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device.

[0070] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A data cleaning method based on data heat, It is characterized in that The steps include: Collect data popularity information from the target data platform; Respectively analyzing multiple data types in the data heat information to obtain heat of each data type; Performing a heat evaluation on the heat of each of the data types according to a preset heat weight to obtain evaluation information of the heat of the data type; Determine the type of data to be deleted according to the preset cleaning strategy and the evaluation information, and perform cleaning processing on the data corresponding to the type of data to be deleted; The data heat information includes database logs, metadata access logs, data empowerment information and data association information; The process of respectively parsing the multiple data types in the data heat information to obtain the heat of each data type includes: Extracting table operation statements associated with data access operations from the database log by using a preset parsing data processing script, parsing the table operation statements to obtain table information, obtaining the number of table information accesses based on the table information, and obtaining data access heat based on the number of table information accesses; Parsing the metadata access log by a preset parsing data processing script to obtain browsing model metadata information, obtaining the number of table metadata accesses from the browsing model metadata information, and obtaining metadata structure query popularity according to the number of table metadata accesses; Parsing the data empowerment information through a preset parsing data processing script to obtain table empowerment information, obtaining table empowerment access times from the table empowerment information, and obtaining data empowerment heat according to the table empowerment access times; Parsing the data association information by a preset parsing data processing script to obtain association table information, and recursively parsing the association table information by using a preset association script to obtain multiple source tables and target tables associated with each source table, until the recursion stops when there is no association relationship between the source table and the target table, and obtaining association heat according to the multiple associated source tables and target tables; The preset parsing data processing script includes select, update, and insert parsing keywords.

2. The data cleaning method according to claim 1, It is characterized in that The process of performing heat evaluation on the heat of each data type according to the preset heat weight to obtain evaluation information includes: The heat of each data type is sorted according to the preset heat weight to obtain heat sorting information, and the heat of each data type is scored according to the heat sorting information, and each data type and its corresponding data type heat and score are used as evaluation information, wherein the preset heat weights are 35% for data access heat, 30% for association heat, 10% for metadata structure query heat, 10% for data empowerment heat and 15% for activity; wherein the activity share is the additional weight share of the data type with the highest number of accesses within the current preset time period.

3. The data cleaning method according to claim 2, It is characterized in that The preset cleaning strategy includes the number of cleaning items n and the cleaning cycle; The process of determining the type of data to be deleted according to the preset cleaning strategy and the evaluation information includes: In each cleaning cycle, n data types with lower scores are determined according to the number of cleaning items n and the evaluation information as data types to be deleted.

4. The data cleaning method according to claim 3, It is characterized in that The cleaning process also includes the following steps: The data types to be cleaned are exported to form files, and the files are backed up.

5. A data cleaning device based on data heat, It is characterized in that include: The collection module is used to collect data heat information from the target data platform; A parsing module, used to parse multiple data types in the data heat information respectively to obtain the heat of each data type; An evaluation module, used to evaluate the heat of each of the data types according to a preset heat weight, and obtain evaluation information of the heat of the data type; A cleaning module, used to determine the type of data to be deleted according to a preset cleaning strategy and the evaluation information, and to clean up the data corresponding to the type of data to be deleted; The data heat information includes database logs, metadata access logs, data empowerment information and data association information; The analysis module is specifically used for: Extracting table operation statements associated with data access operations from the database log by using a preset parsing data processing script, parsing the table operation statements to obtain table information, obtaining the number of table information accesses based on the table information, and obtaining data access heat based on the number of table information accesses; Parsing the metadata access log by a preset parsing data processing script to obtain browsing model metadata information, obtaining the number of table metadata accesses from the browsing model metadata information, and obtaining metadata structure query popularity according to the number of table metadata accesses; Parsing the data empowerment information through a preset parsing data processing script to obtain table empowerment information, obtaining table empowerment access times from the table empowerment information, and obtaining data empowerment heat according to the table empowerment access times; Parsing the data association information by a preset parsing data processing script to obtain association table information, and recursively parsing the association table information by using a preset association script to obtain multiple source tables and target tables associated with each source table, until the recursion stops when there is no association relationship between the source table and the target table, and obtaining association heat according to the multiple associated source tables and target tables; The preset parsing data processing script includes select, update, and insert parsing keywords.

6. The data cleaning device according to claim 5, It is characterized in that The analysis module is specifically used for: The heat of each data type is sorted according to the preset heat weight to obtain heat sorting information, and the heat of each data type is scored according to the heat sorting information, and each data type and its corresponding data type heat and score are used as evaluation information, wherein the preset heat weights are 35% for data access heat, 30% for association heat, 10% for metadata structure query heat, 10% for data empowerment heat and 15% for activity; wherein the activity share is the additional weight share of the data type with the highest number of accesses within the current preset time period.

7. A data cleaning device based on data heat, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the data cleaning method based on data heat as described in any one of claims 1 to 4 is implemented.

8. A computer-readable storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the data cleaning method based on data heat as described in any one of claims 1 to 4 is implemented.