[
https://issues.apache.org/jira/browse/COUCHDB-631?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Filipe Manana updated COUCHDB-631:
----------------------------------
Attachment: replication-by-doc-ids-alternative-impl_trunk.patch
An alternative implementation of this feature.
Instead of doing the document filtering in couch_rep_missing_revs.erl, after
the full Changes list has been downloaded from the source DB (if it's a remote
DB), the filtering is done by the filter function used in
couch_httpd_db:handle_changes_req/2.
This avoids downloading the whole Changes list from the remote source DB, and
it's more logical to do the doc filtering there (so it seems to me).
Also, it adds the query parameter "doc_ids" to the _changes API (the value of
this option is a comma separated list of doc IDs).
The implementation of the first submitted patch has only the advantage of being
shorter.
@Chris, @Adam, @Paul
what are your opinions?
cheers
> Replication by doc Ids
> ----------------------
>
> Key: COUCHDB-631
> URL: https://issues.apache.org/jira/browse/COUCHDB-631
> Project: CouchDB
> Issue Type: New Feature
> Components: Replication
> Environment: trunk
> Reporter: Filipe Manana
> Priority: Minor
> Attachments: replication-by-doc-ids-alternative-impl_trunk.patch,
> replication-by-doc-ids_trunk.patch
>
>
> The following patch adds support for the optional "doc_ids" attribute (array
> of strings) of a JSON replication object.
> The idea was suggested recently by Chris Anderson in the dev mailing list.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.