Set Over Existing Keys in 90% Full Bucket
Wed, 02/27/2013 - 08:49
I am unable to reset keys in a bucket that is 90% full. Is this because it doesn't actually reset keys, it writes new keys taking up twice as much space then moves the pointer? When do the old keys expire? I've got a large data set I need to update daily. I can't afford to have 2 to 3x the size of the data set in free ram allocated just to accommodate the set operation. Is there another way to achieve what I'm trying to do? Ideally overwriting keys in real time in a ram neutral way? I don't care if I use extra disk space.
We never rewrite any keys, but each time you add a new key Couchbase requires the key and meta data to stay in memory. Old values are also removed from memory when you add a new value for a given key. If you call flush on a cluster then all keys should be deleted.
What are your cluster specs and can you explain your use case in more detail?