Table data life cycle management method and device, equipment and storage medium

By setting archive_flag and delete_flag fields, data archive, backup and destruction tasks are created, which solves the shortcomings of table data life cycle management, realizes data quantity control and data safe deletion, provides a complete set of life cycle management processes, and solves table data management key issue.

CN118885121AActive Publication Date: 2024-11-01CHINA ELECTRONICS CLOUD DIGITAL INTELLIGENCE TECH CO LTD +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411023119.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-11-01
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

There is currently a lack of effective table data life cycle management methods, which leads to table data expanding with the development of the business, affecting system performance, and lacking data marking, backup, recycling bin and thorough deletion functions.

Method used

By setting archive_flag and delete_flag fields, create near-line archive, offline archive backup and destruction tasks, realize the archiving marking, backup, deletion and recycling bin management of table data, and provide a complete set of data lifecycle management processes.

Benefits of technology

Effectively manage the life cycle of table data, avoid data bloating affecting system performance, provide data marking, backup, recycling bin and thorough deletion functions, and ensure data security and recoverability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118885121A_ABST
    Figure CN118885121A_ABST
Patent Text Reader

Abstract

The invention discloses a table data life cycle management method and device, equipment and a storage medium, and relates to the technical field of data management.The method comprises the steps that public field setting is conducted on a data table based on a marking demand, a data near-line filing task is created, and near-line filing marking processing is conducted on table data; creating a data off-line filing task according to a near-line filing marking processing result, and performing off-line filing backup processing on the table data; creating a data destruction task according to an offline archiving backup processing result, and immediately deleting the table data subjected to offline archiving backup or putting the table data into a recycle bin for processing; and restoring or thoroughly deleting the table data in the recycle bin based on the function setting of the recycle bin and the use demand of the table data. According to the invention, effective management of the table data life cycle can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data management technology, and in particular to a table data lifecycle management method, device, equipment and storage medium. Background Art

[0002] In today's data economy era, all major companies are undergoing digital transformation, and data extraction, governance, and management play a vital role in the digital transformation process. In the process of data governance, a large number of data tables will be generated. With the continuous development of the business, the amount of table data may become larger and larger, possibly reaching tens of millions or even hundreds of millions of data. Therefore, the life cycle management of table data is particularly important.

[0003] However, there are few specific ways to manage the life cycle of table data in the industry. Therefore, how to effectively manage the life cycle of table data has become an urgent problem that needs to be solved. Summary of the invention

[0004] The present application provides a table data lifecycle management method, apparatus, device and storage medium, which can achieve effective management of the table data lifecycle.

[0005] In a first aspect, an embodiment of the present application provides a table data lifecycle management method, the table data lifecycle management method comprising:

[0006] Set common fields for the data table based on the tagging requirements, create a data near-line archiving task, and perform near-line archiving tagging on the table data;

[0007] Create a data offline archiving task based on the near-line archiving and marking processing results to perform offline archiving and backup processing on the table data;

[0008] Create a data destruction task based on the offline archive backup processing results to immediately delete or put the table data that has been offline archived into the recycle bin;

[0009] Based on the function settings of the recycle bin and the usage requirements of the table data, restore or completely delete the table data in the recycle bin.

[0010] In combination with the first aspect, in one implementation,

[0011] The common fields include an archive_flag field and a delete_flag field;

[0012] The archive_flag field is an archive flag, which is used to indicate whether the table data has been archived. When the value of the archive_flag field is 00, it indicates that the table data has not been archived. When the value of the archive_flag field is 01, it indicates that the table data has been archived.

[0013] The delete_flag field is a deletion flag used to indicate whether the data has been marked for deletion. When the value of the delete_flag field is 00, it indicates that the data has not been deleted. When the value of the delete_flag field is 01, it indicates that the data has been deleted.

[0014] In combination with the first aspect, in one implementation, the creating of the data nearline archiving task and performing nearline archiving marking processing on the table data specifically includes:

[0015] Select the data table to be managed, create a near-line data archiving task, and set an archiving strategy, which includes retaining data for a set number of days and retaining a set number of data items;

[0016] Configure the execution mode of the data near-line archiving task, wherein the execution mode of the data near-line archiving task includes scheduled execution, periodic execution, and immediate execution;

[0017] According to the execution mode of the configured data near-line archiving task, the value of the archive_flag field of the table data in the selected data table that complies with the archiving strategy is updated to 01 to implement near-line archiving marking processing for the table data;

[0018] Record the number of table data items in each data table that have been processed for near-line archiving and labeling, and provide a page statistics visualization display.

[0019] In combination with the first aspect, in one implementation, creating a data offline archiving task according to the near-line archiving marking processing result and performing offline archiving backup processing on the table data specifically includes:

[0020] According to the near-line archiving and marking processing results, the data table that has undergone the near-line archiving and marking processing is selected;

[0021] Create a data offline archiving task and configure the execution mode of the data offline archiving task. The execution mode of the data offline archiving task includes scheduled execution, periodic execution, and immediate execution.

[0022] For the selected data tables, write the table data whose archive_flag field value is 01 in each data table into the csv file;

[0023] Compress the csv file into a zip file, upload the zip file to the file server for data backup, and realize offline archiving and backup processing of table data;

[0024] Record the number of table data items in each data table that have been processed for offline archive backup, and provide a page statistics visualization display.

[0025] In combination with the first aspect, in one implementation, creating a data destruction task according to the offline archive backup processing result to immediately delete or put the table data that has been offline archived into a recycle bin specifically includes:

[0026] According to the offline archive backup processing result, the data table which has been processed by the offline archive backup is obtained;

[0027] Create a data destruction task and set a data destruction strategy, which includes placing the data to be destroyed in a recycle bin and completely deleting the data to be destroyed;

[0028] Configure the execution mode of the data destruction task, wherein the execution mode of the data destruction task includes scheduled execution, periodic execution, and immediate execution;

[0029] According to the set data destruction strategy and the execution method of the configured data destruction task, the table data in the acquired data table is immediately deleted or put into the recycle bin to achieve the destruction of the table data;

[0030] Record the number of table data entries that have been destroyed in each data table, and provide a page statistics visualization display.

[0031] In combination with the first aspect, in one implementation, according to the set data destruction strategy and the configured data destruction task execution mode, the table data in the acquired data table is immediately deleted or placed into a recycle bin to achieve the destruction of the table data, specifically including:

[0032] When the data destruction policy is set to put the data to be destroyed into the recycle bin, according to the execution mode of the configured data destruction task, the delete_flag field value of the table data whose archive_flag field value is 01 in the acquired data table is set to 01, and the table data after the field value is set is put into the recycle bin to realize the destruction of the table data;

[0033] When the data destruction policy is set to completely delete the data to be destroyed, the table data whose value of the archive_flag field in the acquired data table is 01 is completely deleted according to the execution mode of the configured data destruction task, thereby realizing the destruction of the table data.

[0034] In combination with the first aspect, in one implementation,

[0035] The recycle bin only displays data tables that meet the set conditions, wherein when the number of table data in the data table with a delete_flag field value of 01 is greater than 0, the current data table meets the set conditions;

[0036] The recycle bin provides a data restoration function and a complete deletion function. The data restoration function is to set the delete_flag field value of the table data to 00, and the complete deletion function is to completely delete the table data with the delete_flag field value of 01.

[0037] In a second aspect, an embodiment of the present application provides a table data lifecycle management device, the table data lifecycle management device comprising:

[0038] The first processing module is used to set common fields in the data table based on the marking requirements, create a data near-line archiving task, and perform near-line archiving marking processing on the table data;

[0039] The second processing module is used to create a data offline archiving task according to the near-line archiving marking processing result, and perform offline archiving backup processing on the table data;

[0040] The third processing module is used to create a data destruction task according to the offline archive backup processing result, and immediately delete or put the table data that has been offline archived into the recycle bin for processing;

[0041] The execution module is used to restore or completely delete the table data in the recycle bin based on the function setting of the recycle bin and the usage requirements of the table data.

[0042] In a third aspect, an embodiment of the present application provides a table data lifecycle management device, wherein the table data lifecycle management device comprises a processor, a memory, and a table data lifecycle management program stored in the memory and executable by the processor, wherein when the table data lifecycle management program is executed by the processor, the steps of the above-mentioned table data lifecycle management method are implemented.

[0043] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a table data lifecycle management program is stored, wherein when the table data lifecycle management program is executed by a processor, the steps of the table data lifecycle management method described above are implemented.

[0044] The beneficial effects brought by the technical solution provided in the embodiments of the present application include:

[0045] By managing the life cycle of table data in the data table, it is possible to prevent the data volume in the data table from expanding as the business develops and affecting the performance of the system. At the same time, this application also provides a full set of data tagging, data backup, data entering the recycle bin, data restoration and complete data deletion functions to ensure that the table data in the data table can be safely deleted and can be imported into the data table again through the backup file after deletion. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 This is a flowchart of the data lifecycle management method for this application form;

[0047] Figure 2 This is a functional module diagram of the application form data lifecycle management device;

[0048] Figure 3 This is a schematic diagram of the hardware structure of the data lifecycle management device for this application form. DETAILED DESCRIPTION

[0049] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0050] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0051] In a first aspect, an embodiment of the present application provides a table data lifecycle management method, so as to manage the lifecycle of table data more efficiently, accurately and reasonably.

[0052] In one embodiment, referring to Figure 1 , Figure 1 The following is a flowchart of the data lifecycle management method for this application form. Figure 1 As shown, the table data lifecycle management method includes:

[0053] S1: Set common fields for the data table based on the tagging requirements, create a data near-line archiving task, and perform near-line archiving tagging on the table data;

[0054] In the present application, common fields include archive_flag field and delete_flag field, which are business fields for table data lifecycle management. Specifically, each table data in the data table is provided with archive_flag field and delete_flag field; the archive_flag field is an archive flag, which is used to indicate whether the table data has been archived, and when the value of the archive_flag field is 00, it indicates that it has not been archived, and when the value of the archive_flag field is 01, it indicates that it has been archived; the delete_flag field is a deletion flag, which is used to indicate whether the data has been marked for deletion, and when the value of the delete_flag field is 00, it indicates that it has not been deleted, and when the value of the delete_flag field is 01, it indicates that it has been deleted.

[0055] The data near-line archiving task in this application is mainly to archive and mark the table data. The value of the archive_flag field of the table data that meets the archiving conditions will be set to 01, indicating that it has been archived.

[0056] Furthermore, in one embodiment, a data nearline archiving task is created to perform nearline archiving marking processing on table data, specifically including:

[0057] S101: Select a data table to be managed, create a nearline data archiving task, and set an archiving strategy, where the archiving strategy includes retaining data for a set number of days and retaining a set number of data items;

[0058] The number of data tables to be managed can be freely defined as needed.

[0059] For the data to be retained for a set number of days and the data to be retained for a set number of entries in the archiving strategy, for example, the data to be retained for a set number of days may be table data within 100 days, and for the data to be retained for a set number of entries, for example, the most recent 1 million table data entries may be retained.

[0060] S102: configuring an execution mode of a data nearline archiving task, wherein the execution mode of the data nearline archiving task includes scheduled execution, periodic execution, and immediate execution;

[0061] Among them, scheduled execution means starting execution at a specified time point; periodic execution can be executed at 24:00 every day; immediate execution means executing once after the data near-line archiving task is configured.

[0062] S103: according to the configured execution mode of the data near-line archiving task, the value of the archive_flag field of the table data in the selected data table that complies with the archiving strategy is updated to 01, so as to implement near-line archiving marking processing for the table data;

[0063] S104: Record the number of table data items in each data table that have been subjected to near-line archiving and labeling processing, and provide a page statistical visualization display.

[0064] S2: Create a data offline archiving task based on the near-line archiving and marking processing results, and perform offline archiving and backup processing on the table data;

[0065] The main purpose of the offline data archiving task is to write the table data marked with near-line archive (that is, the table data with the archive_flag field value of 01) into a csv (Comma-Separated Values) file, compress the csv file to generate a zip (a file format for data compression and document storage) file and upload it to minio (a high-performance and highly available file system service), ftp and other file servers for backup.

[0066] Furthermore, in one embodiment, according to the near-line archiving marking processing result, a data offline archiving task is created to perform offline archiving backup processing on the table data, specifically including:

