On Oct 8, 2014, at 2:27 PM, Traun Leyden <tle...@couchbase.com> wrote:When I do a POST/PUT to Sync Gateway, does the call return after it's been "fsync'd" on Couchbase Server, or is it more "fire and forget"?
--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/1C769754-EE1A-422C-92F6-505212124D49%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.
On Oct 9, 2014, at 9:59 AM, Traun Leyden <traun....@gmail.com> wrote:I talked to the couchbase server support folks, and they pointed me to the options for the Set command which control whether it's persisted to disk or not before returning.@StevenBarlow: so to get what you were asking for (at least partially), you'd want to make sure those write options were set to Persist.
I'm confused. The initial question was about a PUT to Sync Gateway. But the answer above is about writing directly to Couchbase Server (using the go-couchbase library.) Those are very different things.
At the Sync Gateway REST API level, if we were to add an option to wait for persistence it should be implemented as a handler for /db/_ensure_full_commit, which is the CouchDB equivalent. (The handler actually exists already but currently does nothing.)
On Oct 9, 2014, at 11:44 AM, Traun Leyden <traun....@gmail.com> wrote:His concerns focus around application correctness and take priority over performance.Would modifying Sync Gateway to set WriteOptions=Persist achieve this?