Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for 
change notification.

The "Replication_and_conflicts" page has been changed by BrianCandler.
The comment on this change is: include_docs doesn't include _conflicts.
http://wiki.apache.org/couchdb/Replication_and_conflicts?action=diff&rev1=7&rev2=8

--------------------------------------------------

  
  = Working with conflicting documents =
  
- == HTTP API ==
+ == Single document API ==
  
  The basic `GET /db/bob` operation will not show you any information about
  conflicts. You see only the deterministically-chosen winner, and get no
@@ -263, +263 @@

  revisions explicitly. This can be done using a single POST to _bulk_docs, 
setting
  `"_deleted":true` on those revisions you wish to delete.
  
- == View API ==
+ == Multiple document API ==
+ 
+ You can fetch multiple documents at once using `include_docs=true` on a view. 
However,
+ a `conflicts=true` request is ignored; the "doc" part of the value never 
includes a
+ `_conflicts` member. Hence you would need to do another query to determine 
for each
+ document whether it is in a conflicting state.
+ 
+ {{{
+ $ curl 
'http://127.0.0.1:5984/conflict_test/_all_docs?include_docs=true&conflicts=true'
+ {"total_rows":1,"offset":0,"rows":[
+ 
{"id":"test","key":"test","value":{"rev":"2-b91bb807b4685080c6a651115ff558f5"},
+ 
"doc":{"_id":"test","_rev":"2-b91bb807b4685080c6a651115ff558f5","hello":"bar"}}
+ ]}
+ $ curl 'http://127.0.0.1:5984/conflict_test/test?conflicts=true'
+ {"_id":"test","_rev":"2-b91bb807b4685080c6a651115ff558f5","hello":"bar",
+ 
"_conflicts":["2-65db2a11b5172bf928e3bcf59f728970","2-5bc3c6319edf62d4c624277fdd0ae191"]}
+ 
+ }}}
+ 
+ == View map functions ==
  
  Views only get the winning revision of a document. However they do also
  get a _conflicts member if there are any conflicting revisions.  This means

Reply via email to