couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fabio Di Bernardini <...@altraqua.com>
Subject filtered change notification on views
Date Wed, 08 Jun 2011 18:01:39 GMT
I need to replicate, in a new database, the result of a view. Is there a
solution other than using an external process waiting for changes?

Below a broken example of what i need: a continuos filtered replica using a
reduced view as source:

curl -H "Content-Type: application/json" -X POST -d \
'{"source":"http://localhost:5984/datastream/_design/dbname/_view/viewname?group=true&group_level=3",
\
"target":"http://localhost:5984/dbreplica", "filter":"dbname/filtername", \
"query_params": {"key":"value"}, "continuous":true}'
http://localhost:5984/_replicate

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