CN111580756A - Data operation method, device, equipment and computer readable storage medium - Google Patents

Data operation method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN111580756A
CN111580756A CN202010403838.0A CN202010403838A CN111580756A CN 111580756 A CN111580756 A CN 111580756A CN 202010403838 A CN202010403838 A CN 202010403838A CN 111580756 A CN111580756 A CN 111580756A
Authority
CN
China
Prior art keywords
data
target
storage medium
data operation
operation instruction
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
CN202010403838.0A
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.)
China Great Wall Technology Group Co ltd
Original Assignee
China Great Wall Technology Group 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 China Great Wall Technology Group Co ltd filed Critical China Great Wall Technology Group Co ltd
Priority to CN202010403838.0A priority Critical patent/CN111580756A/en
Publication of CN111580756A publication Critical patent/CN111580756A/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/061Improving I/O performance
    • 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/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device
    • 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/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The application is applicable to the technical field of computers, and provides a data operation method, which comprises the following steps: acquiring a data operation instruction; storing a target data image corresponding to the data operation instruction to a target storage medium, wherein the target storage medium is a solid state disk or a memory; and executing the operation corresponding to the data operation instruction on the target data in the target storage medium. According to the scheme, when the data in the mechanical hard disk is operated, the solid state hard disk or the memory is used as the target storage medium, the speed of data operation is increased, and the efficiency of data operation is improved.

Description

