How to control durability requirements of operations in nodejs sdk


#1

I wanted to understand how to control the durability of requirement for a given operation in couchbase. I experience data loss from time to time with a single couchbase instance on my local machine and I’m not sure why its happening. As a result I want to guarantee that every update is persisted to disk and see if I continue to experience data loss.


#2

Hey,

Pass the ‘persist_to’ option to any of your storage operations with a value of 1 to force it to be persisted to disk.

Cheers, Brett