Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 72083 invoked from network); 30 Nov 2009 04:07:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Nov 2009 04:07:44 -0000 Received: (qmail 70218 invoked by uid 500); 30 Nov 2009 04:07:42 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 70093 invoked by uid 500); 30 Nov 2009 04:07:42 -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 70083 invoked by uid 99); 30 Nov 2009 04:07:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2009 04:07:42 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jchris@gmail.com designates 209.85.160.56 as permitted sender) Received: from [209.85.160.56] (HELO mail-pw0-f56.google.com) (209.85.160.56) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2009 04:07:39 +0000 Received: by pwj6 with SMTP id 6so2051402pwj.35 for ; Sun, 29 Nov 2009 20:07:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=AESNs0hpCd4Vxfle4uLAAcWuB12VVrCaRC6o50bbves=; b=Wf3q9MMMQGIq4+LEiaxypKl4w0458WwR/Bhiu99wuOXrbWs5SyeMNF8A/DxTmvPwsi dmPsTaFt/O63lZr+03YlPm/RSX+T3jg9bsFpuKVyRGmFfwrK1/F/dMoLik4wQA6LM3rh 5FKk/gAPbZnaKgV2TJL89XVfSC8UAEKW+IcCE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=ohhvYfiXquiFfDCQTiePjdYLAQYFhggRQybZNkyIrmBZ5jUU8ZoeEmyLWD9VLEWxAA 00DsPCvbnmHkSqSuQtuK+bJ+yQxwUTyEBmQZ063PUQUpskOF7KPo41N1dVpdPlKI/g3i G0Fd6ygoRLm7kKrUewFLnznnvLYMLpqDFxja8= MIME-Version: 1.0 Sender: jchris@gmail.com Received: by 10.142.120.5 with SMTP id s5mr396466wfc.164.1259554038970; Sun, 29 Nov 2009 20:07:18 -0800 (PST) In-Reply-To: <20091125.141222.19712.0@webmail18.dca.untd.com> References: <20091125.141222.19712.0@webmail18.dca.untd.com> Date: Sun, 29 Nov 2009 20:07:18 -0800 X-Google-Sender-Auth: 4656c02cde5accc6 Message-ID: Subject: Re: filters for _changes dont seem to work From: Chris Anderson To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Nov 25, 2009 at 11:12 AM, slubowsky@netzero.net wrote: > I am trying to use a simple filter to filter the changes I get when askin= g for changes using the _changes API. > > I find that often the filter is not even called (I write a message to the= log when the filter is called, when it returns false, and when it returns = true) and I don't get changes I should have received (especially changes to= existing documents, new documents seem to do better, deletes never get inc= luded, not even the first one). > I've committed a test and a fix for the case where a longpoll would return with an empty results list when the first change does not match the filter. This fix should make the behavior more predictable. Please try it again and let me know how it works. Thanks for reporting. Chris --=20 Chris Anderson http://jchrisa.net http://couch.io