From user-return-17395-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Mon Aug 8 18:14:20 2011 Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A82D786AE for ; Mon, 8 Aug 2011 18:14:20 +0000 (UTC) Received: (qmail 32024 invoked by uid 500); 8 Aug 2011 18:14:18 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 31843 invoked by uid 500); 8 Aug 2011 18:14:18 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 31835 invoked by uid 99); 8 Aug 2011 18:14:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 18:14:17 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jens@couchbase.com designates 206.225.164.29 as permitted sender) Received: from [206.225.164.29] (HELO EXHUB020-2.exch020.serverdata.net) (206.225.164.29) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2011 18:14:10 +0000 Received: from EXVMBX020-1.exch020.serverdata.net ([169.254.4.186]) by EXHUB020-2.exch020.serverdata.net ([206.225.164.29]) with mapi; Mon, 8 Aug 2011 11:13:49 -0700 From: Jens Alfke To: "user@couchdb.apache.org" Date: Mon, 8 Aug 2011 11:13:46 -0700 Subject: Re: How to use the changes feed with a view as filter Thread-Topic: How to use the changes feed with a view as filter Thread-Index: AcxV9utpdazXjZe+R4iXnjNsLSXk0A== Message-ID: <32F54EC9-9768-45A4-9BE8-7379B56CCF73@couchbase.com> References: <13241CB1-0BD1-4FBA-B09B-1536CD000822@gmail.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_32F54EC9976845A49BE87379B56CCF73couchbasecom_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_32F54EC9976845A49BE87379B56CCF73couchbasecom_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable On Aug 8, 2011, at 5:43 AM, Jeroen van Dijk wrote: This is the original thread that gave me the impression it should be possible: http://comments.gmane.org/gmane.comp.db.couchdb.user/13364 According to that thread (and the commit message) this is just a shortcut t= o avoid having to write a filter function that duplicates an existing map f= unction. Jan wrote "This so you can get a notification for when a view *would* be up= dated if you queried it.=94, but I don=92t see how that follows. Sure, it w= ill tell you when a new revision of a document will appear in the view, but= it won=92t tell you when a document that used to be in the view isn=92t an= y more (because the filter function no longer emitted any rows for it). Bei= ng notified of only insertions and updates but not deletions doesn=92t seem= useful in practice. =97Jens --_000_32F54EC9976845A49BE87379B56CCF73couchbasecom_--