couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Hahn <m...@hahnca.com>
Subject Re: Filtered Replication Question
Date Sun, 17 Jun 2012 22:59:21 GMT
You will have to have the "pinned" field in each doc.  Then you can easily
use that in a replication filter.  You cannot access other docs when
filtering.

On Sun, Jun 17, 2012 at 3:31 PM, bsquared <bwcode4u@gmail.com> wrote:

> Hello,
>
> I am wondering how to implement a filtered replication with a blacklist
> of sorts.
>
>
> (C..?) <--> (B?) <--> (A)
>
> Where (A) is a local couchapp and (B) is an optional duplicate on the
> Internet.  A and B replicate with one or more document stores (C..Z).  I
> want to be able to ignore selected documents from the document
> stores. The net affect is that user of (A) is deleting the document from
> their replicated copies, but it still exists on the original document
> store.
>
> The idea that comes to mind for me is to have a design doc hold some
> document metadata that I could use in a filter.
>
>         my_doc_metadata : [
>                         {id: doc_1, state:hidden
>                         {id: doc_2, state:pinned}, ...]
>
> This doc would be replicated between (A) and (B) only.
>
> Is this possible?  If so how could this be implemented in a filter?
>
> Any alternatives come to mind?
>
> Thank you.
>
> --
> Regards,
> Brian
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message