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

Data storage method and apparatus

A technology for storing data and storage locations, applied in the field of data processing, can solve problems affecting data storage and query, low efficiency, etc., and achieve the effect of improving query efficiency and data storage speed

Inactive Publication Date: 2016-10-12
ZHEJIANG DAHUA TECH CO LTD
View PDF5 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a method and device for storing data, which is used to solve the problem of managing directories in the form of directory trees when data is stored in the existing distributed file system, which requires multiple recursive searches to find available directories, which is inefficient. High, problems that affect the normal data storage and query process

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 storage method and apparatus
  • Data storage method and apparatus
  • Data storage method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] The embodiment of the present invention determines at least one free directory among all directories corresponding to the bitmap according to the attribute information of the directory corresponding to the position node stored in each position node of the bitmap, wherein each directory corresponds to the A location node, the free directory is a directory where data can be stored in the corresponding storage location; the data that currently needs to be stored is stored in the storage location corresponding to the determined free directory. Since it is possible to find free directories that can store data according to the attribute information of the directory corresponding to the location node stored in each location node of the bitmap, it does not require multiple recursive searches to find the available directories, compared to the directory tree The management method improves query efficiency and data storage speed.

[0050] Among them, the embodiment of the present inv...

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

Embodiments of the invention relate to a data storage method and apparatus, which is used for solving the problem of low efficiency due to the fact that an available directory can be found only through multi-time recursive search in a mode of managing the directory in a directory tree form during data storage in an existing distributed file system. The method comprises the steps of determining at least one idle directory in all directories corresponding to a bitmap according to attribute information of a directory stored in each position node of the bitmap and corresponding to the position node, wherein each directory corresponds to one position node in the bitmap; and storing data required to be stored currently in a storage position corresponding to the determined idle directory. According to the data storage method and apparatus, the idle directory capable of storing the data can be searched for according to the attribute information of the directory stored in each position node of the bitmap and corresponding to the position node, and the available directory can be found without the multi-time recursive search, so that compared with the directory tree management mode, the query efficiency is improved and the data storage speed is increased.

Description

Technical field [0001] The present invention relates to the field of data processing, in particular to a method and device for storing data. Background technique [0002] With the development of computer technology, the number of directories stored in a distributed file system generally grows rapidly. When there are a large number of directories in a distributed file system, how to store and manage these directory information becomes a big problem. In the prior art, user-mode files are divided into blocks and stored in different data nodes, and these blocks are one file for the data node. In order to conveniently manage these files, the data node needs to store the files in a still free directory, so as to avoid a directory that is too large, which causes the file search and opening process to be too time-consuming. At the same time, in order to avoid storing a directory, it needs to be stored in different levels of directories regularly. If data is used for a specified data di...

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
IPC IPC(8): G06F17/30
CPCG06F16/182G06F16/13
Inventor 江文龙周明伟
Owner ZHEJIANG DAHUA TECH 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