[0067] S201: According to the near-line archiving and marking processing result, a data table that has undergone the near-line archiving and marking processing is selected; for example, if a certain table data in data table A has undergone the near-line archiving and marking processing, then data table A will be selected at this time;

[0068] S202: creating a data offline archiving task, and configuring an execution mode of the data offline archiving task, wherein the execution mode of the data offline archiving task includes scheduled execution, periodic execution, and immediate execution;

[0069] S203: For the selected data tables, write the table data whose archive_flag field value is 01 in each data table into a csv file;

[0070] S204: compress the csv file into a zip file, upload the zip file to a file server for data backup, and implement offline archiving and backup processing of the table data;

[0071] S205: Record the number of table data items in each data table that have been processed for offline archiving and backup, and provide a page statistical visualization display.

[0072] S3: Create a data destruction task based on the offline archive backup processing results to immediately delete or put the table data that has been offline archived into the recycle bin;

[0073] The main purpose of the data destruction task is to destroy the table data after offline archive backup processing, which mainly includes putting the data into the Recycle Bin or deleting it directly. If you choose to put the data to be destroyed into the Recycle Bin, you can completely delete or restore the data in the Recycle Bin.

[0074] Furthermore, in one embodiment, according to the offline archive backup processing result, a data destruction task is created to immediately delete or put the table data that has been offline archived into a recycle bin, specifically including:

[0075] S301: according to the offline archive backup processing result, obtain the data table that has been processed by offline archive backup; for example, if a certain table data in data table A has been processed by offline archive backup, then data table A will be obtained at this time;

[0076] S302: creating a data destruction task and setting a data destruction strategy, wherein the data destruction strategy includes placing the data to be destroyed into a recycle bin and completely deleting the data to be destroyed;

[0077] S303: configuring the execution mode of the data destruction task, wherein the execution mode of the data destruction task includes scheduled execution, periodic execution, and immediate execution;

[0078] S304: according to the set data destruction policy and the configured execution mode of the data destruction task, the table data in the acquired data table is immediately deleted or put into the recycle bin to achieve the destruction of the table data;

[0079] S305: Record the number of table data items that have been destroyed in each data table, and provide a page statistics visualization display.

[0080] Specifically, according to the set data destruction strategy and the execution mode of the configured data destruction task, the table data in the acquired data table is immediately deleted or put into the recycle bin to achieve the destruction of the table data, which specifically includes:

[0081] When the data destruction policy is set to put the data to be destroyed into the recycle bin, according to the execution mode of the configured data destruction task, the delete_flag field value of the table data whose archive_flag field value is 01 in the acquired data table is set to 01, and the table data after the field value is set is put into the recycle bin to realize the destruction of the table data;

[0082] When the data destruction policy is set to completely delete the data to be destroyed, the table data whose value of the archive_flag field in the acquired data table is 01 is completely deleted according to the execution mode of the configured data destruction task, thereby realizing the destruction of the table data.

[0083] S4: Based on the function settings of the recycle bin and the usage requirements of the table data, restore or completely delete the table data in the recycle bin.

[0084] Specifically, only data tables that meet the set conditions are displayed in the recycle bin. When the number of table data with the delete_flag field value of 01 in the data table is greater than 0, the current data table meets the set conditions.

[0085] The recycle bin provides a data restoration function and a complete deletion function. The data restoration function is to set the delete_flag field value of the table data to 00, and the complete deletion function is to completely delete the table data with the delete_flag field value of 01.

[0086] This application creates a near-line data archiving task, marks the table data in the data table according to the archiving strategy, and then creates a data offline archiving task based on the near-line archiving marking processing results to back up the data in the data table. Then, based on the offline archiving backup processing results, a data destruction task is created to put the data into the Recycle Bin or completely delete it. At the same time, the Recycle Bin operation is performed to completely delete the data or restore the data. This application also provides page statistics visualization.

[0087] The table data lifecycle management method of the embodiment of the present application can avoid the impact of system performance on the continuous expansion of the data volume of the data table as the business develops by managing the lifecycle of the table data in the data table. At the same time, the present application also provides a full set of data labeling, data backup, data entering the recycle bin, data restoration and data complete deletion functions to ensure that the table data in the data table can be safely deleted and can be imported into the data table again through the backup file after deletion.

