couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jens Alfke (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-1584) Allow passing of open_doc parameters to _all_docs
Date Thu, 01 Nov 2012 18:37:12 GMT


Jens Alfke commented on COUCHDB-1584:

This may actually not be sufficient to let the replicator fetch revisions in bulk. The problem
is that _all_docs takes an array of docids, but not revids — so the caller has no control
over which revision of a document to get; they'll always get the winning one. So
(a) If a document is in conflict, the replicator will still have to use single-revision GETs
to fetch the non-winning revision(s).
(b) There can be race conditions where a document is updated after the _changes feed is sent,
so the _all_docs request will return that new revision, not the one the replicator knows about.

I don't think either of these cases will be all that common; it just means the replicator
will have to be a bit careful to check the revids in the response from _all_docs, and possibly
fetch some revisions one-by-one if it didn't get the right ones.
> Allow passing of open_doc parameters to _all_docs
> -------------------------------------------------
>                 Key: COUCHDB-1584
>                 URL:
>             Project: CouchDB
>          Issue Type: New Feature
>    Affects Versions: 1.2
>            Reporter: Jan Lehnardt
>            Priority: Minor
> GET /_all_docs should take the same arguments as GET /db/doc
> /_all_docs?revisions=true
> /_all_docs?revs_info=true
> See for details

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message