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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com