CN112817522A - Data storage method and device, electronic equipment and storage medium - Google Patents

Data storage method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112817522A
CN112817522A CN202110049167.7A CN202110049167A CN112817522A CN 112817522 A CN112817522 A CN 112817522A CN 202110049167 A CN202110049167 A CN 202110049167A CN 112817522 A CN112817522 A CN 112817522A
Authority
CN
China
Prior art keywords
application program
identification information
data
user data
storage area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110049167.7A
Other languages
Chinese (zh)
Inventor
陈冲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Wanxiang Electronics Technology Co Ltd
Original Assignee
Xian Wanxiang Electronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Wanxiang Electronics Technology Co Ltd filed Critical Xian Wanxiang Electronics Technology Co Ltd
Priority to CN202110049167.7A priority Critical patent/CN112817522A/en
Publication of CN112817522A publication Critical patent/CN112817522A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure provides a data storage method, a data storage device, an electronic device and a storage medium, relates to the technical field of computers, and can solve the problem that in the prior art, application programs and user data are not classified but directly stored, so that resource waste or poor user experience can be caused. The specific technical scheme is as follows: receiving a data storage request input by a user, wherein the data storage request comprises an application program, identification information of the application program and user data, and the user data is data when the user uses the application program; if the identification information exists in a first type application program list, storing the application programs and the user data in a high-speed storage area; and if the identification information exists in a second type application program list, storing the application program and the user data to a low-speed storage area. The invention is used for effectively utilizing storage resources and improving user experience.

Description

