Comments for post Redis weekly update #7 - Full of keys

charles liu writes: if enable vm ,may be cause a problem: cold key and hot key may in the same zipmapSet, cold key can not be swapped . any body can resolve my guess?
Gerald writes: I am curious about how you calculated these numbers? ----------------------------------------------- * Space needed to store 10 million keys as normal keys: 1.7 GB (RSS) * Space needed to store 10 million keys with this trick: 300 MB (RSS) ----------------------------------------------- Thanks!
Louie writes: I've posted a link to the google group thread for the answer to my question. It always bugs me when a google search returns a question with no answer. http://groups.google.com/group/redis-db/browse_thread/thread/39ba2023be2694bb# Enjoy
Louie writes: How can we do this for an mget command? We would need to issue multiple hmget's to get all the keys. Is there an easier way?
Louie writes: I've done the same for python import hashlib,redis sha1 = hashlib.sha1 class RedisWrapper(redis.Redis): def get_hash_name(self,key): return sha1(key).hexdigest()[:4] def exists(self,key): return self.hexists(self.get_hash_name(key)) def get(self,key): return self.hget(self.get_hash_name(key),key) def set(self,key,value): self.hset(self.get_hash_name(key),key,value) def incrby(self,key,incr): self.hincrby(self.get_hash_name(key),key,incr)
mime writes: Wondering why the exists function only checks whether an entry exists with the same four first digits in the hash. That entry might have different key. So the check seems incomplete.
antirez writes: @Aaron: thanks! Redis 2.0.0 is at this point really near. The same for the feature freeze of Redis 2.2.
Aaron Quint writes: Glad you had a great vacation! Looking forward to Redis 2.0 and putting it in production :)
home