[0088] In a second aspect, an embodiment of the present application also provides a table data lifecycle management device.

[0089] In one embodiment, referring to Figure 2 , Figure 2 This is a functional module diagram of the application form data lifecycle management device. Figure 2 As shown, the table data lifecycle management device includes: a first processing module, a second processing module, a third processing module, and an execution module.

[0090] The first processing module is used to set public fields for the data table based on the marking requirements, and create a near-line data archiving task to perform near-line archiving marking processing on the table data; the second processing module is used to create an offline data archiving task according to the near-line archiving marking processing results, and perform offline archiving and backup processing on the table data; the third processing module is used to create a data destruction task according to the offline archiving and backup processing results, and immediately delete or put the table data that has been offline archived and backed up into the recycle bin; the execution module is used to restore or completely delete the table data in the recycle bin based on the function settings of the recycle bin and the usage requirements of the table data.

[0091] In this application, the common fields include archive_flag field and delete_flag field;

[0092] The archive_flag field is an archive flag, which is used to indicate whether the table data has been archived. When the value of the archive_flag field is 00, it indicates that the table data has not been archived. When the value of the archive_flag field is 01, it indicates that the table data has been archived.

[0093] The delete_flag field is a deletion flag used to indicate whether the data has been marked for deletion. When the value of the delete_flag field is 00, it indicates that the data has not been deleted. When the value of the delete_flag field is 01, it indicates that the data has been deleted.

[0094] In this application, a data near-line archiving task is created to perform near-line archiving and marking processing on table data, including:

[0095] Select the data table to be managed, create a near-line data archiving task, and set an archiving strategy, which includes retaining data for a set number of days and retaining a set number of data items;

[0096] Configure the execution mode of the data near-line archiving task, wherein the execution mode of the data near-line archiving task includes scheduled execution, periodic execution, and immediate execution;

[0097] According to the execution mode of the configured data near-line archiving task, the value of the archive_flag field of the table data in the selected data table that complies with the archiving strategy is updated to 01 to implement near-line archiving marking processing for the table data;

[0098] Record the number of table data items in each data table that have been processed for near-line archiving and labeling, and provide a page statistics visualization display.

[0099] In this application, based on the near-line archiving and marking processing results, a data offline archiving task is created to perform offline archiving and backup processing on the table data, specifically including:

[0100] According to the near-line archiving and marking processing results, the data table that has undergone the near-line archiving and marking processing is selected;

[0101] Create a data offline archiving task and configure the execution mode of the data offline archiving task. The execution mode of the data offline archiving task includes scheduled execution, periodic execution, and immediate execution.

[0102] For the selected data tables, write the table data whose archive_flag field value is 01 in each data table into the csv file;

[0103] Compress the csv file into a zip file, upload the zip file to the file server for data backup, and realize offline archiving and backup processing of table data;

[0104] Record the number of table data items in each data table that have been processed for offline archive backup, and provide a page statistics visualization display.

[0105] In this application, according to the offline archive backup processing results, a data destruction task is created to immediately delete or put the table data that has been offline archived into the recycle bin, including:

[0106] According to the offline archive backup processing result, the data table which has been processed by the offline archive backup is obtained;

[0107] Create a data destruction task and set a data destruction strategy, which includes placing the data to be destroyed in a recycle bin and completely deleting the data to be destroyed;

[0108] Configure the execution mode of the data destruction task, wherein the execution mode of the data destruction task includes scheduled execution, periodic execution, and immediate execution;

[0109] According to the set data destruction strategy and the execution method of the configured data destruction task, the table data in the acquired data table is immediately deleted or put into the recycle bin to achieve the destruction of the table data;

[0110] Record the number of table data entries that have been destroyed in each data table, and provide a page statistics visualization display.

[0111] In this application, according to the set data destruction strategy and the execution mode of the configured data destruction task, the table data in the acquired data table is immediately deleted or put into the recycle bin for processing, so as to realize the destruction of the table data, which specifically includes:

