Data file writing method and system and data file reading method and system

A data file and writing system technology, which is applied in the input/output process of data processing, database indexing, structured data retrieval, etc., can solve problems such as performance loss, performance impact, and performance degradation, and achieve easy writing, writing The possible effect of improving input performance and reducing errors

Active Publication Date: 2014-02-26
BEIJING QIHOO TECH CO LTD
View PDF4 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0014] 2. Reduced performance
[0015] Because two files are operated at the same time, there is a certain loss in performance.
One is that the content of reading and writing is more than before, and the other is that when multiple files are involved in reading and writing, the disk is not read and written in strict order, which also has a certain impact on performance

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
  • Data file writing method and system and data file reading method and system
  • Data file writing method and system and data file reading method and system
  • Data file writing method and system and data file reading method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0053] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0054] like Figure 4 As shown, an embodiment of the present invention provides a data file writing method for writing data to be written into a data file, which includes: step 41, obtaining one or more pieces of data to be written; step 42, setting The first string, the length and value of the first string can be flexibly designed, such as 0x5e5c7cfe with a length of 4 bytes; step 43, each piece of data to be written is regarded a...

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

The invention discloses a data file writing method and system and a data file reading method and system. The data file writing method is used for writing data to be written into a data file and comprises obtaining one or more than one datum to be written; setting a first character string; utilizing every datum to be written as a unit and adding the first character string into every unit, wherein the first character string is located at the front end of every unit and used for identifying every unit; writing every unit into the data file. According to the data file writing method and system and the data file reading method and system, undamaged data in the data file can still be searched to be read under the condition that a part of data in the data file are damaged.

Description

technical field [0001] The invention relates to the field of computer data processing, in particular to a data file writing method and system, and a data file reading method and system. Background technique [0002] In a computer system, such as a storage system, there are often scenarios where multiple processes read and write data files. For example, a process writes data into a file according to a certain protocol format, and then another process reads the file and parses the content of the file according to the protocol format. [0003] In the vast majority of cases, there is no problem doing this. However, if the computer crashes unexpectedly, causing the process to write a certain data, it only writes half of it and terminates, which will cause the data file to be damaged. If the reading process parses its content according to the previously agreed protocol, there will be problems, which will lead to subsequent All data cannot be read. [0004] For example, in a mes...

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 Applications(China)
IPC IPC(8): G06F3/06
CPCG06F3/0614G06F3/0643G06F3/0674G06F11/1441G06F16/2365G06F16/22
Inventor 代兵朱超王超
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products