The invention relates to the technical field of
data compression, and discloses a data storage method and
system for a process program operation
record and a storage medium, and the method comprises the following steps: S1, extracting an operation
record text during operation of a process program, reading the operation
record text, and determining a fixed character string; s2, fixed character strings of the running record text are removed through a maximum matching
algorithm, and variable character strings of the running record text are reserved; s3, constructing the variable character and the fixed character string through a Huffman tree to obtain a Huffman code; and S4, performing compression
processing on the operation record text by using
Huffman coding, and storing the compressed operation record text in a
database. The
lossless compression technology is realized, the text volume of the operation record is reduced, the storage space occupation of the
database is reduced, and the data storage pressure is relieved; and a sub-table storage strategy is adopted, compressed coded data is separated from dictionary data, and the
bottleneck of single-table
data expansion and
big data field operation is avoided.