[0112] When the data destruction policy is set to put the data to be destroyed into the recycle bin, according to the execution mode of the configured data destruction task, the delete_flag field value of the table data whose archive_flag field value is 01 in the acquired data table is set to 01, and the table data after the field value is set is put into the recycle bin to realize the destruction of the table data;

[0113] When the data destruction policy is set to completely delete the data to be destroyed, the table data whose value of the archive_flag field in the acquired data table is 01 is completely deleted according to the execution mode of the configured data destruction task, thereby realizing the destruction of the table data.

[0114] In this application, the recycle bin only displays data tables that meet the set conditions, wherein when the number of table data with a delete_flag field value of 01 in the data table is greater than 0, the current data table meets the set conditions;

[0115] The recycle bin provides a data restoration function and a complete deletion function. The data restoration function is to set the delete_flag field value of the table data to 00, and the complete deletion function is to completely delete the table data with the delete_flag field value of 01.

[0116] In a third aspect, an embodiment of the present application provides a table data lifecycle management device, which may be a personal computer (PC), a laptop computer, a server, or other device with data processing capabilities.

[0117] Reference Figure 3 , Figure 3 Schematic diagram of the hardware structure of the table data lifecycle management device involved in the embodiment of the present application. In the embodiment of the present application, the table data lifecycle management device may include a processor, a memory, a communication interface and a communication bus.

[0118] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.

[0119] The communication interface includes input / output (I / O) interfaces, physical interfaces, and logical interfaces, which are used to interconnect devices within the table data lifecycle management device, and interfaces used to interconnect the table data lifecycle management device with other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, a fiber optic interface, an ATM interface, etc.; the user device can be a display, a keyboard, etc.

[0120] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.

[0121] The processor may be a general-purpose processor, and the general-purpose processor may call the table data lifecycle management program stored in the memory and execute the table data lifecycle management method provided in the embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the table data lifecycle management program is called may refer to the various embodiments of the table data lifecycle management method of the present application, and will not be repeated here.

[0122] Those skilled in the art will understand that Figure 3 The hardware structure shown in the figure does not constitute a limitation on the present application, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0123] In a fourth aspect, an embodiment of the present application also provides a computer-readable storage medium.

[0124] The computer-readable storage medium of the present application stores a table data lifecycle management program, wherein when the table data lifecycle management program is executed by a processor, the steps of the table data lifecycle management method as described above are implemented.

[0125] Among them, the method implemented when the table data lifecycle management program is executed can refer to the various embodiments of the table data lifecycle management method of this application, and will not be repeated here.

[0126] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.

[0127] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.

[0128] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.

[0129] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0130] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.

[0131] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.

[0132] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A table data lifecycle management method, It is characterized in that The table data lifecycle management method includes: Set common fields for the data table based on the tagging requirements, create a data near-line archiving task, and perform near-line archiving tagging on the table data; Create a data offline archiving task based on the near-line archiving and marking processing results to perform offline archiving and backup processing on the table data; Create a data destruction task based on the offline archive backup processing results to immediately delete or put the table data that has been offline archived into the recycle bin; Based on the function settings of the recycle bin and the usage requirements of the table data, restore or completely delete the table data in the recycle bin.

2. A table data lifecycle management method as claimed in claim 1, Features: The common fields include an archive_flag field and a delete_flag field; The archive_flag field is an archive flag, which is used to indicate whether the table data has been archived. When the value of the archive_flag field is 00, it indicates that the table data has not been archived. When the value of the archive_flag field is 01, it indicates that the table data has been archived. The delete_flag field is a deletion flag used to indicate whether the data has been marked for deletion. When the value of the delete_flag field is 00, it indicates that the data has not been deleted. When the value of the delete_flag field is 01, it indicates that the data has been deleted.

3. A table data lifecycle management method as claimed in claim 2, It is characterized in that The task of creating a near-line data archiving task and performing near-line archiving marking processing on the table data specifically includes: Select the data table to be managed, create a near-line data archiving task, and set an archiving strategy, which includes retaining data for a set number of days and retaining a set number of data items; Configure the execution mode of the data near-line archiving task, wherein the execution mode of the data near-line archiving task includes scheduled execution, periodic execution, and immediate execution; According to the execution mode of the configured data near-line archiving task, the value of the archive_flag field of the table data in the selected data table that complies with the archiving strategy is updated to 01 to implement near-line archiving marking processing for the table data; Record the number of table data items in each data table that have been processed for near-line archiving and labeling, and provide a page statistics visualization display.

