Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conflict management: About arbitrarily choosing the "winning" revision... #524

Open
jblancka opened this issue Dec 20, 2014 · 0 comments
Open

Comments

@jblancka
Copy link

http://guide.couchdb.org/draft/conflicts.html

"The choice of picking the winning revision is arbitrary."

If I understand the winner picking algorithm well, it picks the revision with the highest revision number when replicating (it is thus not really arbitrary). However, I understand the use of the word "arbitrary" in this sentence, since this is not something you should rely on. Although it can seem confusing to CouchDB beginners. I started with a CouchDB project and kept wondering why the algorithm always picked the revision of the source database as the winner and never the target one. It was because my application only updated the source and never the target. Which on its turn causes the source always to have the highest revision number. The source thus always won.
A note next to the term "arbitrary" might be appropriate (in the sense of "arbitrary, but..."), to prevent unnecessary headache for people who start out with CouchDB.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant