The invention provides a
time series data storing and querying method and a storing and
processing platform, and relates to the technical field of databases. The
time series data storing and queryingmethod and the storing and
processing platform are applied to a
database, and the
database comprises an indexing file and a
data file. The
time series data storing method comprises the following steps: receiving time
series data to be stored and compressing the time
series data to obtain compressed time
series data; writing the compressed time series data to the
tail of a
data file; determining the offset,
timestamp and data length of the compressed time series data; and when the compressed time series data are written successfully, constructing an index entry according to the
timestamp, offset and data length, and writing the index entry to the
tail of an index file. An embodiment of the invention aims to provide the time series data storing and querying method and the storing and
processing platform so as to rapidly store, query and process a bulk of time series data, and
time series database service which is high in disaster tolerance ability, convenient to use and efficient is provided.