4. A table data lifecycle management method as claimed in claim 2, It is characterized in that The process of creating a data offline archiving task based on the near-line archiving marking processing result and performing offline archiving backup processing on the table data specifically includes: According to the near-line archiving and marking processing results, the data table that has undergone the near-line archiving and marking processing is selected; Create a data offline archiving task and configure the execution mode of the data offline archiving task. The execution mode of the data offline archiving task includes scheduled execution, periodic execution, and immediate execution. For the selected data tables, write the table data whose archive_flag field value is 01 in each data table into the csv file; Compress the csv file into a zip file, upload the zip file to the file server for data backup, and realize offline archiving and backup processing of table data; Record the number of table data items in each data table that have been processed for offline archive backup, and provide a page statistics visualization display.

5. A table data lifecycle management method as claimed in claim 2, It is characterized in that The data destruction task is created according to the offline archive backup processing result, and the table data that has been offline archived and backed up is immediately deleted or put into the recycle bin for processing, which specifically includes: According to the offline archive backup processing result, the data table which has been processed by the offline archive backup is obtained; Create a data destruction task and set a data destruction strategy, which includes placing the data to be destroyed in a recycle bin and completely deleting the data to be destroyed; Configure the execution mode of the data destruction task, wherein the execution mode of the data destruction task includes scheduled execution, periodic execution, and immediate execution; According to the set data destruction strategy and the execution method of the configured data destruction task, the table data in the acquired data table is immediately deleted or put into the recycle bin to achieve the destruction of the table data; Record the number of table data entries that have been destroyed in each data table, and provide a page statistics visualization display.

6. A table data lifecycle management method as claimed in claim 5, It is characterized in that According to the set data destruction strategy and the execution mode of the configured data destruction task, the table data in the acquired data table is immediately deleted or put into the recycle bin to achieve the destruction of the table data, which specifically includes: When the data destruction policy is set to put the data to be destroyed into the recycle bin, according to the execution mode of the configured data destruction task, the delete_flag field value of the table data whose archive_flag field value is 01 in the acquired data table is set to 01, and the table data after the field value is set is put into the recycle bin to realize the destruction of the table data; When the data destruction policy is set to completely delete the data to be destroyed, the table data whose value of the archive_flag field in the acquired data table is 01 is completely deleted according to the execution mode of the configured data destruction task, thereby realizing the destruction of the table data.

7. A table data lifecycle management method as claimed in claim 6, Features: The recycle bin only displays data tables that meet the set conditions, wherein when the number of table data in the data table with a delete_flag field value of 01 is greater than 0, the current data table meets the set conditions; The recycle bin provides a data restoration function and a complete deletion function. The data restoration function is to set the delete_flag field value of the table data to 00, and the complete deletion function is to completely delete the table data with the delete_flag field value of 01.

8. A table data lifecycle management device, It is characterized in that The table data lifecycle management device comprises: The first processing module is used to set common fields in the data table based on the marking requirements, create a data near-line archiving task, and perform near-line archiving marking processing on the table data; The second processing module is used to create a data offline archiving task according to the near-line archiving marking processing result, and perform offline archiving backup processing on the table data; The third processing module is used to create a data destruction task according to the offline archive backup processing result, and immediately delete or put the table data that has been offline archived into the recycle bin for processing; The execution module is used to restore or completely delete the table data in the recycle bin based on the function setting of the recycle bin and the usage requirements of the table data.

9. A table data lifecycle management device, It is characterized in that The table data lifecycle management device includes a processor, a memory, and a table data lifecycle management program stored in the memory and executable by the processor, wherein when the table data lifecycle management program is executed by the processor, the steps of the table data lifecycle management method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a table data lifecycle management program, wherein when the table data lifecycle management program is executed by a processor, the steps of the table data lifecycle management method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method and device for data filing

    CN105653560A

  • Data life cycle management system and computer equipment

    CN114756504A

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

    CN116126859A

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

    CN117493333A

  • Method and System for Electronic File Lifecycle Management

    US20060010150A1