Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for storing data

A technology for saving data and data, which is applied in the computer field, can solve problems such as data corruption, and achieve the effect of a highly reliable data storage system

Active Publication Date: 2015-09-02
SHENZHEN TENCENT COMP SYST CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Since the compound document saves each file according to the directory level, during the process of saving the file data, if the application program of the computer is abnormal (such as power failure, crash, process crash, deadlock, etc.), the data in the file system is very It is possible to cause corruption, and the corruption of this data often causes various problems in the application

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for storing data
  • A method and device for storing data
  • A method and device for storing data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] In order to provide users with highly reliable data storage, the embodiment of the present invention provides a method for saving data, see figure 1 , the method includes:

[0037] 101: Receive the operation data of the operation object in a transaction cycle, and save the operation data to the memory;

[0038] Wherein, the received operation data for the operation object in the file system can be directly directed to the memory of the computer by calling corresponding instructions and pointers of the computer.

[0039] 102: Back up the original data of the operation object in the compound document to a log file;

[0040] Wherein, when the computer receives the operation data for the operation object in the file system, it can determine the original data of the operation object in the compound document, read this part of original data from the compound document, and back it up to the log file. The log file and the compound document are independent of each other. The m...

Embodiment 2

[0045] In order to provide users with highly reliable data storage and overcome the problems in the prior art that the compound document in the hard disk is damaged due to the abnormality of the application program in the file system during the process of saving data, the embodiment of the present invention provides a data saving method, by which the "All or Nothing" transactional feature of data operations in the file system can be realized. Taking the execution subject as a commonly used computer and the file system of the computer to process various operation instructions as an example, see figure 2 , the method includes:

[0046] 201: The computer receives the operation data of the operation object within a transaction cycle, and sends an operation request to the file system;

[0047]It should be noted that the transaction cycle specifically refers to the time required to complete a specific transaction. Taking the write operation as an example, the computer needs to go...

Embodiment 3

[0085] In order to provide users with highly reliable data storage and overcome the problems in the prior art that the compound document in the hard disk is damaged due to the abnormality of the file system in the file system, the embodiment of the present invention provides a method for saving data, through which the Realize the "All or Nothing" transactional feature of data operations in the file system. Different from Embodiment 2, the log file provided in this Embodiment 3 has a flag, and the flag is used to identify whether the log file is valid, and the execution subject is a commonly used computer, and the computer's instructions cooperate with each other to complete the method For example, see image 3 , the method includes:

[0086] 301: The computer receives the operation data of the operation object in a transaction cycle, and after judging that it is a corresponding operation on the file system, directly saves the received operation data in the memory of the compu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A method and a device for saving data are provided, which belong to the field of computer technology. The method includes the following steps: receiving the operation data operating the operation object in a transaction period, and saving the operation data to memory; backing up the original data of said operation object in the compound document to a log file; saving said operation data saved in the memory to said compound document. The device includes: a receiving module, a backing-up module and a saving module. Using the solutions above, the problem of compound document corruption caused by exception in the existing file system is solved; a reliable data storage system is provided for the user.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for storing data. Background technique [0002] The computer's file system is the core module of application program (such as word, qq, etc.) file management, and manages the local persistence of data of the application program. [0003] Compound Documents is a good way to implement a file system. Compound documents contain not only text but also graphics, spreadsheet data, sound, video images, and other information. A compound document can be imagined as an owner, which contains text, graphics, and multimedia information (such as sound and images), and organizes multiple files together according to a certain directory level. [0004] In the process of realizing the present invention, the inventor finds that the prior art has at least the following disadvantages: [0005] Since the compound document saves each file according to the directory level, during...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30G06F11/14
CPCG06F3/06G06F11/34G06F11/1402
Inventor 邓立波栾涛
Owner SHENZHEN TENCENT COMP SYST CO LTD