Home > database >  A large number of key/value pair redis usage scenario
A large number of key/value pair redis usage scenario

Time:05-26

I want to record a sensor data, 100 values per second, I need to put the time and the corresponding values are stored by the
There are two main types of queries, priority shall, in accordance with the time range queries all data within a period of time, and then is the record of the query value beyond alarm,
Could you tell me how to store reading efficiency is higher with redis? The list string hash?

Use string, redis key a lot of time, efficiency, such as article 800 w I a day a sensor data, a set of 32 sensors, if use the string, a day to build 270 million key efficiency is not high?
If in the list, how to deal with the corresponding relation of time and the value, the hash, how to order the data, seek guidance
  • Related