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

A path-based file search method and device

A search method and path technology, applied in the computer field, can solve the problems of large storage space, decreased search performance, slow query and update efficiency of path partition mapping table, etc., and achieve the effect of saving storage space and improving file retrieval performance.

Active Publication Date: 2018-05-04
CHENGDU HUAWEI TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] Embodiments of the present invention provide a path-based file search method and device, which are used to solve the problems in the prior art that the path partition mapping table is large in scale and occupies a large storage space, and the query update efficiency of the path partition mapping table is relatively low. Slow and degraded search performance issues

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 path-based file search method and device
  • A path-based file search method and device
  • A path-based file search method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0066] Using the path-based file search method provided by the present invention, by obtaining the path of the file to be queried, and storing each partition information and the corresponding relation of the absolute path with the largest lexicographical order in the partition corresponding to each partition information, the path partition mapping table , take the dictionary order of the path of the file to be queried as the dictionary order to be queried; and determine the corresponding absolute path dictionary order according to each absolute path in the path partition mapping table; based on the dictionary order to be queried, the dictionary order of all absolute paths Search in , obtain the smallest absolute path lexicographic order greater than or equal to the lexicographic order of the absolute path to be queried, and use the absolute path corresponding to the obtained absolute path lexicographic order as the target absolute path; according to the obtained target absolute ...

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 search method and device based on a path to solve the problems that in the prior art, a path partition mapping table is large in scale, the occupied storage space is large, and the file search performance descends. The method comprises the steps that a path partition mapping table storing the corresponding relation of partition information and the absolute path with the maximum lexicographical order in partitions corresponding to the partition information is obtained; retrieval is carried out on the absolute paths of the path partition mapping table, and the absolute path with the minimum lexicographical order in the absolute paths with the lexicographical order larger than or equal to the lexicographical order of the path of a file to be inquired is obtained and serves as a target absolute path; according to the target absolute path and the path partition mapping table, a file set to which the file to be inquired belongs is determined. Thus, the number of data items in the path partition mapping table for searching for the file set is small, the storage space is greatly saved, and meanwhile the file retrieval performance and the inquiry updating efficiency of the path partition mapping table are improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a path-based file search method and device. Background technique [0002] The traditional file system is a metadata management structure based on a directory tree. By constructing a directory tree for all files in the file system, refer to figure 1 As shown, the file management is performed by retrieving the directory tree, and the management method based on the directory tree structure is suitable for scenarios where the files and directories in the file system are not large in scale. [0003] In today's massive file system, the scale of managed files reaches millions or even hundreds of millions. Obviously, the traditional management method based on directory tree structure is far from meeting the performance requirements of file retrieval for massive files. In order to solve this problem, the massive file system is usually partitioned by directory tree, see figure 2 As sh...

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/30
CPCG06F16/13G06F16/148
Inventor 薛贞文张程伟于传帅
Owner CHENGDU HUAWEI 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