Data processing method and device, electronic equipment, readable storage medium and product

By backing up cold data to the hot data storage area and outputting it from the hot data area when needed, the problem of slow read and write speeds in the cold data storage area is solved, data acquisition efficiency is improved, and storage power consumption is reduced.

CN118819397AActive Publication Date: 2024-10-22CHINA MOBILE GROUP ANHUI +1

Patent Information

Application Number
CN202410288584.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-13
Publication Date
2024-10-22
Estimated Expiration
2044-03-13

AI Technical Summary

Technical Problem

In the existing technology, the read and write speed of the cold data storage area is slow, resulting in frequent acquisition of cold data that takes a long time, consumes a lot of power, and consumes a lot of computing power.

Method used

After receiving the instruction requesting to obtain cold data, the cold data is backed up to the hot data storage area, and when receiving the second acquisition instruction, the data is output from the hot data storage area to improve data acquisition and output efficiency and reduce storage power. Consumption.

Benefits of technology

By backing up cold data to hot data storage, rapid acquisition and output are achieved, data acquisition time is shortened, and computing power consumption and storage power consumption are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118819397A_ABST
    Figure CN118819397A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device, electronic equipment, a readable storage medium and a product, and the method comprises the steps: receiving a first instruction which is used for requesting to obtain first data; in response to the first instruction, under the condition that it is determined that the first data is cold data, at least part of data of the first data in the cold data storage area is backed up to the hot data storage area; receiving a second instruction, wherein the second instruction is used for requesting to obtain the first data; under the condition that the receiving interval time between the second instruction and the first instruction is smaller than first preset time, responding to the second instruction, and outputting at least part of data of the first data in the hot data storage area, so that a user obtains at least part of data of the first data. According to the embodiment of the invention, the cold data acquisition and output efficiency can be improved, and the data storage power consumption is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the rapid development of my country's Internet technology, telecommunications operators are also expanding rapidly. The digital information generated by operators is showing explosive growth, the amount of data generated is increasing, and the demand for large-scale data storage is becoming more and more urgent.

[0003] In order to store large amounts of data more efficiently and at a lower cost, a new data storage method is to divide data into cold data and hot data and store them separately. Hot data refers to data that is frequently acquired and critical to business and applications. These data usually need to be acquired and processed quickly and efficiently, so they need to be stored on high-performance, low-latency, fast-reading and fast-writing storage devices, such as solid-state drives and flash memory. Cold data refers to data that is less frequently acquired and less important to business and applications. It may be historical data or archived data. These data usually need to be stored for a long time, but do not need to be acquired and processed frequently. Therefore, they can be stored on storage devices with lower costs, larger capacity, and slower read and write speeds, such as tape libraries and disks.

[0004] Therefore, in the prior art, hot data is stored in a hot data storage area that can be read and written quickly, and cold data is stored in a cold data storage area with a slower reading and writing speed. However, in the actual implementation process, there is a demand for frequent acquisition of cold data in the cold data storage area within a certain period of time, and the slower reading and writing speed of the cold data storage area brings great inconvenience when acquiring data. In addition, since the process of acquiring data from the cold data storage area is longer and consumes more computing power than that of acquiring data from the hot data storage area, the power consumption is greater. Therefore, if the data in the cold data storage area is frequently acquired, the power consumption of data storage will be increased. Summary of the invention

[0005] The embodiments of the present application provide a data processing method, device, electronic device, readable storage medium and product, which can improve the efficiency of acquiring and outputting cold data and reduce the power consumption of data storage.

[0006] On the one hand, an embodiment of the present application provides a data processing method, the method comprising:

[0007] receiving a first instruction, where the first instruction is used to request to obtain first data;

[0008] In response to the first instruction, when it is determined that the first data is cold data, backing up at least part of the first data in the cold data storage area to the hot data storage area;

[0009] receiving a second instruction, where the second instruction is used to request to obtain the first data;

[0010] When the reception interval time between the second instruction and the first instruction is less than the first preset time, in response to the second instruction, at least part of the first data in the hot data storage area is output so that the user can obtain at least part of the first data.

[0011] On the other hand, an embodiment of the present application provides a data processing device, wherein the device includes:

