couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Chesneau <>
Subject Re: View changes API
Date Fri, 15 Aug 2014 08:34:21 GMT
On Thu, Aug 14, 2014 at 1:20 PM, <> wrote:

> For filtered replication, I think it'd be good to keep the rcouch
> filter=_view optimization when the appropriate flag is enabled. If the
> flags aren't enabled, fall back on the old, inefficient style of filtering.


> For someone querying view changes feed, I imagine they'd be interested in
> which keys and values are changing rather than just which docs in the view
> are changing. So, for a new "view changes" endpoint, I think it'd be good
> to include the key (as well as the doc ID) in the response body. So, rows
> would in a response would look something like:
> {"seq": <seq>, "id", <doc id>, "key": <emitted key>, "changes": <changes>}

wwhat would contains the changes ?  I woudl eventually replace by an "op"
member, saying updated or removed. (Eventually created but that might be
hard). Something that is actually handled in the latest changes in the view
log index:

> Also, it might be good to add an include_values option to do
> include_docs-style lookups for the emitted values which correspond to the
> emitted keys.


I still have to look at your code to see how i can help more.

- benoit

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