摘要 |
The present invention provides a data storage method, a query method and device. The storage method includes: receiving data records to be stored; when the data records include a time stamp, a numerical value generated at the point in time identified by the time stamp, and a first identification value combination identifying the numerical value, then in accordance with a user's query requirements, preprocessing the data records, obtaining a target numerical value and a target time meeting the query requirements and a second identification value combination functioning as a query condition, storing correspondingly a storage identification representing the second identification value combination, the target time and the target value into a second information table, and storing the first identification value combination into a first information table. The present invention can reduce the workload of creating and maintaining secondary indexes, help to improve the speed of data storage and query, and improve the performance of the storage system. |