Data storage method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computers, and in particular, to a data transmission method and apparatus, an electronic device, and a storage medium.
Background
At present, application programs and user data in a virtual machine of a server are not classified but directly stored, which causes resource waste or poor user experience. For example, if all application programs and user data are stored in the high-speed hard disk of the server, the high-speed hard disk has good user experience because of high reading speed, but some infrequent applications are stored in the high-speed hard disk, so that hardware resources are wasted, and hardware cost is increased; if all application programs and user data are saved on the low-speed hard disk of the server, although the hardware cost is reduced, the user experience is poor because the low-speed hard disk has a slow reading speed, the program starting speed is slow, and the waiting time is long.
Disclosure of Invention
The embodiment of the disclosure provides a data transmission method, a data transmission device, an electronic device and a storage medium, which can solve the problem that in the prior art, application programs and user data are not classified but directly stored, so that resource waste or poor user experience is caused. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a data storage method, including:
receiving a data storage request input by a user, wherein the data storage request comprises an application program, identification information of the application program and user data, and the user data is data when the user uses the application program;
if the identification information exists in a first type application program list, storing the application programs and the user data in a high-speed storage area;
and if the identification information exists in a second type application program list, storing the application program and the user data to a low-speed storage area.
The data storage method provided by the embodiment of the disclosure can receive a data storage request input by a user, wherein the data storage request comprises an application program, identification information of the application program and user data, and the user data is data when the user uses the application program; if the identification information exists in the first type application program list, storing the application program and the user data in a high-speed storage area; if the identification information exists in the second type application program list, the application program and the user data are stored in the low-speed storage area, the application program can be divided into different types, the application programs and the user data of different types can be correspondingly stored in the high-speed storage area or the low-speed storage area, the problems that the application programs and the user data are not classified but directly stored, resource waste or poor user experience is caused are solved, storage resources can be effectively utilized, and the user experience is improved.
In one embodiment, before receiving the data storage request input by the user, the method further includes:
after the application program is started, counting the number of files corresponding to the application program and the number of processes of the application program;
and if the number of the files corresponding to the application program is greater than 1 and the number of the processes of the application program is equal to the number of the files, adding the identification information of the application program into the first type application program list.
After the application program is started, the number of files corresponding to the application program and the number of processes of the application program are counted, when the number of files corresponding to the application program is larger than 1 and the number of processes of the application program is equal to the number of files, the identification information of the application program is added into the first-class application program list, the type of the application program can be accurately determined, and then the application program and the user data in the first-class application program list are stored in a high-speed storage area.
In one embodiment, the method further comprises:
and if the number of the files of the application program is greater than 1 and the number of the processes of the application program is 1, adding the identification information of the application program into the second type application program list.
The file number of the application program is greater than 1, and the process number of the application program is 1, the identification information of the application program is added into the second type application program list, the type of the application program can be accurately determined, the application program and the user data in the second type application program list are stored in the high-speed storage area, the second type application program can acquire the user data of all different files in the second type application program only by starting once, so that the starting times of the second type application program are less, the application program and the user data in the second type application program list are stored in the low-speed storage area, and the cost can be relatively reduced on the premise that the user experience influence is not large.
In one embodiment, the method further comprises:
if the identification information does not exist in the first type application program list and does not exist in the second type application program list, adding the identification information into the second type application program list and storing the application programs and the user data into the low-speed storage area;
after the application program and the user data are stored in the low-speed storage area, if an application program starting instruction of a user is received, acquiring the process number of the application program, wherein the application program starting instruction comprises identification information of the application program;
if the process number is larger than 1, deleting the identification information from the second type application program list and deleting the application program and the user data from the low-speed storage area;
and adding the identification information into the first type application program list and storing the application programs and the user data in the high-speed storage area.
According to a second aspect of embodiments of the present disclosure, there is provided a data storage device including:
the data storage request receiving module is used for receiving a data storage request input by a user, wherein the data storage request comprises an application program, identification information of the application program and user data, and the user data is data when the user uses the application program;
the high-speed storage area storage and storage module is used for storing the application programs and the user data into a high-speed storage area if the identification information exists in a first type of application program list;
and the low-speed storage area storage and storage module is used for storing the application program and the user data into the low-speed storage area if the identification information exists in the second type application program list.
In one embodiment, the apparatus further comprises:
the file quantity counting module is used for counting the quantity of the files corresponding to the application program and the quantity of the processes of the application program after the application program is started;
and the first-class application program list updating module is used for adding the identification information of the application program into the first-class application program list if the number of the files corresponding to the application program is greater than 1 and the number of the processes of the application program is equal to the number of the files.
In one embodiment, the apparatus further comprises:
and the second type application program list updating module is used for adding the identification information of the application program into the second type application program list if the file number of the application program is greater than 1 and the process number of the application program is 1.
In one embodiment of the present invention,
the low-speed storage area storage memory module is further configured to:
if the identification information does not exist in the first type application program list and does not exist in the second type application program list, adding the identification information into the second type application program list and storing the application programs and the user data into the low-speed storage area;
the high-speed storage area storage module is further configured to:
after the application program and the user data are stored in the low-speed storage area, if an application program starting instruction of a user is received, acquiring the process number of the application program, wherein the application program starting instruction comprises identification information of the application program;
if the process number is larger than 1, deleting the identification information from the second type application program list and deleting the application program and the user data from the low-speed storage area;
and adding the identification information into the first type application program list and storing the application programs and the user data in the high-speed storage area.
According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, which includes a processor and a memory, where at least one computer instruction is stored, and the instruction is loaded and executed by the processor to implement the steps executed in the data storage method of any one of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium having stored therein at least one computer instruction, which is loaded and executed by a processor to implement the steps performed in the data storage method of any one of the first aspect.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a first flowchart of a data storage method provided by an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a cloud server according to an embodiment of the present disclosure;
fig. 3 is a flowchart ii of a data storage method provided in an embodiment of the present disclosure;
fig. 4 is a flowchart three of a data storage method provided by the embodiment of the present disclosure;
fig. 5 is a first schematic structural diagram of a data storage method apparatus provided in an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a data storage method apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart of a data storage method provided in an embodiment of the present disclosure. As shown in fig. 1, the method includes:
s101, receiving a data storage request input by a user, wherein the data storage request comprises an application program, identification information of the application program and user data, and the user data is data when the user uses the application program.
In this embodiment, the server may receive a user-input data storage request input by a user on the virtual machine, where the data storage request is used to instruct to store an application program running on the virtual machine and user data, the data storage request includes the application program, identification information of the application program, and the user data is data when the user uses the application program.
Illustratively, before receiving the user-entered data storage request, the method further comprises:
after the application program is started, counting the number of files corresponding to the application program and the number of processes of the application program;
if the number of the files corresponding to the application program is larger than 1 and the number of the processes of the application program is equal to the number of the files, the application program accords with the first characteristic, and the identification information of the application program is added into the first type application program list.
And if the number of the files of the application program is more than 1 and the number of the processes of the application program is 1, the application program conforms to the second characteristic, and the identification information of the application program is added into the second type application program list.
For example, after a statepad application is started, a user needs to read the statepad application completely once every time the user opens a text file of the statepad. If different text files of two stateful applications are opened, processes of two stateful applications exist in the task manager, namely the number of the files corresponding to the stateful application is greater than 1, and the number of the processes of the application is equal to the number of the files, the stateful application conforms to the first characteristic, and the identification information of the stateful application is added into the first type of application list.
For another example, after the word application program is started, only one process is always available in winword.exe in the task manager no matter how many doc documents are opened by the user. That is, the number of files of the word application program is greater than 1 and the number of processes of the word application program is 1, the word application program conforms to the second characteristic, and the identification information of the word application program is added to the first type application program list.
S102, if the identification information exists in a first type application program list, storing the application program and the user data in a high-speed storage area;
and S103, if the identification information exists in the second type application program list, storing the application program and the user data in a low-speed storage area.
For example, if the identification information of the generic application exists in the first type application list, the generic application and the data in the text file of the generic application are stored in a high-speed storage area (e.g., a high-speed memory).
If the identification information of the word application program exists in the second type application program list, the data in the word application program and the doc document are stored in a low-speed storage area (for example, a low-speed memory).
Illustratively, if the identification information is not present in the first type application program list and not present in the second type application program list, adding the identification information to the second type application program list and storing the application program and the user data in the low speed storage area; after the application program and the user data are stored in the low-speed storage area, if an application program starting instruction of a user is received, acquiring the process number of the application program, wherein the application program starting instruction comprises identification information of the application program; if the process number is larger than 1, deleting the identification information from the second type application program list and deleting the application program and the user data from the low-speed storage area; adding the identification information to the first type application program list and storing the application program and the user data in the high-speed storage area.
The data storage method provided by the embodiment of the disclosure can receive a data storage request input by a user, wherein the data storage request comprises an application program, identification information of the application program and user data, and the user data is data when the user uses the application program; if the identification information exists in the first type application program list, storing the application program and the user data in a high-speed storage area; if the identification information exists in the second type application program list, the application program and the user data are stored in the low-speed storage area, the application program can be divided into different types, the application programs and the user data of different types can be correspondingly stored in the high-speed storage area or the low-speed storage area, the problems that the application programs and the user data are not classified but directly stored, resource waste or poor user experience is caused are solved, storage resources can be effectively utilized, and the user experience is improved.
The data storage method provided by the embodiments of the present disclosure is further described in detail below.
According to the application program characteristics, the application programs can be roughly divided into two types:
1. each time user data is opened, the application needs to be read completely. For example, a statepad needs to read the application program of the statepad completely once every time a text file is opened. If two different text files are opened, then it will be read twice, since there are two statepad.
2. Once the application is opened, the application does not need to be re-opened every time the user data is viewed thereafter. For example, in a word, when a doc file is opened each time, only the content of the doc file needs to be read, and a word application program does not need to be completely read. Since winword.exe in the task manager always has only one process, no matter how many doc documents are open.
Thus, for the above features, the application may be stored in the following manner:
1. the application program conforming to the characteristic 1 is stored in the high-speed memory, and the application program needs to be read again each time in the using process of a user, so that the reading times are more, and the starting time is integrally shortened by storing the application program in the high-speed memory, so that better user experience is brought;
2. the application program conforming to the characteristic 2 is stored in the low-speed memory, because the application program only needs to be read once, the reading times are less, even if the first starting is slower, the time for opening the same type of user data later is not influenced, and the cost can be relatively reduced on the premise that the influence of the user experience is not large.
Based on the above, the present invention provides an application storage scheme in a virtualized scenario, in which a basic architecture of a cloud server is shown in fig. 2, and fig. 2 is a schematic structural diagram of a cloud server provided in an embodiment of the present disclosure.
Referring to fig. 2, the cloud server 20 includes a storage resource pool 21; the storage resource pool comprises two types of storage resources: the high-speed hard disk 211 and the low-speed hard disk 212 further include a storage control module 213. The storage control module 213 is configured to perform classified storage on the application programs.
As shown in fig. 3, the application storage scheme in the application virtualization scenario provided by the present invention mainly includes the following steps:
s301, presetting an application program classification table for classifying all application programs according to whether the application programs need to be started once when the user data is opened every time; if the application program needs to be started once when the user data is opened every time, the application program is divided into a first type of application program, and if the application program is started once when the user data is opened for the first time, the application program is divided into a second type of application program;
and forming an application program classification table of all known application programs or common application programs in the manner, and storing the application program classification table in the storage control module.
S302, when a user newly installs an application program, inquiring the type of the new application program according to the locally stored application program classification table;
specifically, the application classification table may be queried according to information such as a name of the current application to be installed, so as to determine the classification of the current application.
S303, if the classification of the current application program is inquired and determined, determining that the storage position of the current application program is as follows according to the classification of the current application program: a high speed hard disk is also a low speed hard disk.
Specifically, if the application belongs to the first type of application program, the application program is stored on a high-speed hard disk;
if the application program belongs to the second type of application program, the application program is stored on the low-speed hard disk.
In an alternative embodiment of the present invention, if no information of the current application is queried through querying in step S302, that is, the application to be installed currently is not an application belonging to the application classification table, the process is performed according to the steps of fig. 4:
s401, directly installing the application program on a low-speed memory, newly adding a record related to the name of the application program in an application program list, and temporarily recording the record as conforming to the characteristic 2;
s402, when the user starts the application program, monitoring a system background, and if the process number of the application program in the background process exceeds 1, indicating that the application program is in accordance with the characteristic 1, updating the record related to the application program in the application program list, and updating the record into the record of the characteristic 1.
In this way, the record of the specific application name can be supplemented. After that, when the user installs the same application program again, the record can be inquired in the application program list, and the purpose of having basis is achieved.
Subsequently, when the application program is installed again, the classification of the application program can be inquired in the application program classification table and stored according to the classification condition.
Based on the data storage method described in the embodiment of fig. 1, the following is an embodiment of the apparatus of the present disclosure, which may be used to execute an embodiment of the method of the present disclosure.
Fig. 5 is a schematic structural diagram of a data storage device according to an embodiment of the present disclosure. As shown in fig. 5, the apparatus 50 includes:
a data storage request receiving module 501, configured to receive a data storage request input by a user, where the data storage request includes an application program, identification information of the application program, and user data, and the user data is data when the user uses the application program;
a high-speed storage area storage module 502, configured to store the application program and the user data in a high-speed storage area if the identification information exists in a first type of application program list;
a low-speed storage area storage and storage module 503, configured to store the application program and the user data in the low-speed storage area if the identification information exists in the second type of application program list.
In one embodiment, as shown in fig. 6, the apparatus 50 further comprises:
a file number counting module 504, configured to count the number of files corresponding to the application program and the number of processes of the application program after the application program is started;
a first type application program list updating module 505, configured to add the identification information of the application program to the first type application program list if the number of files corresponding to the application program is greater than 1 and the number of processes of the application program is equal to the number of files.
In one embodiment, the apparatus 50 further comprises:
a second type application program list updating module 506, configured to add the identification information of the application program to the second type application program list if the number of files of the application program is greater than 1 and the number of processes of the application program is 1.
In one embodiment, the low speed storage area storage memory module 502 is further configured to:
if the identification information does not exist in the first type application program list and does not exist in the second type application program list, adding the identification information into the second type application program list and storing the application programs and the user data into the low-speed storage area;
the high-speed storage area storage module 503 is further configured to:
after the application program and the user data are stored in the low-speed storage area, if an application program starting instruction of a user is received, acquiring the process number of the application program, wherein the application program starting instruction comprises identification information of the application program;
if the process number is larger than 1, deleting the identification information from the second type application program list and deleting the application program and the user data from the low-speed storage area;
and adding the identification information into the first type application program list and storing the application programs and the user data in the high-speed storage area.
The implementation process and technical effects of the data storage device provided in the embodiment of the present disclosure may be referred to in the embodiment of fig. 1, and are not described herein again.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 7, the electronic device 70 includes a processor 701 and a memory 702, where the memory 702 stores at least one computer instruction, and the instruction is loaded and executed by the processor 701 to implement the steps performed in the data storage method according to any one of the first aspect.
Based on the data storage method described in the embodiment corresponding to fig. 1, an embodiment of the present disclosure further provides a computer-readable storage medium, for example, the non-transitory computer-readable storage medium may be a Read Only Memory (ROM), a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like. The storage medium stores computer instructions for executing the data storage method described in the embodiment corresponding to fig. 1, which is not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A method of storing data, comprising:
receiving a data storage request input by a user, wherein the data storage request comprises an application program, identification information of the application program and user data, and the user data is data when the user uses the application program;
if the identification information exists in a first type application program list, storing the application programs and the user data in a high-speed storage area;
and if the identification information exists in a second type application program list, storing the application program and the user data to a low-speed storage area.
2. The method of claim 1, wherein prior to receiving the user-entered data storage request, the method further comprises:
after the application program is started, counting the number of files corresponding to the application program and the number of processes of the application program;
and if the number of the files corresponding to the application program is greater than 1 and the number of the processes of the application program is equal to the number of the files, adding the identification information of the application program into the first type application program list.
3. The method of claim 2, further comprising:
and if the number of the files of the application program is greater than 1 and the number of the processes of the application program is 1, adding the identification information of the application program into the second type application program list.
4. The method of claim 1, further comprising:
if the identification information does not exist in the first type application program list and does not exist in the second type application program list, adding the identification information into the second type application program list and storing the application programs and the user data into the low-speed storage area;
after the application program and the user data are stored in the low-speed storage area, if an application program starting instruction of a user is received, acquiring the process number of the application program, wherein the application program starting instruction comprises identification information of the application program;
if the process number is larger than 1, deleting the identification information from the second type application program list and deleting the application program and the user data from the low-speed storage area;
and adding the identification information into the first type application program list and storing the application programs and the user data in the high-speed storage area.
5. A data storage device, comprising:
the data storage request receiving module is used for receiving a data storage request input by a user, wherein the data storage request comprises an application program, identification information of the application program and user data, and the user data is data when the user uses the application program;
the high-speed storage area storage and storage module is used for storing the application programs and the user data into a high-speed storage area if the identification information exists in a first type of application program list;
and the low-speed storage area storage and storage module is used for storing the application program and the user data into the low-speed storage area if the identification information exists in the second type application program list.
6. The apparatus of claim 5, further comprising:
the file quantity counting module is used for counting the quantity of the files corresponding to the application program and the quantity of the processes of the application program after the application program is started;
and the first-class application program list updating module is used for adding the identification information of the application program into the first-class application program list if the number of the files corresponding to the application program is greater than 1 and the number of the processes of the application program is equal to the number of the files.
7. The apparatus of claim 6, further comprising:
and the second type application program list updating module is used for adding the identification information of the application program into the second type application program list if the file number of the application program is greater than 1 and the process number of the application program is 1.
8. The apparatus of claim 5,
the low-speed storage area storage memory module is further configured to:
if the identification information does not exist in the first type application program list and does not exist in the second type application program list, adding the identification information into the second type application program list and storing the application programs and the user data into the low-speed storage area;
the high-speed storage area storage module is further configured to:
after the application program and the user data are stored in the low-speed storage area, if an application program starting instruction of a user is received, acquiring the process number of the application program, wherein the application program starting instruction comprises identification information of the application program;
if the process number is larger than 1, deleting the identification information from the second type application program list and deleting the application program and the user data from the low-speed storage area;
and adding the identification information into the first type application program list and storing the application programs and the user data in the high-speed storage area.
9. An electronic device, comprising a processor and a memory, wherein at least one computer instruction is stored in the memory, and wherein the instruction is loaded and executed by the processor to implement the steps performed in the data storage method according to any one of claims 1 to 4.
10. A computer-readable storage medium having stored thereon at least one computer instruction which is loaded and executed by a processor to perform the steps performed in the data storage method of any one of claims 1 to 4.
CN202110049167.7A 2021-01-14 2021-01-14 Data storage method and device, electronic equipment and storage medium Pending CN112817522A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110049167.7A CN112817522A (en) 2021-01-14 2021-01-14 Data storage method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110049167.7A CN112817522A (en) 2021-01-14 2021-01-14 Data storage method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112817522A true CN112817522A (en) 2021-05-18

