Re:From 1.5 GB to 50 MB: The Story of my Redis Database
by gtrubetskoy on Thursday March 21, 2013 @03:05PM
(#5417933)
If the values you are storing are integers, you should also look at your zset-max-ziplist-entries config setting. I've been able to shrink a 30GB Redis memory footprint to just under 3GB. The caveat is that all search operations in ziplists are sequential (since it uses variable-length strings and integers), but oftentimes scanning a short array is as fast or faster than hashing or locating an entry in a skiplist. There is more details about this here http://redis.io/topics/memory-optimization, and I've submitted a patch to Redis that makes it even more efficient (https://github.com/antirez/redis/issues/469).
[ Parent
| on HN ]
There are no comments on this comment yet.