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

File classification retrieval method and system based on KV database

A file classification and database technology, which is applied in the field of database retrieval, can solve problems such as difficult to realize file classification management and retrieval, increase hardware cost, etc., and achieve the effects of small space occupation, reduced hardware cost, and strong scalability

Active Publication Date: 2020-04-21
TIH MICROELECTRONIC TECH CO LTD +1
View PDF8 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Embedded devices are relatively rich in hardware storage resources, and have relatively small restrictions on the use of databases. However, for devices with scarce hardware resources, the use of databases is limited by the size of the burning files and the size of the memory, so it is difficult to realize the storage of a large number of files. Category Management and Search
[0004] Although the current NAS products are equipped with relatively abundant hardware resources and can use a powerful relational database like sqlite, this increases the hardware cost of the product

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 classification retrieval method and system based on KV database
  • File classification retrieval method and system based on KV database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] This embodiment discloses a kind of file classification retrieval method based on KV database, comprising:

[0046] Step 1: Create a corresponding number of folders in advance according to the number of file types, each folder stores multiple database files, and multiple database files under each folder are used to record file information of a file type .

[0047] Specifically, the database files under each folder only record the corresponding type of file information. Moreover, N database files are created in each folder; in this embodiment, the database files in each folder are numbered from 0 to N-1, where N is an integer, and the reasonable value range is 5-100 , but not limited to this range, take N to be 11 in this example.

[0048] The database files are all KV database files, including multiple key-value pairs (Key-Value). Among them, the key (Key) is used to record the file path, and the value (Value) is used to record the number of files under the correspon...

Embodiment 2

[0061] The purpose of this embodiment is to provide a kind of file classification retrieval system based on KV database, comprising:

[0062] The folder creation module creates a corresponding number of folders in advance according to the number of file types;

[0063] A database file creation module, each folder stores multiple database files, and the multiple database files under each folder are used to record file information of a file type;

[0064] The database file editing module writes the file information of all files into the database file in the corresponding file type folder;

[0065] The file query module receives a file type query request and performs file query according to the database file.

Embodiment 3

[0067] The purpose of this embodiment is to provide an electronic device.

[0068] An electronic device, comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, when the processor executes the program, the following steps are implemented, including:

[0069] Create a corresponding number of folders in advance according to the number of file types, each folder stores multiple database files, and multiple database files under each folder are used to record file information of a file type;

[0070] Write the file information of all files into the database file in the corresponding file type folder;

[0071] Receive file type query requests, and perform file query based on database files.

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 classification retrieval method and system based on a KV database. The method comprises the steps: creating folders with the corresponding number in advance according tothe number of file types, and storing multiple database files in each folder, wherein the multiple database files in each folder are used for recording file information of one file type; writing thefile information of all the files into database files in corresponding file type folders; and receiving a file type query request, and performing file query according to the database file. According to the method, on the basis of a small and efficient KV database and optimization of memory usage, classification retrieval of a large number of files is achieved under the condition that hardware resources are limited, and the hardware cost of NAS products is reduced.

Description

technical field [0001] The invention belongs to the technical field of database retrieval, and in particular relates to a file classification retrieval method and system based on a KV database. Background technique [0002] The statements in this section merely provide background information related to the present disclosure and do not necessarily constitute prior art. [0003] NAS (network attached storage) is a dedicated data storage server that enables users to access data conveniently through the network, and unlike cloud disks, its storage medium is actually in the hands of users, with good confidentiality and safety. In order to manage a large number of files stored by users, it is generally necessary to classify the files to facilitate users to retrieve different types of files. Generally speaking, NAS will use a database to implement file classification. Embedded devices are relatively rich in hardware storage resources, so the restrictions on the use of databases...

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/16G06F16/13
CPCG06F16/148G06F16/13G06F16/16Y02D10/00
Inventor 王广祯李冠卢方勇
Owner TIH MICROELECTRONIC 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