[0012] A first receiving module, used for receiving a first instruction, where the first instruction is used for requesting to obtain first data;

[0013] a backup module, configured to, in response to the first instruction, back up at least part of the first data in the cold data storage area to the hot data storage area when it is determined that the first data is cold data;

[0014] A second receiving module, used for receiving a second instruction, where the second instruction is used for requesting to obtain the first data;

[0015] The output module is used to output at least part of the first data in the hot data storage area in response to the second instruction when the reception interval time between the second instruction and the first instruction is less than the first preset time, so that the user can obtain at least part of the first data.

[0016] In another aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a processor and a memory storing computer program instructions;

[0017] The above data processing method is implemented when the processor executes computer program instructions.

[0018] On the other hand, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the above-mentioned data processing method is implemented.

[0019] On the other hand, an embodiment of the present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device can perform the above-mentioned data processing method.

[0020] The data processing method, device, electronic device, readable storage medium and product of the embodiments of the present application can receive a first instruction for requesting to obtain first data, and in response to the first instruction, when it is determined that the first data is cold data, back up at least part of the first data in the cold data storage area to the hot data storage area, and then receive a second instruction for requesting to obtain the first data. When the reception interval time between the second instruction and the first instruction is less than a preset time, at least part of the first data in the hot data storage area is output in response to the second instruction, so that a user can obtain at least part of the first data. Therefore, in the present application, when the first data requested to be obtained by the first instruction is cold data, at least part of the first data is first backed up from the cold data storage area to the hot data storage area, and after receiving the second instruction, when the reception interval time between the second instruction and the first instruction is less than the first preset time, at least part of the first data is obtained from the hot data storage area. Therefore, at least part of the first data in the cold data storage area is first backed up to the hot data storage area, so that the data in the hot data storage area with faster reading and writing speed can be directly output to the user, thereby improving the efficiency of obtaining and outputting cold data. In addition, obtaining and outputting cold data from the hot data storage area takes less time and consumes less computing power than obtaining and outputting cold data from the cold data storage area, which can reduce data storage power consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0022] Figure 1 It is a structural diagram of a data processing method provided by an embodiment of the present application;

[0023] Figure 2 is a schematic diagram of a data location index provided by an embodiment of the present application;

[0024] Figure 3 is a structural diagram of a data processing system provided by an embodiment of the present application;

[0025] Figure 4 is a structural diagram of a data processing device provided by an embodiment of the present application;

[0026] Figure 5 It is a schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0027] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0028] 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. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0029] In order to solve the problems of the prior art, the embodiments of the present application provide a data processing method, device, electronic device, readable storage medium and product. The method of the present application can be applied to one device or multiple devices. When the method of the present application is applied to one device, the cold data storage area and the hot data storage area are both integrated on the device, and the user can obtain the data in the cold data storage area and the hot data storage area of ​​the device through operation. When the method of the present application is applied to multiple devices, the cold data storage area exists as a storage device, and the hot data storage area also exists as a storage device. The user sends instructions to the cold data storage area and the hot data storage area by operating another operating device, and obtains the data in the cold data storage area and the hot data storage area through interaction. The data processing method provided by the embodiment of the present application is first introduced below.

[0030] Figure 1 A flow chart of a data processing method provided by an embodiment of the present application is shown as follows: Figure 1 As shown, the method includes the following process:

[0031] S101: Receive a first instruction, where the first instruction is used to request to obtain first data.

[0032] In some embodiments of the present application, the first data may be a file, a picture, a string, etc., and the first instruction may include identification information related to the first data or a storage path of the first data, etc. For example, the identification information related to the first data may be a file name, etc. When the method of the present application is applied to one device, the user sends instructions to the cold data storage area and the hot data storage area of ​​the device through operation, that is, the recipient of the first instruction may be the cold data storage area or the hot data storage area; when the method of the present application is applied to multiple devices, the user sends instructions to the cold data storage device and the hot data storage device through operating the device, that is, the recipient of the first instruction may be the cold data storage device or the hot data storage device.

[0033] In one example, if a user wants to open file A, the user sends a first instruction to open file A, and then by receiving the file name carried in the first instruction sent by the user, it is determined that the file the user wants to obtain is file A.

