Choose between HINCRBY and INCR for redis -


i have forum , want save , show topics' view count using redis. seems have 2 methods this: hincrby , incr. should choose? , why?( given have 10,000,000 topics in total )

with hincrby can use 1 key keep values, hash big. incr i'll have many keys.

if use hashes (so go hincrby) can reduce memory footprint if can use multiple hashes instead of one: http://redis.io/topics/memory-optimization#using-hashes-to-abstract-a-very-memory-efficient-plain-key-value-store-on-top-of-redis
have find way of distributing keys multiple hashes, not one, example these guys found way: http://instagram-engineering.tumblr.com/post/12202313862/storing-hundreds-of-millions-of-simple-key-value


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -