Distributed file storage and reading method, terminal equipment and storage medium

A distributed file and file storage technology, which is applied in the direction of instruments, computing, and electrical digital data processing, etc., can solve the problems of large memory space, many files, and affecting the efficiency of file reading, so as to improve writing efficiency and reduce The effect of IO processing

Active Publication Date: 2020-12-25
XIAMEN YUEXUN INFORMATION TECH CO LTD
View PDF7 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] Most of the existing file storage methods are stored in a single folder or single user single folder, resulting in t

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
  • Distributed file storage and reading method, terminal equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0024] The embodiment of the present invention provides a distributed file storage and reading method, such as figure 1 As shown, it includes two processes of file storage and file reading.

[0025] File storage includes:

[0026] Step 1: Generate a fixed-length unique file identifier for the file to be stored according to the server ID of the file to be stored, the date contained in the file storage request information, and a random code.

[0027] In this embodiment, the unique identifier of the set file includes 39 bits, wherein:

[0028] The first bit is a reserved bit. In this embodiment, the first bit is used to store the value representing the type of file storage request information. If the type of the request information is set to HTTP type, the value is 0, and if it is HTTPS type, the value is 0. 1.

[0029] The second and third bits are used to store the server ID, encode the server ID in hexadecimal, and store the result in the adjacent two bits uniquely identifi...

Embodiment 2

[0050] The present invention also provides a distributed file storage and reading terminal device, including a memory, a processor, and a computer program stored in the memory and operable on the processor, and the processor executes the computer program The steps in the above method embodiment of Embodiment 1 of the present invention are realized at the same time.

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 relates to a distributed file storage and reading method, terminal equipment and a storage medium. The method comprises the steps of generating a file unique identifier of a to-be-storedfile with a fixed length according to a to-be-stored server ID of the file, a date contained in file storage request information and a random code; constructing a multi-layer folder in a server corresponding to the server ID according to the date and the random code, and storing the to-be-stored file in the last-layer folder; returning the file unique identifier of the to-be-stored file to a client for storage; and extracting a server ID and a folder address stored in the file according to the unique file identifier sent by the client to form a final file storage address, extracting the fileaccording to the final file storage address, and sending the file to the client. According to the method, the file is directly read and written by using the file code, and no database read-write operation is performed in the whole read-write process, so that IO processing is reduced, and the file write-in efficiency and the retrieval efficiency during read-write are improved.

Description

technical field [0001] The invention relates to the field of file storage, in particular to a distributed file storage and reading method, a terminal device and a storage medium. Background technique [0002] Most of the existing file storage methods use a single folder or a single user single folder to store, resulting in too many files in a single folder and taking up too much memory space, which seriously affects the efficiency of file reading. Contents of the invention [0003] In order to solve the above problems, the present invention proposes a distributed file storage and reading method, a terminal device and a storage medium. [0004] The specific plan is as follows: [0005] A distributed file storage and reading method, comprising the following steps: [0006] Generate a fixed-length file unique identifier for the file to be stored according to the server ID of the file to be stored, the date contained in the file storage request information, and the random co...

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): G06F16/182G06F16/172
CPCG06F16/182G06F16/172
Inventor 杨洋乐高鑫
Owner XIAMEN YUEXUN INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products