[0034] S102: In response to the first instruction, when it is determined that the first data is cold data, back up at least part of the first data in the cold data storage area to the hot data storage area.

[0035] In some embodiments of the present application, each data corresponds to a data attribute tag, and the data attribute tags include: cold data tags and hot data tags. The data of the cold data tags are stored in the cold data storage area, and the data of the hot data tags are stored in the hot data storage area.

[0036] In some embodiments, the data to be acquired may be first determined by the data identification information carried in the first instruction, and then determined whether the data is cold data or hot data by the data tag attribute corresponding to the data.

[0037] In other embodiments, the storage area of ​​the data may be determined by the storage path of the data carried in the first instruction, thereby determining whether the data is cold data or hot data.

[0038] If it is cold data, the cold data will be backed up to the hot data storage area. There may be a backup transition area in the hot data storage area. The backup transition area has the characteristics of small space and temporary storage. When the data size of the first data exceeds the threshold, only part of the data of the first data will be stored in the backup transition area in the hot data storage area.

[0039] In other embodiments, the present application may also back up at least part of the first data in the cold data storage area to the hot data storage area by internal copying, and the hot data storage area and the cold data storage area have the characteristic of being able to store data for a long time.

[0040] S103: Receive a second instruction, where the second instruction is used to request to obtain the first data.

[0041] In some embodiments of the present application, the contents of the first instruction and the second instruction may be the same, that is, the information carried may be the same, but the triggering conditions are different, and the second instruction must be triggered after the first instruction is triggered.

[0042] In one example, when a user clicks on file A, a first instruction will be sent. The first instruction is used to request to obtain file A, and the first instruction carries the file name or storage path of file A. In response to the first instruction, the attribute information of file A is displayed to the user, such as file size, file creator, etc. At the same time, if file A is cold data, at least part of the data of file A is backed up from the cold data storage area to the hot data storage area. If file A is hot data, there is no need to perform the operation of backing up the data from the cold data storage area to the hot data storage area. After the user views the attribute information of file A, if he wants to continue to request to obtain file A, a second instruction is sent to obtain at least part of the data of file A from the hot data storage area. The triggering method of the second instruction can be: the user clicks the relevant button on the operation page to confirm to obtain file A, or clicks file A again, or after the user views the attribute information of file A, a pop-up window pops up on the operation page to ask the user whether to obtain file A, etc., and there is no limitation here.

[0043] S104: When the reception interval time between the second instruction and the first instruction is less than the first preset time, in response to the second instruction, output at least part of the first data in the hot data storage area so that the user can obtain at least part of the first data.

[0044] In some embodiments of the present application, the process of outputting at least part of the first data in the hot data storage area may be: cold data may be stored on a cold data storage device, and the cold data storage device serves as a cold data storage area; hot data may be stored on a hot data storage device, and the hot data storage device serves as a hot data storage area; a user may perform operations on a server, and the server is connected to the hot data storage device and the cold data storage device; the server, the hot data storage device, and the cold data storage device may be regarded as a system; a user may send instructions to the hot data storage device and the cold data storage device through the server to obtain cold data or hot data; the hot data storage device and the cold data storage device respond to the user's instructions and output the cold data or hot data to the user's server, for example: displaying the cold data or hot data on a display of the server; or copying the cold data or hot data to a clipboard, and the user may obtain the cold data or hot data by pasting, etc.

[0045] In other embodiments, data in the hot data storage device and the cold data storage device may also be obtained through interaction between the server and the hot data storage device and the cold data storage device.

[0046] It can be understood that in this embodiment, a first instruction for requesting to obtain the first data can be received, and in response to the first instruction, when it is determined that the first data is cold data, at least part of the first data in the cold data storage area is backed up to the hot data storage area, and then a second instruction for requesting to obtain the first data is received, and when the receiving interval time between the second instruction and the first instruction is less than the preset time, at least part of the first data in the hot data storage area is output in response to the second instruction, so that the user can obtain at least part of the first data. Therefore, in the present application, when the first data requested to be obtained by the first instruction is cold data, at least part of the first data is first backed up from the cold data storage area to the hot data storage area, and after receiving the second instruction, when the receiving interval time between the second instruction and the first instruction is less than the first preset time, at least part of the first data is obtained from the hot data storage area, therefore, at least part of the first data in the cold data storage area is first backed up to the hot data storage area, so that the data in the hot data storage area with faster reading and writing is directly output to the user, which improves the efficiency of obtaining and outputting cold data, and obtaining and outputting cold data from the hot data storage area takes less time and consumes less computing power than obtaining and outputting cold data from the cold data storage area, which can reduce data storage power consumption.

[0047] In some other embodiments of the present application, in response to the first instruction, when it is determined that the first data is cold data, backing up at least part of the first data in the cold data storage area to the hot data storage area includes:

[0048] When the data size of the first data is greater than the first threshold, obtaining part of the first data in the cold data storage area;

[0049] Backing up part of the first data to a hot data storage area;

[0050] After receiving the second instruction, the method further includes:

[0051] The second data in the cold data storage area is backed up to the hot data storage area, where the second data is the remaining data other than the partial data of the first data.

[0052] In this embodiment, when the first data obtained by the first instruction request is cold data, the cold data is first stored in the backup transition area in the hot data storage area. Since the backup transition area has the characteristics of small space and temporary storage, the data size of the first data will be judged. When the data size of the first data is greater than a threshold, only part of the first data will be stored in the backup transition area in the hot data storage area, and the cold data stored in the hot data storage area will be used as the first pre-access cold data, wherein the content of the starting segment in the first data can be separated and backed up in the backup transition area.

[0053] In one example, after receiving the second instruction, when part of the first data in the backup transition area is output to the user, the remaining data of the first data is backed up to the backup transition area as the second pre-access cold data, and after all of the part of the first data is output to the user, the remaining data of the first data is output to the user, so that the user can obtain all of the first data in the hot data storage area.

[0054] In another example, after receiving the second instruction, the remaining data of the first data is backed up to the hot data storage area, and all the first data in the hot data storage area is output to the user at one time, so that the user can obtain all the first data in the hot data storage area.

[0055] It can be understood that in this embodiment, when the data size of the first data is greater than the threshold, part of the first data can be backed up to the hot data storage area first, and after receiving the second instruction, the first data can be backed up again, so as to output all the first data in the hot data storage area to the user. If the data size of the first data is greater than the threshold, after the user sends the first instruction, it is assumed that all the first data is backed up to the hot data storage area, but the user does not send the second instruction in the end, the computing power generated in the process of backing up all the first data to the hot data storage area will be wasted. In order to reduce the waste of computing power, part of the first data can be backed up to the hot data storage area first, and after receiving the second instruction, the first data can be backed up again, that is, after determining that the user needs to obtain the first data, all the first data is backed up to the hot data storage area, so as to reduce the waste of computing power. And by storing the requested data in the hot data storage area in segments and implementing step-by-step backup according to the second instruction, the data acquisition speed and data output speed can be improved.

[0056] In some other embodiments of the present application, before receiving the first instruction, the method further includes:

[0057] Obtain storage location information of all data, including: all cold data in the cold data storage area and all hot data in the hot data storage area;

[0058] Generate a location index corresponding to each data according to the storage location information;

[0059] Generate corresponding data attribute labels according to the storage data attributes of each data;

[0060] Establish the association between the data attribute label and the location index of each data;

[0061] After receiving the first instruction, in response to the first instruction, when it is determined that the first data is cold data, before backing up at least part of the first data in the cold data storage area to the hot data storage area, the method further includes:

[0062] Determine a data attribute label corresponding to the first data;

[0063] In response to the first instruction, displaying the storage data attribute corresponding to the data attribute tag, so that the user can determine whether the data corresponding to the storage data attribute is the data to be obtained;

[0064] In response to the first instruction, when it is determined that the first data is cold data, backing up at least part of the first data in the cold data storage area to the hot data storage area includes:

[0065] Determine a position index associated with a data attribute tag corresponding to the first data;

[0066] Determine storage location information corresponding to the first data through the location index;

[0067] Obtain at least part of the first data from the cold data storage area by using the storage location information;

[0068] At least a portion of the first data in the cold data storage area is backed up to the hot data storage area.

