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

File management method and device

A file management method and technology for indexing files, which are applied in the field of file management methods and devices, can solve the problems of inconvenient programming operation, poor processing effect, and do not support distributed access, etc., and achieve high file processing efficiency, easy reading and writing. delete effect

Active Publication Date: 2020-07-28
TENCENT TECH (SHENZHEN) CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Hadoop is limited by its own architectural factors, and its efficiency is low when processing small files, and programming operations are inconvenient, which limits its implementation only in java.
For ReiserFS, it does not support distributed access, and due to its own architectural factors, the processing effect is poor when the number of small files is too large

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
  • File management method and device
  • File management method and device
  • File management method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0027] Before explaining and describing the embodiment of the present invention in detail, the implementation scenarios involved in the embodiment of the present invention are briefly introduced.

[0028] In order to meet the requirement of caching a large amount of small audio files, the embodiment of the present invention designs a distributed management method of small audio files based on MD5 (Message Digest Algorithm MD5, message digest algorithm fifth edition) hash operation. Wherein, the small audio file (the audio file mentioned in the embodiment of the present invention) may be a file smaller than 4KB or 8KB, which is not specifically limited in the embodiment of the present invention. The small audio file is obtained by conve...

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 file management method and device, and belongs to the field of distributed technology. The method includes: acquiring a text length value of text data matching an to-be-stored audio-frequency file; determining a first index file in at least one created index file according to the text length value, wherein the first index file is used for storing index data of audio-frequency files matching the text length value; writing a hash identifier of the text data into the first index file; and writing the audio-frequency file into a data file corresponding to the first indexfile, and writing a storage address of the audio-frequency file into the first index file. According to the method, storage management, based on the text length value and the hash identifier of the text data, on the audio-frequency file is realized through dividing the index files according to text length values of text data and carrying out hash operating on the text data of the audio-frequency file, programming operations are convenient, distributed accessing is supported, and file processing efficiency is higher.

Description

technical field [0001] The invention relates to the field of distributed technology, in particular to a file management method and device. Background technique [0002] Today, with the rapid development of Internet technology, more and more information is processed digitally, which leads to geometric growth of small files such as pictures, emails, e-books, and Internet files. For example, a large social network provides as much as 60TB of image data per week alone. In the face of a large number of small files, in order to ensure the disk access efficiency of the server, how to safely and effectively manage the large number of small files has become an important issue that those skilled in the art must face. [0003] In HDFS (Hadoop Distributed File System, Hadoop Distributed File System), file archiving technology builds a hierarchical file system on HDFS, and manages storage by packaging small files into HAR files to reduce the number of files in HDFS. Quantity; and Seque...

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): G06F16/68
CPCG06F16/686
Inventor 陆云飞
Owner TENCENT TECH (SHENZHEN) CO LTD
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