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

Method and system for operating archived file by using virtual file handle and storage medium

A technology for archiving files and file handles, applied in the field of real-time database file operations, can solve problems such as difficulty in estimating the real-time database archive scale, performance degradation of the real-time database, and impact on the system response speed, etc., to achieve normal functions, enhance stability, and improve use efficiency. Effect

Pending Publication Date: 2022-01-04
XIAN THERMAL POWER RES INST CO LTD +1
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the existing technology, the method of expanding the number of handles is mostly used to satisfy a larger number of file operations, but this set number needs to be configured when the real-time database is installed, and the archive size of the real-time database is difficult to estimate, so this design still exists insufficient
There is also a method of dynamically increasing the number of handles. Initially use the number specified by the system, and then expand after exceeding the specified scale. However, this method also has problems: if the number of process handles is continuously expanded, it will affect the performance of the system after reaching a certain number. The response speed will cause the performance of the real-time database to decline, which can seriously cause the process to crash and the service to fail to work normally. Therefore, this design also has certain defects.

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
  • Method and system for operating archived file by using virtual file handle and storage medium
  • Method and system for operating archived file by using virtual file handle and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to make the object, technical solution and advantages of the present invention more clear and definite, the present invention will be further described in detail below in conjunction with specific embodiments and accompanying drawings. The present invention can also be implemented or applied through other different specific implementation modes, and various modifications or changes can be made to the details in this specification based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that, in the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.

[0031] see figure 1 , the present invention proposes a method for using a virtual file handle to operate an archive file, comprising the following steps:

[0032] S1: Access the archive file and obtain the handle of the corresponding archive file;

[0033] Access to archive files inclu...

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 method and system for operating an archived file by using a virtual file handle and a storage medium. The method comprises steps of accessing the archived file, and obtaining a corresponding archived file handle value; detecting whether the accessed archived files are in an open state or not according to the handle values of the archived files, if the archived files are in the open state, locking the archived files for use, and if the archived files are in a non-open state, counting the number of the opened archived files; detecting whether the number of the opened archived files exceeds the file handle number or not, if not, opening the archived files, setting handle values and locking the archived files for use; if yes, recording all opened file handles in a list, closing the least used file handle, releasing the file handle, opening a new file handle, and locking the new file handle for use; after the file handle is used, unlocking processing being carried out under the condition that the file handle is not closed. The method is advantaged in that management of file handles is virtualized in a file handle buffering mode, and normal operation of archived files is guaranteed.

Description

technical field [0001] The invention belongs to the technical field of real-time database file operation, and in particular relates to a method, system and storage medium for operating an archive file by using a virtual file handle. Background technique [0002] Real-time database According to the production needs of industrial enterprises, it is usually necessary to store the data collected during the production process in multiple archive files limited by the time range or space occupied, and the user calls the historical data in the archive files through the client or other visualization platforms , can clearly monitor the data of the production process, show the trend of production indicators, and extract a large amount of data for data analysis. As time progresses, the archive size of the real-time database will also continue to grow. Generally, archive files can be stored for several years or even more than ten years, and the number of files will reach tens of thousand...

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): G06F16/14G06F16/172G06F12/123
CPCG06F16/152G06F16/172G06F12/123
Inventor 何清王奕飞王毅谢贝贝刘茜何新
Owner XIAN THERMAL POWER RES INST CO LTD