[0069] In this embodiment, the storage data attributes include: the name, type, size, creation date, creation author and other information of the storage data, and all the storage data attributes of the corresponding data can be obtained through the data attribute label. In one example, the storage location information and storage data attributes corresponding to the cold data in the cold data storage area and the hot data in the hot data storage area are collected, and the location index corresponding to each data is generated according to the storage location information of each data, and the data attribute label corresponding to each data is generated according to the storage data attribute of each data, and the association relationship between the data attribute label and the location index is established. After receiving the first instruction, the first data requested to be obtained by the first instruction is determined by the information such as the first data name or the storage path of the first data carried by the first instruction, and the storage data attributes in the data attribute label corresponding to the first data are displayed to the user, so that the user can determine whether the data corresponding to the storage data attribute is the data to be obtained. At the same time, the storage location information corresponding to the first data is determined by the location index associated with the data attribute label corresponding to the first data. If the first data is cold data, at least part of the first data in the cold data storage area is backed up to the hot data storage area. Among them, the location index can be stored in the hot data storage area.

[0070] It can be understood that in this embodiment, the user can first send a first instruction to browse the storage data attributes in the data attribute tag corresponding to the first data, so that the user can determine whether the data corresponding to the storage data attributes is the data that needs to be obtained, so that the user can have a preliminary understanding of the storage data attributes of the data, avoid directly obtaining data without understanding the data, and prevent the situation where the data is obtained but the user does not need it in the end, thereby reducing the waste of computing power and improving the efficiency of data brief browsing. And in the case where the first data is cold data, when the user browses the storage data attributes of the first data, the preparation operation of backing up the cold data to the hot data storage area with faster reading can be completed, so that the acquisition and output speed can be improved when the cold data is acquired and output.

[0071] In some other embodiments of the present application, if the second instruction is not received within a second preset time after the first instruction is received, at least part of the first data in the hot data storage area is deleted.

[0072] In some embodiments, when the first data obtained by the first instruction request is cold data, while the storage data attributes in the data attribute label corresponding to the first data are displayed to the user, at least part of the first data is also stored in the hot data storage area. If the second instruction is not received within a second preset time after receiving the first instruction, at least part of the first data in the hot data storage area is deleted.

[0073] In some other embodiments, if the second instruction is received, but the time of receiving the second instruction exceeds a preset time after receiving the first instruction, at least part of the first data in the hot data storage area is deleted.

[0074] It can be understood that in this embodiment, by setting a backup transition area in the hot data storage area, the cold data can be temporarily stored in the hot data storage area, and within the second preset time after the first instruction, if the second instruction is not received, the cold data in the backup transition area will be deleted, which can prevent the situation where the data is obtained but the user does not need it in the end, thereby reducing the waste of computing power.

[0075] In some embodiments of the present application, when the reception interval time between the second instruction and the first instruction is less than the first preset time, after outputting at least part of the first data in the hot data storage area in response to the second instruction, the method further includes:

[0076] Modify the data type label of the first data in the hot data storage area from a cold data label to a hot data label;

[0077] The first data in the cold data storage area is deleted.

[0078] In some embodiments, after the first data is output to the user, the first data in the backup transition area can be deleted, and then all the data of the first data can be backed up from the cold data storage area to the hot data storage area, and the data type label of the first data in the hot data storage area can be modified from the cold data label to the hot data label, and then the first data in the cold data storage area can be deleted.

[0079] In other embodiments, after the first data is output to the user, the first data in the backup transition area is backed up to the hot data storage area, and the data type label of the first data in the hot data storage area is modified from a cold data label to a hot data label, and then the first data in the backup transition area and the cold data storage area is deleted.

[0080] It can be understood that, in this embodiment, at least part of the first data in the cold data storage area is backed up to the hot data storage area, so that the first data can be stored in the hot data storage area for a long time.

[0081] In some embodiments of the present application, before receiving the first instruction, the method further includes:

[0082] Get the access frequency value of all data;

[0083] Marking the data type label of data whose access frequency value is greater than or equal to the second threshold as a hot data label, and marking the data type label of data whose access frequency value is less than the second threshold as a cold data label;

[0084] The data corresponding to the cold data tags are stored in the cold data storage area, and the data corresponding to the hot data tags are stored in the hot data storage area.

