Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Small file storage method, query method and device

A technology of small files and files, applied in the computer field, can solve the problems of complex, long time to process small files, slow comparison speed, etc.

Inactive Publication Date: 2015-11-18
NETPOSA TECH
View PDF0 Cites 33 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the existing file system, the index file of small files usually stores the file name of the small file. When searching for files, the system needs to use the file name in the index file to compare with the file name provided by the user before locating the file. The location of the small file that the user is looking for, but the file name is generally a string of mixed English, Chinese and numbers, which is relatively complex and long, so the comparison speed is slow, resulting in a long time to return to the user for the small file to be processed

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
  • Small file storage method, query method and device
  • Small file storage method, query method and device
  • Small file storage method, query method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0107] see figure 2 , the present embodiment provides a small file storage method, the method includes the following steps:

[0108] Step 100. Acquire small files to be stored; wherein, the small files include files whose file size is smaller than a preset threshold.

[0109] In this embodiment, the small files generally include pictures, documents, music and other files that the user can obtain through the network. When the file system obtains the file to be stored, it will first determine whether the file to be stored is a small file through a set threshold.

[0110] The size of pictures, documents, music and other files generally ranges from several kilobytes (KB) to several megabytes (MB), so when setting the threshold for the size of small files stored in the file system, the threshold should not be set to is too large and can be set to any value between 7 and 10MB. Of course, the threshold can also be set to other values, which will not be repeated here.

[0111] Th...

Embodiment 2

[0142] see image 3 The specific flowchart of the shown small file storage method, the method includes the following steps:

[0143] Step 200. Acquire small files to be stored; wherein, the small files include files whose file size is smaller than a preset threshold.

[0144] When a user sees a small file such as a picture, document, or music he likes on the network, he can send an instruction to obtain the small file to the server or the operating system of the computer through the server where the file system is located or the input device of the computer. A small file acquisition command is issued to obtain the small file to be stored in the file system from the network.

[0145] The input device of the server or the computer may be any device such as a keyboard or a mouse that enables the user to issue an instruction for obtaining a small file to the operating system, and details will not be repeated here.

[0146] For example: when a user wants to store a song whose name ...

Embodiment 3

[0229] Corresponding to the above small file storage method, this embodiment also provides a small file query method, which is used in a file system, see Figure 8 , the method includes the following steps:

[0230] Step 300: Receive a small file query request from a user, where the small file query request includes the file name of the small file that the user wants to query; wherein, the small file includes a file whose file size is smaller than a preset threshold.

[0231] The small file query request sent by the user carries the attribute information of the small file. The attribute information of the small file includes but not limited to: the file name, data length and creation time of the small file. Therefore, after the file system receives the small file query request, it can obtain the file name of the small file from the attribute information of the small file.

[0232] Step 301. Calculate the hash value of the file name of the small file according to the received ...

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 provides a small file storage method, query method and device. The small file storage method comprises the following steps: acquiring a small file to be stored, wherein the small file comprises a file, the file size of which is less than a preset threshold; storing the obtained small file into a current packaged file and generating metadata of the small file, wherein the metadata of the small file comprises an file identification of the packaged file of the small file, position information of the small file in the packaged file and a data length of the small file; calculating an attribute value of the small file according to a file name of the small file, wherein the attribute value comprises a file name hash value; and storing the calculated attribute value and the metadata into an index subsystem as index files of the small file. Through the small file storage method, query method and device, the file names stored in index files in the prior art are replaced by file name hash values, so that the practicability of the index files and the query efficiency of the small files are improved.

Description

technical field [0001] The invention relates to the computer field, in particular to a small file storage method, query method and device. Background technique [0002] Small files generally refer to individual files ranging in size from several kilobytes (KB) to several megabytes (MB). There are a large number of small files such as pictures and documents on the existing network. When processing small files (such as editing or modifying pictures from the network), it is necessary to download the small files on the network to the user's local file system for storage, and then the stored small files can be processed. deal with. [0003] When the file system stores small files, generally after the file system stores the content and attribute information of the small files in the package file, the file name of the small file and the small file metadata formed after storing the package file are stored in the file system In the indexing subsystem of , as an index file for small...

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): G06F17/30
CPCG06F16/137G06F16/172
Inventor 周光明
Owner NETPOSA TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products