摘要 |
A method and system for optimizing data storage in a storage device. A trigger corresponding to predefined events is received, initiating the optimization of file storage in a storage device. The files are sorted into a list of candidate files according to metadata corresponding to each of the files. A subset of the sorted list of files is selected for compression, based on the position of the candidate files in the sorted list of candidate files. The files comprising the subset of sorted files is compressed by reducing the files in size. The metadata corresponding to the compressed files is updated to reflect the event of the compression.
|