[0085] In this embodiment, the access frequency value can be understood as the acquisition frequency value. By obtaining the access frequency values ​​of all data, the data with an access frequency value greater than or equal to a threshold is marked as a hot data label, and the hot data is stored in the hot data storage area, and the data with an access frequency value less than the threshold is marked as a cold data label, and the cold data is stored in the cold data storage area. As an example, taking the audio files generated by recording voice conversations during customer service as an example, the n audio files generated are recorded as M1, M2, M3, ...Mn; their corresponding storage locations are folders A1 / B1 / C1, A2 / B2 / C2, A3 / B3 / C3, ...An / Bn / Cn, respectively. The preset time is 10 days. Within 10 days, the number of times M1, M2, M3, ...Mn are accessed is F1, F2, F3, ...Fn, respectively. When F1 is less than the threshold, the M1 file is stored in the cold data storage area. When F2 is greater than the threshold, the M2 file is stored in the hot data storage area. And so on. Each audio file is stored in a different storage area according to the number of times it is accessed to reduce operating costs.

[0086] It can be understood that in this embodiment, storing cold data and hot data in different areas can save storage space, improve storage efficiency, and reduce storage costs.

[0087] In some other embodiments of the present application, after outputting at least part of the first data in the hot data storage area, after a preset time, the access frequency value of all data in the storage space is obtained again, the cold data and the hot data are re-determined according to the access frequency, and the storage location information and the location index are updated. In this embodiment, the data is regularly judged as hot and cold data, and the cold data is transferred in time, which improves the data storage efficiency, reduces the power consumption, and reduces the storage cost.

[0088] Figure 2 A schematic diagram showing a data location index provided by an embodiment of the present application is shown as follows: Figure 2 As shown, a file location index is established based on the storage location information, and a file attribute label is generated based on the storage data attributes. For example, the B1 folder includes 2 files, the file size is 3KB, the latest creation date is February 4, 2023, and the creator is user A. For example, the C1 folder includes 4 files, the file size is 2KB, the latest creation date is January 1, 2023, and the creator is user B. For example: there is an M1 file in the C1 folder, and the M1 file is an audio file, the file size is 1KB, the latest creation date is April 5, 2023, and the creator is user C. When searching and browsing files, browse the attribute information of the corresponding level files or folders. For example: when browsing to the C1 folder, the C1 file is displayed. Attributes, when browsing and accessing the M1 file in the C1 folder, assuming that M1 is cold data stored in the cold data storage area, display the attribute information of the M1 file, and back up the M1 file in the C1 folder to the hot data storage area. When the data size of the M1 file is greater than the preset threshold, separate the partial content M11 of M1 that is smaller than the threshold and load it to the hot data storage area as the first pre-access cold data; when continuing to access the M1 file after displaying the attribute information of the M1 file, read the first pre-access cold data M11 file, and at the same time load the remaining part of the M1 file M12 file to the hot data storage area as the second pre-access cold data, and continue to read the second pre-access cold data content after the first pre-access cold data is read. After the reading is completed, delete the first pre-access cold data and the second pre-access cold data, mark the corresponding cold data M1 file as a hot data tag, and transfer the M1 file from the cold data storage area to the hot data storage area.

[0089] In other embodiments of the present application, after receiving the first instruction, assuming that the first data requested by the first instruction is hot data, the data attribute label corresponding to the storage data attribute label corresponding to the first data is displayed to enable the user to determine whether the data corresponding to the storage data attribute is the data that needs to be obtained; if it is determined that the first data is the data that needs to be obtained, a second instruction is sent to directly read the corresponding hot data from the hot data storage area.

[0090] Figure 3 A schematic diagram of the structure of a data processing system provided by an embodiment of the present application is shown as follows: Figure 3 As shown, the system includes the following units:

[0091] The information collection unit 301 is used to collect attribute information, access frequency, and storage location information of the stored data. The attribute information of the stored data includes the file name, type, size, creation date, creation author, and other information of the stored data file.

[0092] The first data storage unit 302, i.e., a hot data storage area, is used to store hot data and uses an SSD flash disk with a relatively fast access speed;

[0093] The second data storage unit 303, i.e., a cold data storage area, is used to store cold data, and uses a disk array with a relatively slow access speed and lower cost;

