Time series data storage method and device
A time-series data and data technology, applied in database indexing, database update, electronic digital data processing, etc., can solve problems such as server crashes easily, achieve the effects of improving throughput, reducing read amplification, and reducing writing overhead
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0026] A method for storing time-series data includes the following steps: splitting original data into different data sets and writing them into different sub-tables; writing the sub-tables into a time-series database; to different sub-tables for compressed storage, reducing the total amount of compressed data, greatly reducing the write overhead, and improving the throughput of the time-series database as a whole; writing sub-tables into the time-series database uses the existing time-series data written into the time-series database The method is a mature prior art, so it will not be repeated here.
Embodiment 2
[0028] Such as figure 1 As shown, on the basis of Embodiment 1, this embodiment further divides the original data measurement columns into different measurement column subsets according to the set number of measurement columns after sorting the original data measurement columns according to the column name hash; the original data includes index columns Set and time columns, combine the index column set, time column and measurement column subsets into new data, write the data into sub-tables; write the data into different sub-tables after splitting and reorganizing, and then compress, reducing the data amount, and also reduces the total amount of compressed data.
Embodiment 3
[0030] Such as figure 2 As shown, this embodiment is further based on Embodiment 1. After the data is written into the sub-table, the key is extracted according to the set label, and the data is compressed according to the timestamp through the extracted key, and Compress_Block is generated after compression; ey and The following data block is written into the KV engine as a KV, and the last timestamp of each Compress_Block is used as the column name; the data is written into the subtable through the above method.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


