Search for the value (Node.js + Redis)?

In Redis storing a large number of objects (HMSET):

{
size:6
.....
}


Need to do an asynchronous search on the field size of objects (e.g., size >= 4), find the first match and stop the search (not to ship the server with a large number of objects ~100k).

In a relational database this can be done with 1 SQL query in NodeJS+Redis need? to retrieve the entire collection of objects from Redis and pass it manually. The situation is complicated by asynchrony, kavakami and error handling during the extraction of data from Redis.

Tell me, please, about how to realize this task with the help of Node.JS?

Thank you.
July 9th 19 at 11:29
1 answer
July 9th 19 at 11:31
redis - key-value store, what search?
In Your case it is better to use dokumentarci (mongodb, rethinkdb, etc.)

Find more questions by tags AlgorithmsNode.jsRedisServer optimization