[0094] The data analysis and processing unit 304 is used to mark the storage data with access frequency values ​​greater than or equal to the threshold as hot data tags according to the access frequency value, and store the hot data in the first data storage unit, mark the storage data with access frequency values ​​less than the threshold as cold data tags, and store the cold data in the second data storage unit; and generate the location index corresponding to each data according to the storage location information; generate the corresponding data attribute tag according to the storage data attribute of each data; establish the association relationship between the storage data attribute tag and the location index of each data; and obtain the access file information, when the tag information of the accessed file is hot data, display the storage data attribute of the hot data; when the tag information of the accessed file is cold data, display the storage data attribute and judge the cold data at the same time. The size of the file stored in the storage area, when the file size is greater than a threshold, the file stored in the second data storage unit is separated, and part of the file content is backed up to the first data storage unit to form a first backup file, and the size of the first backup file is less than the size specified by the threshold, as the first pre-access cold data, when receiving an instruction to continue accessing the file, the first pre-access cold data in the first data storage unit is read, and the complete file is backed up to the first data storage unit as the second pre-access cold data, and the file is marked as a hot data tag and stored in the first data storage unit, and the file in the second data storage unit is deleted; when the first pre-access cold data in the first data storage unit is not accessed within a preset time after the first instruction, the first pre-access cold data temporarily stored in the first data storage unit is deleted.

[0095] Figure 4 A schematic diagram showing the structure of a data processing device provided by an embodiment of the present application is shown as follows: Figure 4 As shown, the device comprises:

[0096] A first receiving module 401 is used to receive a first instruction, where the first instruction is used to request to obtain first data;

[0097] A backup module 402 is configured to, in response to the first instruction, back up at least part of the first data in the cold data storage area to the hot data storage area when it is determined that the first data is cold data;

[0098] A second receiving module 403, used for receiving a second instruction, where the second instruction is used for requesting to obtain the first data;

[0099] The output module 404 is used to output at least part of the first data in the hot data storage area in response to the second instruction when the reception interval time between the second instruction and the first instruction is less than the first preset time, so that the user can obtain at least part of the first data.

[0100] In this embodiment, a first instruction for requesting to obtain first data is received by the first receiving module 401, and the backup module 402 responds to the first instruction. When it is determined that the first data is cold data, at least part of the first data in the cold data storage area is backed up to the hot data storage area. Then, a second instruction for requesting to obtain the first data is received by the second receiving module 403, and when the reception interval time between the second instruction and the first instruction is less than a preset time, at least part of the first data in the hot data storage area is output by responding to the second instruction through the output module 404, so that the user can obtain at least part of the first data. Therefore, in the present application, when the first data requested to be obtained by the first instruction is cold data, at least part of the first data is first backed up from the cold data storage area to the hot data storage area, and after receiving the second instruction, when the reception interval time between the second instruction and the first instruction is less than the first preset time, at least part of the first data is obtained from the hot data storage area. Therefore, at least part of the first data in the cold data storage area is first backed up to the hot data storage area, so that the data in the hot data storage area with faster reading and writing speed can be directly output to the user, thereby improving the efficiency of obtaining and outputting cold data. In addition, obtaining and outputting cold data from the hot data storage area takes less time and consumes less computing power than obtaining and outputting cold data from the cold data storage area, which can reduce data storage power consumption.

[0101] Figure 5 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.

[0102] The electronic device may include a processor 501 and a memory 502 storing computer program instructions.

[0103] Specifically, the processor 501 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.

[0104] The memory 502 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, 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. In appropriate cases, the memory 502 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 502 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 502 is a non-volatile solid-state memory.

[0105] The memory may include read-only memory (ROM), random access memory (RAM), magnetic disk storage media devices, optical storage media devices, flash memory devices, electrical, optical or other physical / tangible memory storage devices. Thus, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to an aspect of the present disclosure.

[0106] The processor 501 implements any one of the data processing methods in the above embodiments by reading and executing computer program instructions stored in the memory 502 .

[0107] In one example, the electronic device may further include a communication interface 503 and a bus 510. Figure 5 As shown, the processor 501, the memory 502, and the communication interface 503 are connected via a bus 510 and communicate with each other.

[0108] The communication interface 503 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0109] Bus 510 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 510 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the application considers any suitable bus or interconnection.

