Key + Value Bloat #38
-
i'm trying to decide whether it's worth shaving a few dozen bytes off some of my values... but i assume the minimum size of a value on disk is equal to either the physical or logical block size (as compacting would probably serve little practical value)? or maybe 4096 so that it's not device dependent? and are the key and value put on the same block when possible or? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Values are packed tightly together and are not tied to the device block size, so with enough value data in the system you will realize the savings. I also recommend specifying value compression for your KVS. Keys and values are stored separately, except in the case of tiny values (<= 8B) which are stored with their corresponding keys. |
Beta Was this translation helpful? Give feedback.
Values are packed tightly together and are not tied to the device block size, so with enough value data in the system you will realize the savings. I also recommend specifying value compression for your KVS.
Keys and values are stored separately, except in the case of tiny values (<= 8B) which are stored with their corresponding keys.