File storage method and device
The invention provides a file storage method and device, and is used for solving the problems that fragments or overflowing is always caused since a traditional file storage way is unreasonable and file query efficiency is low. The method comprises the following steps: according to the size of a rec...
Gespeichert in:
Hauptverfasser: | , , , , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention provides a file storage method and device, and is used for solving the problems that fragments or overflowing is always caused since a traditional file storage way is unreasonable and file query efficiency is low. The method comprises the following steps: according to the size of a received file uploaded by a client side, storing the content data of the file into at least one file storage block; obtaining the information of the file storage block which stores the content data; according to the information of the file storage block, generating metadata corresponding to the content data; and storing the metadata of the file into a preset storage space. The disk fragments or overflowing caused in a way that all content data of the file is directly stored into the corresponding storage space as a whole can be avoided, a storage mode is more reasonable, the metadata is independently stored, and therefore, the metadata of the file can be uniformly managed so as to improve the query efficiency of a sub |
---|