[0110] In addition, in combination with the data processing method in the above embodiments, the present application embodiment 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 processing methods in the above embodiments is implemented.

[0111] The present application provides a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device can execute the above-mentioned data processing method.

[0112] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0113] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0114] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0115] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0116] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A data processing method, characterized in that: include: receiving a first instruction, wherein the first instruction is used to request to obtain first data; In response to the first instruction, when it is determined that the first data is cold data, backing up at least part of the first data in the cold data storage area to the hot data storage area; receiving a second instruction, where the second instruction is used to request to obtain the first data; When the reception interval time between the second instruction and the first instruction is less than the first preset time, in response to the second instruction, at least part of the first data in the hot data storage area is output so that the user can obtain at least part of the first data.

2. The method according to claim 1, characterized in that: Backing up at least part of the first data in the cold data storage area to the hot data storage area includes: When the data size of the first data is greater than a first threshold, obtaining part of the first data in the cold data storage area; Backing up part of the first data to the hot data storage area; After receiving the second instruction, the method further includes: backing up second data in the cold data storage area to the hot data storage area, where the second data is remaining data other than part of the first data.

3. The method according to claim 1, characterized in that The method further comprises: If the second instruction is not received within a second preset time after receiving the first instruction, at least part of the first data in the hot data storage area is deleted.

4. The method according to claim 1, characterized in that: In a case where the reception interval between the second instruction and the first instruction is less than a first preset time, after outputting at least part of the first data in the hot data storage area in response to the second instruction, the method further includes: modifying a data type label of the first data in the hot data storage area from a cold data label to a hot data label; The first data in the cold data storage area is deleted.

5. The method according to claim 1, characterized in that Before receiving the first instruction, the method further includes: Get the access frequency value of all data; Marking the data type label of the data whose access frequency value is greater than or equal to the second threshold as a hot data label, and marking the data type label of the data whose access frequency value is less than the second threshold as a cold data label; The data corresponding to the cold data tags are stored in the cold data storage area, and the data corresponding to the hot data tags are stored in the hot data storage area.

6. The method according to claim 1, characterized in that Before receiving the first instruction, the method further includes: Acquire storage location information of all data, wherein all data includes: all cold data in the cold data storage area and all hot data in the hot data storage area; Generate a location index corresponding to each data according to the storage location information; Generate corresponding data attribute labels according to the storage data attributes of each data; Establishing an association relationship between the data attribute label of each data and the position index; After receiving the first instruction, in response to the first instruction, if it is determined that the first data is cold data, before backing up at least part of the first data in the cold data storage area to the hot data storage area, the method further includes: Determine the data attribute label corresponding to the first data; In response to the first instruction, displaying the storage data attribute corresponding to the data attribute tag, so that the user can determine whether the data corresponding to the storage data attribute is the data to be obtained; The step of backing up at least part of the first data in the cold data storage area to the hot data storage area in response to the first instruction when determining that the first data is cold data includes: Determining the position index associated with the data attribute tag corresponding to the first data; Determine the storage location information corresponding to the first data through the location index; Acquire at least part of the first data from the cold data storage area according to the storage location information; Back up at least a portion of the first data in the cold data storage area to the hot data storage area.

7. A data processing device, characterized in that: include: A first receiving module, used for receiving a first instruction, where the first instruction is used for requesting to obtain first data; a backup module, configured to, in response to the first instruction, back up at least part of the first data in the cold data storage area to the hot data storage area when determining that the first data is cold data; A second receiving module, used for receiving a second instruction, where the second instruction is used for requesting to obtain the first data; The output module is used to output at least part of the first data in the hot data storage area in response to the second instruction when the reception interval time between the second instruction and the first instruction is less than the first preset time, so that the user can obtain at least part of the first data.

8. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the data processing method according to any one of claims 1 to 6 is implemented.

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

10. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute the data processing method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Data storage method and device, terminal equipment and storage medium

    CN113779426A

  • Cold data identification method and device, equipment and medium

    CN115525638A

  • Cold and hot data processing method and device, electronic equipment and storage medium

    CN116361290A

  • Cold data retrieval method and device, electronic equipment and storage medium

    CN117493275A

  • Top level tier management

    US10176212B1

Cited By

  • Data processing method and system

    WO2026144857A1