The invention provides a saving method and
system for
time series data based on a
key value database. The method comprises the steps that S1, original
time series data collected by a sensor is obtained, the original
time series data comprises a plurality of attributes, and the attributes comprise an equipment number, a sensor number, a sampling time, a receiving time and a measuring value; S2, according to the sampling time, the original time
series data is divided into a corresponding time partition, and time partition information of the original time
series data is obtained; S3, the multipleattributes and the time partition information are combined to generate target time
series data; S4, the equipment number, the sensor number and the time partition information are taken as first levelindexes, the sampling time is taken as a second level index, and the target time series data is saved in the
key value database. According to the saving method and
system for the time series data based on the
key value database, the time partition information is introduced, the method and the
system can adapt to different data sizes, data reading of non-query target is reduced, and a better timeseries
data query performance is obtained on the basis of assurance of high-performance data writing.