Family

ID=75869212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110049167.7A Pending CN112817522A (en) 2021-01-14 2021-01-14 Data storage method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112817522A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535330A (en) * 2021-07-26 2021-10-22 北京计算机技术及应用研究所 Super-fusion system data localization storage method based on node evaluation function

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113535330A (en) * 2021-07-26 2021-10-22 北京计算机技术及应用研究所 Super-fusion system data localization storage method based on node evaluation function
CN113535330B (en) * 2021-07-26 2023-08-08 北京计算机技术及应用研究所 Super fusion system data localization storage method based on node evaluation function

Similar Documents

Publication Publication Date Title
US11340803B2 (en) Method for configuring resources, electronic device and computer program product
RU2629448C2 (en) System and method of controlling and organizing web-browser cash
CN109150930B (en) Configuration information loading method and device and service processing method and device
CN110865888A (en) Resource loading method and device, server and storage medium
CN109240607B (en) File reading method and device
US20130227545A1 (en) Application virtualization
CN110647318B (en) Method, device, equipment and medium for creating instance of stateful application
CN102710776B (en) Method for preventing repeatedly requesting API server in short time
CN112817522A (en) Data storage method and device, electronic equipment and storage medium
CN111737016B (en) Service data processing method and device for cloud edge fusion system
CN117556792A (en) File processing method and equipment
CN116225630A (en) Transaction processing method, apparatus, electronic device, storage medium, and program product
US20160055168A1 (en) Method and apparatus for scanning files
US9678860B2 (en) Updating data fields of buffers
US7769976B2 (en) Identifying code that wastes virtual memory
CN114841281A (en) Data table identification method, device, equipment, medium and program product
CN110768957B (en) Network security cooperative processing method, system and storage medium
US9489235B2 (en) Request processing system, method and program product
CN107168887B (en) JavaScript object storage and recovery method and device
CN111143418A (en) Data reading method, device and equipment for database and storage medium
US20240045701A1 (en) Method, device and system for loading page data
CN113051329B (en) Data acquisition method, device, equipment and storage medium based on interface
CN114328270B (en) OTA upgrade detection method based on SOA service and readable storage medium
CN112988391B (en) Data processing method, device, equipment and storage medium
CN106951343B (en) Delayed reduction method and delayed reduction assembly for non-specific object

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination