Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 32056 invoked from network); 14 Oct 2010 23:22:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 14 Oct 2010 23:22:17 -0000 Received: (qmail 8923 invoked by uid 500); 14 Oct 2010 23:22:16 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 8877 invoked by uid 500); 14 Oct 2010 23:22:16 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 8869 invoked by uid 99); 14 Oct 2010 23:22:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Oct 2010 23:22:16 +0000 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=FREEMAIL_FROM,FREEMAIL_REPLY,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.214.180 as permitted sender) Received: from [209.85.214.180] (HELO mail-iw0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Oct 2010 23:22:12 +0000 Received: by iwn40 with SMTP id 40so218509iwn.11 for ; Thu, 14 Oct 2010 16:21:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=hMh2h9BEyLFRzNMOy0RlYTheh+bwdjzDH7KXCCHdT7A=; b=gPNbzeMsQXonbtIekU9KKB9HuWJuKSf9WKXoW9ZRzVv0LDutnONU0aqOCLHfYO63kO r07UsHou+W+NuFCZdGHzctHzzfdBoTKnr4STmYLj9htm4SBm5SHBfVbpkQaqjwuXwAPT 4PoTwRcEFU0+gfbFVHqk838hB8bbdKnXpdJaM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=u7OSMxcr/2ZZtCll0MINhKf2nHR4YNJO2PRuv9a1bCrK7oXE0JmZ9HV73dSun8bYmy yKMXs6yB5JtIsjgg3IAAVON8M9Hgzf9mEXlwQujj4rYxw2rgYyBniqWBDRKzdMSlZ9Tp ivByW2xgEof6gVYUrRF8/d29nYj479tTCUHFk= Received: by 10.231.176.73 with SMTP id bd9mr9240694ibb.134.1287098511503; Thu, 14 Oct 2010 16:21:51 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.30.194 with HTTP; Thu, 14 Oct 2010 16:21:11 -0700 (PDT) In-Reply-To: References: From: Paul Davis Date: Thu, 14 Oct 2010 19:21:11 -0400 Message-ID: Subject: Re: filter changes for some docids To: dev@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, Oct 14, 2010 at 7:05 PM, Filipe David Manana wrote: > On Fri, Oct 15, 2010 at 12:04 AM, Filipe David Manana > wrote: >> Now that we have this, I think I should change the replicator to >> profit of this _changes feature and allow for continuous replication >> by doc IDs. >> Anyone against? > > Not only would allow for the continuous replication but also would > imply removing ugly code from the replicator > My +1 > +1 >> >> >> On Wed, Oct 13, 2010 at 10:10 PM, Benoit Chesneau = wrote: >>> On Wed, Oct 13, 2010 at 6:21 PM, Paul Davis wrote: >>>> On Wed, Oct 13, 2010 at 12:05 PM, Filipe David Manana >>>> wrote: >>>>> For a matter of consistency with the replicator, I would name the >>>>> field as "doc_ids" instead of "docids". >>>>> >>>>> All the rest seems fine to me. >>>>> >>>>> On Wed, Oct 13, 2010 at 4:24 PM, Benoit Chesneau wrote: >>>>>> Hi all, >>>>>> >>>>>> For a project I have to know each time a design doc change and for n= ow >>>>>> I have to create a filter function for each databases created to do >>>>>> that. I think getting changes on specific docids is a common behavio= r >>>>>> (see replication for example) so I thought to add the possibility to >>>>>> filters changes on docids if a list of documents is passed in the >>>>>> request. >>>>>> >>>>>> ex: >>>>>> >>>>>> POST /db/_changes >>>>>> {"docids": ["id1", ..]} >>>>>> >>>>>> >>>>>> Here is the patch that allows that feature : >>>>>> http://github.com/benoitc/couchdb/commit/fd7829b6b3093ab324a2b5c4966= 00cc6335480b8 >>>>>> >>>>>> What do you think about it ? >>>>>> >>>>>> - benoit >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Filipe David Manana, >>>>> fdmanana@gmail.com, fdmanana@apache.org >>>>> >>>>> "Reasonable men adapt themselves to the world. >>>>> =A0Unreasonable men adapt the world to themselves. >>>>> =A0That's why all progress depends on unreasonable men." >>>>> >>>> >>>> Looks fine to me. And I'd agree with filipe about using doc_ids for co= nsistency. >>>> >>> commited with changes from docids to doc_ids + fixed safari test. >>> Thank for the review :) >>> >>> - benoit >>> >> >> >> >> -- >> Filipe David Manana, >> fdmanana@gmail.com, fdmanana@apache.org >> >> "Reasonable men adapt themselves to the world. >> =A0Unreasonable men adapt the world to themselves. >> =A0That's why all progress depends on unreasonable men." >> > > > > -- > Filipe David Manana, > fdmanana@gmail.com, fdmanana@apache.org > > "Reasonable men adapt themselves to the world. > =A0Unreasonable men adapt the world to themselves. > =A0That's why all progress depends on unreasonable men." >