Data operation method, device, equipment and computer readable storage medium
Technical Field
The present application belongs to the field of computer technologies, and in particular, to a data operation method, apparatus, device, and computer-readable storage medium.
Background
Hard disks are the most prominent storage devices for computers. The hard disk may include a mechanical hard disk and a solid state hard disk. Existing computers use solid state drives as system disks and mechanical hard drives as storage disks.
Since the mechanical hard disk reading speed limit is 200M/s, the writing speed is also difficult to break through 100M/s. Therefore, when data in the mechanical hard disk is operated, the operation speed is slow, and the operation efficiency is low.
Disclosure of Invention
The embodiment of the application provides a data operation method, a data operation device, data operation equipment and a computer readable storage medium, and can solve the problems of low operation speed and low operation efficiency when data in a mechanical hard disk is read and written.
In a first aspect, an embodiment of the present application provides a data operation method, including:
acquiring a data operation instruction;
storing a target data image corresponding to the data operation instruction to a target storage medium, wherein the target storage medium is a solid state disk or a memory;
and executing the operation corresponding to the data operation instruction on the target data in the target storage medium.
Further, the data operation instruction comprises a reading instruction and a writing instruction.
Further, when the data operation instruction is a write instruction, the performing an operation corresponding to the data operation instruction on the target data in the target storage medium includes:
and restoring the target data in the target storage medium to the mechanical hard disk.
Further, when the data operation instruction is a read instruction, the performing an operation corresponding to the data operation instruction on the target data in the target storage medium includes:
target data is read from the target storage medium.
Further, after the performing the operation corresponding to the data operation instruction on the target data in the target storage medium, the method further includes:
and deleting the target data in the target storage medium.
Further, the mirroring storage of the target data corresponding to the data operation instruction to the target storage medium includes:
storing the target data corresponding to the data operation instruction to the solid state disk in a mirror mode;
and if the storage of the solid state disk is abnormal, the target data is stored to the memory in a mirror image mode.
Further, the mirroring storage of the target data corresponding to the data operation instruction to the target storage medium includes:
acquiring the file size of target data corresponding to the data operation instruction;
and when the size of the file is larger than the available storage space of the memory, the target data is stored to the solid state disk in a mirror image mode.
In a second aspect, an embodiment of the present application provides a data operation apparatus, including:
the acquisition unit is used for acquiring a data operation instruction;
the first processing unit is used for storing the target data corresponding to the data operation instruction to a target storage medium in a mirror mode, wherein the target storage medium is a solid state disk or a memory;
and the second processing unit is used for executing the operation corresponding to the data operation instruction on the target data in the target storage medium.
Further, the data operation instruction comprises a reading instruction and a writing instruction.
Further, when the data operation instruction is a write instruction, the second processing unit is specifically configured to:
and restoring the target data in the target storage medium to the mechanical hard disk.
Further, when the data operation instruction is a read instruction, the second processing unit is specifically configured to:
target data is read from the target storage medium.
Further, the data operation device further includes:
and the third processing unit is used for deleting the target data in the target storage medium.
Further, the first processing unit is specifically configured to:
storing the target data corresponding to the data operation instruction to the solid state disk in a mirror mode;
and if the storage of the solid state disk is abnormal, the target data is stored to the memory in a mirror image mode.
Further, the first processing unit is specifically configured to:
acquiring the file size of target data corresponding to the data operation instruction;
and when the size of the file is larger than the available storage space of the memory, the target data is stored to the solid state disk in a mirror image mode.
In a third aspect, an embodiment of the present application provides a data operation device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the data operation method according to the first aspect is implemented.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the data operation method according to the first aspect.
In the embodiment of the application, a data operation instruction is obtained; storing a target data image corresponding to the data operation instruction to a target storage medium, wherein the target storage medium is a solid state disk or a memory; and executing the operation corresponding to the data operation instruction on the target data in the target storage medium. According to the scheme, when the data in the mechanical hard disk is operated, the solid state hard disk or the memory is used as the target storage medium, the speed of data operation is increased, and the efficiency of data operation is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a schematic flow chart diagram of a data manipulation method according to a first embodiment of the present application;
fig. 2 is a schematic flowchart of a refinement of S102 in a data manipulation method provided in a first embodiment of the present application;
fig. 3 is a schematic flowchart of S102 refinement in a data operation method provided in the first embodiment of the present application;
FIG. 4 is a schematic diagram of a data manipulation device according to a second embodiment of the present application;
fig. 5 is a schematic diagram of a data operation device according to a third embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Referring to fig. 1, fig. 1 is a schematic flow chart of a data operation method according to a first embodiment of the present application. In this embodiment, an execution subject of the data operation method is a device with a data operation function, for example, a desktop computer. The data manipulation method as shown in fig. 1 may include:
s101: and acquiring a data operation instruction.
The computer hard disk is the most important storage device of the computer. The hard disk is divided into a mechanical hard disk and a solid state hard disk. Solid state disks are hard disks made with arrays of solid state electronic memory chips. The mechanical hard disk is a conventional hard disk, and is generally used for storage. The mechanical hard disk has large capacity, long service life and low price, but also has the defects of large noise, high heat generation, poor shock resistance, heavy weight, low reading and writing speed and the like. The reading speed limit of the mechanical hard disk is 200M per second, and the writing speed is difficult to break through 100M per second. When the device operates the data stored in the mechanical hard disk through the data operation command, the reading speed and the writing speed are slow.
In this embodiment, the device includes a mechanical hard disk, a solid state disk, and a memory. The solid state disk is used as a system disk, and the mechanical hard disk is used as a storage disk.
The device can operate on the data stored in the hard disk through the data operation instruction. For example, the device may read data stored in a mechanical hard disk through data manipulation instructions.
Since the method of the present embodiment is to solve the problem of low efficiency of operating data on the mechanical hard disk, the data operation instruction is an instruction for operating data stored in the mechanical hard disk. The data operation instruction can be generated by triggering on the equipment by a user, and can also be remotely sent to the local terminal equipment by other equipment. The data operation instruction is used for triggering the equipment to perform corresponding operation on the data stored in the mechanical hard disk.
Further, the data operation command includes a read command and a write command. The reading instruction is used for reading the data stored in the mechanical hard disk and calling the data stored in the mechanical hard disk into the system; the read command is used for writing new data into the mechanical hard disk and storing the data in the system in the mechanical hard disk.
S102: and storing the target data image corresponding to the data operation instruction to a target storage medium, wherein the target storage medium is a solid state disk or a memory.
The method comprises the steps that target data corresponding to a data operation instruction are obtained by equipment, for example, when the data operation instruction is a reading instruction, the target data corresponding to the data operation instruction are data to be read and stored in a mechanical hard disk; and when the data operation instruction is a write-in instruction, the target data corresponding to the data operation instruction is data to be written in the mechanical hard disk.
And the equipment stores the target data mirror image corresponding to the data operation instruction to the target storage medium, namely, the target data is copied to the target storage medium.
The solid state disk has high transmission speed, for example, the Rui reaches MX series solid state disks, the sequential writing speed is as high as 510MB/s, the reading speed reaches 560MB/s, and the 1G files can be completed within only a few seconds. The storage speed of the memory is expressed in the time of accessing data once, and the unit is nanosecond (ns). The read-write speed of the solid state disk and the memory is higher than that of a mechanical hard disk. Therefore, the target storage medium may be a solid state disk or a memory.
In addition, when the solid state disk has a storage anomaly, in order to perform mirror storage on target data normally, S102 may include S1021 to S1022, as shown in fig. 2, where S1021 to S1022 are specifically as follows:
s1021: and storing the target data corresponding to the data operation instruction to the solid state disk in a mirror mode.
And the device stores the target data mirror image corresponding to the data operation instruction to the solid state disk. For specific storage details, reference may be made to the related description in S102, and details are not described here.
S1022: and if the storage of the solid state disk is abnormal, the target data is stored to the memory in a mirror image mode.
In the using process, the solid state disk may be abnormal, for example, the solid state disk of the device may cause a reading and writing error of the solid state disk due to unexpected factors such as collision, or affect the reading and writing speed of the solid state disk. When the device detects that the solid state disk is abnormal in storage, the solid state disk cannot normally mirror and store target data, and the device mirrors and stores the target data to the memory.
Advantageously, when the memory cannot store the target data, in order to normally perform the mirror image storage on the target data, S102 may include performing the operations of S1023 to S1024, S1023 to S1024 and S1021 to S1022 alternatively, as shown in fig. 3, the operations of S1023 to S1024 are as follows:
s1023: and acquiring the file size of the target data corresponding to the data operation instruction.
The device obtains the file size of the target data corresponding to the data operation instruction, and the file size can measure the size of one computer file. Usually expressed in prefixed byte numbers.
S1024: and when the size of the file is larger than the available storage space of the memory, the target data is stored to the solid state disk in a mirror image mode.
In this embodiment, the memory is preferentially used for mirroring the target data. Since the memory space of the memory is limited, before the target data is mirrored, it is necessary to determine whether the current available memory space of the memory can store the target data.
The method comprises the steps that equipment acquires available storage space of a memory, when the size of a file is smaller than or equal to the available storage space of the memory, the current available storage space of the memory can store target data, and the equipment stores the target data to the memory in a mirror image mode; when the size of the file is larger than the available storage space of the memory, the current available storage space of the memory is not enough for storing the target data, and the device stores the target data to the solid state disk in a mirror image mode.
S103: and executing the operation corresponding to the data operation instruction on the target data in the target storage medium.
And the equipment acquires the operation corresponding to the data operation instruction according to the data operation instruction, and executes the operation corresponding to the data operation instruction on the target data in the target storage medium.
When the data operation instruction is a read instruction, S103 may include: target data is read from the target storage medium. The reading instruction is used for reading data from the mechanical hard disk, the data to be read in the mechanical hard disk is stored in a target storage medium, and the device can directly read the target data from the target storage medium, so that the purpose of reading the data from the mechanical hard disk can be achieved. That is, the device needs to read data from the mechanical hard disk, but actually reads data from the target storage medium, and since the reading speed of the target storage medium is higher than that of the mechanical hard disk, the speed of reading data from the mechanical hard disk can be increased for a user.
Further, when the data operation command is a write command, S103 may include: and restoring the target data in the target storage medium to the mechanical hard disk.
And the equipment acquires the data to be written according to the input instruction, writes the data to be written into the target data in the target storage medium and generates new target data. The new target data includes the original target data and the data to be written. The device restores the new target data in the target storage medium to the mechanical hard disk.
Further, after S103, the method may further include: and deleting the target data in the target storage medium.
After the operation corresponding to the data operation instruction is performed on the target data in the target storage medium, the target data in the target storage medium needs to be cleaned. In order to guarantee the running speed of the system and to execute the next data operation, the device deletes the target data in the target storage medium.
In the embodiment of the application, a data operation instruction is obtained; storing a target data image corresponding to the data operation instruction to a target storage medium, wherein the target storage medium is a solid state disk or a memory; and executing the operation corresponding to the data operation instruction on the target data in the target storage medium. According to the scheme, when the data in the mechanical hard disk is operated, the solid state hard disk or the memory is used as the target storage medium, the speed of data operation is increased, and the efficiency of data operation is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Referring to fig. 4, fig. 4 is a schematic diagram of a data operating device according to a second embodiment of the present application. The units included are used to perform the steps in the embodiments corresponding to fig. 1-3. Please refer to the related description of the embodiments corresponding to fig. 1 to fig. 3. For convenience of explanation, only the portions related to the present embodiment are shown. Referring to fig. 4, the data manipulation device 4 includes:
an obtaining unit 410, configured to obtain a data operation instruction;
the first processing unit 420 is configured to mirror and store target data corresponding to the data operation instruction to a target storage medium, where the target storage medium is a solid state disk or a memory;
and the second processing unit 430 is configured to perform an operation corresponding to the data operation instruction on the target data in the target storage medium.
Further, the data operation instruction comprises a reading instruction and a writing instruction.
Further, when the data operation instruction is a write instruction, the second processing unit 430 is specifically configured to:
and restoring the target data in the target storage medium to the mechanical hard disk.
Further, when the data operation instruction is a read instruction, the second processing unit 430 is specifically configured to:
target data is read from the target storage medium.
Further, the data operation device 4 further includes:
and the third processing unit is used for deleting the target data in the target storage medium.
Further, the first processing unit 420 is specifically configured to:
storing the target data corresponding to the data operation instruction to the solid state disk in a mirror mode;
and if the storage of the solid state disk is abnormal, the target data is stored to the memory in a mirror image mode.
Further, the first processing unit 420 is specifically configured to:
acquiring the file size of target data corresponding to the data operation instruction;
and when the size of the file is larger than the available storage space of the memory, the target data is stored to the solid state disk in a mirror image mode.
Fig. 5 is a schematic diagram of a data operation device according to a third embodiment of the present application. As shown in fig. 5, the data operation device 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52, such as a data manipulation program, stored in said memory 51 and executable on said processor 50. The processor 50, when executing the computer program 52, implements the steps in the above-described embodiments of the data manipulation method, such as the steps 101 to 103 shown in fig. 1. Alternatively, the processor 50, when executing the computer program 52, implements the functions of the modules/units in the above-mentioned device embodiments, such as the functions of the modules 510 to 530 shown in fig. 5.
Illustratively, the computer program 52 may be partitioned into one or more modules/units, which are stored in the memory 51 and executed by the processor 50 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 52 in the data manipulation device 5. For example, the computer program 52 may be divided into an acquisition unit, a first processing unit, and a second processing unit, and each unit specifically functions as follows:
the acquisition unit is used for acquiring a data operation instruction;
the first processing unit is used for storing the target data corresponding to the data operation instruction to a target storage medium in a mirror mode, wherein the target storage medium is a solid state disk or a memory;
and the second processing unit is used for executing the operation corresponding to the data operation instruction on the target data in the target storage medium.
The data manipulation device may include, but is not limited to, a processor 50, a memory 51. Those skilled in the art will appreciate that fig. 5 is only an example of the data manipulation device 5, and does not constitute a limitation of the data manipulation device 5, and may include more or less components than those shown, or combine certain components, or different components, for example, the data manipulation device may also include an input output device, a network access device, a bus, etc.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the data operation device 5, such as a hard disk or a memory of the data operation device 5. The memory 51 may also be an external storage device of the data operation device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the data operation device 5. Further, the data operation device 5 may also include both an internal storage unit and an external storage device of the data operation device 5. The memory 51 is used for storing the computer programs and other programs and data required by the data manipulation device. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
An embodiment of the present application further provides a network device, where the network device includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, the processor implementing the steps of any of the various method embodiments described above when executing the computer program.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned method embodiments.
The embodiments of the present application provide a computer program product, which when running on a mobile terminal, enables the mobile terminal to implement the steps in the above method embodiments when executed.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing apparatus/terminal apparatus, a recording medium, computer Memory, Read-Only Memory (ROM), random-access Memory (RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method of data manipulation, comprising:
acquiring a data operation instruction;
storing a target data image corresponding to the data operation instruction to a target storage medium, wherein the target storage medium is a solid state disk or a memory;
and executing the operation corresponding to the data operation instruction on the target data in the target storage medium.
2. The data manipulation method of claim 1 wherein the data manipulation instructions comprise a read instruction and a write instruction.
3. The data operation method of claim 2, wherein when the data operation instruction is a write instruction, the performing an operation corresponding to the data operation instruction on target data in the target storage medium comprises:
and restoring the target data in the target storage medium to the mechanical hard disk.
4. The data operation method of claim 2, wherein when the data operation instruction is a read instruction, the performing an operation corresponding to the data operation instruction on the target data in the target storage medium comprises:
target data is read from the target storage medium.
5. The data manipulation method of claim 1, further comprising, after said performing an operation corresponding to said data manipulation instruction on target data in said target storage medium:
and deleting the target data in the target storage medium.
6. The data operation method of claim 1, wherein the mirroring storage of the target data corresponding to the data operation instruction to the target storage medium comprises:
storing the target data corresponding to the data operation instruction to the solid state disk in a mirror mode;
and if the storage of the solid state disk is abnormal, the target data is stored to the memory in a mirror image mode.
7. The data operation method of claim 1, wherein the mirroring storage of the target data corresponding to the data operation instruction to the target storage medium comprises:
acquiring the file size of target data corresponding to the data operation instruction;
and when the size of the file is larger than the available storage space of the memory, the target data is stored to the solid state disk in a mirror image mode.
8. A data manipulation device, comprising:
the acquisition unit is used for acquiring a data operation instruction;
the first processing unit is used for storing the target data corresponding to the data operation instruction to a target storage medium in a mirror mode, wherein the target storage medium is a solid state disk or a memory;
and the second processing unit is used for executing the operation corresponding to the data operation instruction on the target data in the target storage medium.
9. A data manipulation device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, wherein said processor implements the method of any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202010403838.0A 2020-05-13 2020-05-13 Data operation method, device, equipment and computer readable storage medium Pending CN111580756A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010403838.0A CN111580756A (en) 2020-05-13 2020-05-13 Data operation method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010403838.0A CN111580756A (en) 2020-05-13 2020-05-13 Data operation method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111580756A true CN111580756A (en) 2020-08-25

Family

ID=72120974

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010403838.0A Pending CN111580756A (en) 2020-05-13 2020-05-13 Data operation method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111580756A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077121A (en) * 2013-01-07 2013-05-01 深圳市江波龙电子有限公司 Method and device for managing data in flash memory equipment
CN103198027A (en) * 2013-02-27 2013-07-10 天脉聚源(北京)传媒科技有限公司 Method and device for storing and providing files
CN105117308A (en) * 2015-09-29 2015-12-02 联想(北京)有限公司 Data processing method, device and system
CN205263797U (en) * 2015-12-02 2016-05-25 成都广达新网科技股份有限公司 Adopt memory of solid state hard drives SSD as L2 cache
CN107273057A (en) * 2017-06-30 2017-10-20 联想(北京)有限公司 Date storage method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077121A (en) * 2013-01-07 2013-05-01 深圳市江波龙电子有限公司 Method and device for managing data in flash memory equipment
CN103198027A (en) * 2013-02-27 2013-07-10 天脉聚源(北京)传媒科技有限公司 Method and device for storing and providing files
CN105117308A (en) * 2015-09-29 2015-12-02 联想(北京)有限公司 Data processing method, device and system
CN205263797U (en) * 2015-12-02 2016-05-25 成都广达新网科技股份有限公司 Adopt memory of solid state hard drives SSD as L2 cache
CN107273057A (en) * 2017-06-30 2017-10-20 联想(北京)有限公司 Date storage method and system

Similar Documents

Publication Publication Date Title
CN109496292B (en) Disk management method, disk management device and electronic equipment
CN111324303B (en) SSD garbage recycling method, SSD garbage recycling device, computer equipment and storage medium
CN107092835B (en) Computer data encryption device and method for virtual storage disk
CN114020193A (en) Cross-page checking determination method and device, electronic equipment and storage medium
CN111143092B (en) Fault recording data processing method, system and terminal equipment
CN111309553B (en) Method, system, equipment and medium for monitoring storage Jbod
CN112395144A (en) Test method, test system, terminal equipment and readable storage medium
CN112328526A (en) IO operation method and device
CN113272785B (en) Method for mounting file system, terminal equipment and storage medium
CN111143236A (en) Memory mapping implementation queue and data reading and writing method thereof
CN111580756A (en) Data operation method, device, equipment and computer readable storage medium
CN111078384A (en) Method and device for migrating core data, computer equipment and storage medium
CN111399774B (en) Data processing method and device based on snapshot under distributed storage system
US8688643B1 (en) Systems and methods for adaptively preferring mirrors for read operations
CN106940684B (en) Method and device for writing data according to bits
CN108959405B (en) Strong consistency reading method of data and terminal equipment
CN112882659A (en) Information obtaining method and device, electronic equipment and storage medium
CN112732176A (en) SSD (solid State disk) access method and device based on FPGA (field programmable Gate array), storage system and storage medium
CN113468105A (en) Data structure of data snapshot, related data processing method, device and system
CN111381977A (en) Message processing method and device
CN117041256B (en) Network data transmission and storage method and system
CN105260132A (en) Method and device for hot loading disk filter drive
CN112579207B (en) Data loading method, device and equipment
US6742073B1 (en) Bus controller technique to control N buses
CN115543876B (en) Method and device for verifying address decoding function, electronic equipment and medium

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