This invention relates to the field of
data processing technology, specifically to a
blockchain-based method and apparatus for storing
civil engineering test data. The method includes: acquiring
civil engineering test data stored on the
blockchain and real-time collected
civil engineering test data, and preprocessing it to obtain
analysis data; determining the importance,
access frequency, and final repetition rate of character data based on the
analysis data, and obtaining the encoding priority of the character data, adjusting the
Huffman coding table; compressing all civil
engineering test data according to the adjusted
Huffman coding table, and re-storing it in the
blockchain; and comprehensively adjusting the
Huffman coding table based on the obtained encoding priority of each character data, compressing the data, and re-storing it in the blockchain. This method reduces the amount of data while maintaining access speed, thereby improving the reading speed for high-access data during subsequent
data access.