database - REDIS: Numeric keys (1,2,3..) vs compressed keys (A9z3,A9z4..)? -


we having fun redis on nodejs server - great combo btw. question out of curiosity , should treated "in theory".

is there performance difference between storing values on numeric keys (1,2,3,4...) on compressed keys (a9z3,a9z4,a9z5...). i'm thinking select speed in database 2 million keys.

i hope question not damn stupid, best regards ;)

if storing keys list or string, there should no performance difference, integers stored same way strings in memory. so, there no noticeable performance difference when selecting string or integer.

memory wise, compressed keys have less overhead in memory "because small keys , values there lot of overhead." talking bytes here. (http://redis.io/topics/faq)


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -