The invention relates to the technical field of
data compression and storage, and discloses a
monitoring data compression and storage method driven by a
time sequence database, comprising the following steps: S1, preprocessing multi-source
monitoring data, and constructing a dynamic
tensor comprising a
timestamp, a numerical index and a multi-dimensional
label; s2, performing dynamic dimension reduction
processing on the dynamic
tensor to generate a core
tensor and a multi-dimensional
factor matrix; s3, based on the core tensor and the multi-dimensional
factor matrix, determining a compression parameter, a decompression parallelism degree and an index
granularity through a joint optimization model; and S4, performing
hierarchical coding on residual data generated by the dynamic dimension reduction
processing to generate a lightweight
residual coding result. Through a dynamic
tensor decomposition and incremental updating technology, low storage overhead and real-time dimension expansion capability of streaming
monitoring data are realized, the problems of calculation redundancy and storage expansion caused by the fact that the streaming monitoring data cannot adapt to dynamic newly-added tags are solved, and meanwhile, frequent reconstruction cost caused by data dynamic expansion is avoided.