persist and cache...
Wed, 08/22/2012 - 08:45
If I persist my object as JSON to couchbase using expiration time of zero, does the JSON data persist in memory, and then eventually written to disk, or is it written to disk immediately? Reason... trying to decide if I gain anything by creating a separate memcache bucket to make sure certain objects are pulled from memory for faster retrieval times.
Thanks
-Mark
1) The data is store in memory and then eventually written to disk.
2) All recently used objects are cached so you should see the same performance as when you use memcached for keys that are already in memory. If a key is on disk then the access will be slower, but the key will be brought into memory so that subsequent accesses are fast.