Method and system for improving storage efficiency of simple regenerating codes by compression

The invention is applicable to the field of data processing, and provides a method and a system for improving the storage efficiency of simple regenerating codes by compression. The method includes the steps: acquiring a file to be compressed, and processing the file to be compressed according to the relationship among the size of the file to be compressed, a preset file size threshold value and the size of a data block; setting a compression algorithm according to the size of the data block of the file to be compressed; compressing verifying blocks obtained by encoding the simple regenerating codes for the file to be compressed according to the compression algorithm; storing the compressed verifying blocks to storage nodes. The storage efficiency of the simple regenerating codes can be improved, and fault tolerance and reliability of the system are kept.