I wanted to confirm the differences between PeristTo and ReplicateTo since they sound kind of similar and the docs aren’t entirely clear from what I’ve read.
ReplicateTo seems mostly straight forward. A given document only has a single “master” node so this setting specifies that x number of other nodes must also replicate the document.
PesistTo is what I’m a bit vauge on since I’m not sure what "persist’ means. Obviously it can’t simply mean that the document is stored on those nodes, because that’s what the ReplicateTo setting appears to refer to. Therefore I assume that it references the difference between having the document stored in RAM or Disk. Does the PersistTo setting mean specifically that the given number of nodes don’t just have the document stored in their memory, but that they have also stored it on their disk as well?
persistedto … will not return untill it writes to memory and to disk.
replicateto – will return when the number of repilca have been created.
FOUR
Persist to at least four nodes including Master.
MASTER
Persist to the Master.
ONE
ONE implies MASTER.
THREE
Persist to at least three nodes including Master.
TWO
Persist to at least two nodes including Master.
ZERO
Don’t wait for persistence on any nodes.
Did not know there was a real difference between the two. I just do comments b/c when I’m writing my post … the original question is above the textarea box.
I would assume this should work like StackOverflow where you comment if you just need to clarify the question, but you answer if you are actually answering what was asked. Otherwise, the question still shows as having zero answers on the question list and I can’t upvote your answer as helpful.
@Brad: about the way to improve the documentation, I have a logged a doc bug available here : http://www.couchbase.com/issues/browse/MB-8669 - feel free to comment/add stuff if needed.