2
我需要在新数据库中复制视图的结果。 除了使用等待更改的外部进程之外,是否有解决方案?视图上的已过滤更改通知
下面的我需要一个破碎例如:使用降低视图源的连续的过滤复本:
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
对不起,我不明白,但也许[CouchDB-1.1的这个新功能](http://docs.couchbase.org/couchdb-release-1.1/index.html#couchdb-release-1.1-filters)有一些帮助。 – 2011-06-08 07:18:03
没有这些新功能不解决。 – fdb 2011-06-08 08:22:29
视图通常不适用于数据库。它大致可以比较,键是doc ID,值是doc体。但是,视图可能有重复的键,数据库不能有重复的ID。你的情况不是问题吗? – JasonSmith 2011-06-10 01:15:48