data structures - Get multiple keys after a SCAN efficiency and performance -


say i've stored n hash keys:

company:entity:11

...where each sub-key entity field (i.e. name, id...).

using scan entity keys in given moment of time. usually there no more 100-2000 hash keys per entity type.

my concern using strategy means n (100-2000) hmget commands issued redis.

i know store data in per-entity hashes (i.e. company:entity) sub-keys entity ids , sub-values json-serialized entities. but, @ end of day, i'll need perform hscan against hashes.

is bad strategy in terms of performance , resource usage?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -