Your hunch is correct, that is: hash-max-zipmap-value is the length of
the largest value in a hash for the entire hash to be encoded as a
zipmap. Whenever a value is changed, or added to the hash, and exceeds
this length, the internal representation of the hash is changed to use
a hash table instead of a zipmap. The hash-max-zipmap-entries is
similar in that aspect, only with respect to the number of field/value
pairs stored in the hash.
These limits are only thresholds. Redis does not use them to
pre-allocate memory. If you have hash-max-zipmap-value set to 950 and
store a value of length 1, that will only consume the amount of memory
necessary to represent it, not 950 bytes. Hashes represented as zipmap
are always stored as compact as possible.
Cheers,
Pieter
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
>
>
Regards,
- Josiah
- Josiah
These limits are only thresholds. Redis does not use them to pre-allocate memory... Hashes represented as zipmap are always stored as compact as possible.
--
You received this message because you are subscribed to a topic in the Google Groups "Redis DB" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/redis-db/9qM9iSeRAA4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to redis-db+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.