couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Anderson (JIRA)" <>
Subject [jira] Commented: (COUCHDB-631) Replication by doc Ids
Date Wed, 27 Jan 2010 16:46:34 GMT


Chris Anderson commented on COUCHDB-631:

There's a better approach:

Instead of following _changes at all, just replicate the list of docs directly. Since we don't
keep old revs around, this won't be any different than normal replication (for those docs).

The #1 use case for this sort of thing is when you have a short list of docs you want to replicate
from a large database. If you traverse the by_seq index you have to look at all the docids
in the database. If you lookup the handlful of docs on your list, it's much faster.

> Replication by doc Ids
> ----------------------
>                 Key: COUCHDB-631
>                 URL:
>             Project: CouchDB
>          Issue Type: New Feature
>          Components: Replication
>         Environment: trunk
>            Reporter: Filipe Manana
>            Assignee: Chris Anderson
>            Priority: Minor
>         Attachments: replication-by-doc-ids-alternative-impl-2_trunk.patch, replication-by-doc-ids-alternative-impl_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.

View raw message