Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 91971 invoked from network); 24 Sep 2009 00:31:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Sep 2009 00:31:49 -0000 Received: (qmail 82020 invoked by uid 500); 24 Sep 2009 00:31:48 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 81944 invoked by uid 500); 24 Sep 2009 00:31:48 -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 81934 invoked by uid 99); 24 Sep 2009 00:31:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Sep 2009 00:31:48 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [68.180.197.69] (HELO web45303.mail.sp1.yahoo.com) (68.180.197.69) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 24 Sep 2009 00:31:37 +0000 Received: (qmail 58418 invoked by uid 60001); 24 Sep 2009 00:31:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1253752275; bh=0jL27MinuScVGq0N4queCqvmLGlfM4o+Xl06YoZybSY=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=PjRjybeVu4+2npT6n+Y+2/Bshg2I/Mav6MXw7kmzj2rTpchZC+h0FvYNk7jGshT9EIxxIBi0GuQtjrv3dHTvH0ju51plV+1fVjiFrNnNBctCtAFcMPAnRqVgZGRTYKFe0e2D7LTJBmkITVsJ8dKoRSkDVsa8m4zBqjRtsrc8Gbc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=TzPdxcCFw44wnDy+aIQrNwomjMqr65FbXQMVUg8dWGUVZITJkh2yaMAn27gmAyslPIfP3lTBTqQjkwJN/gXIEwqsyOH20CWi9shTjS8ENYAC9j/NrQseJml1dh++hC5DKuDZBQtF+IDQ41ZeCwMt4FW9K6mFQQQRl3RG9Ejaxok=; Message-ID: <709937.57205.qm@web45303.mail.sp1.yahoo.com> X-YMail-OSG: X7P0tC8VM1lJLFIMh9JhrbPtp7mQbIwokgdT867GzDCeRASsDRnDTOnnfLSVrWrokq6eE14i9.aHS_fNZTADn1v1_RDuQLmNUQbmKlJtM1apy8fdQC.eqrZXuV4O61UANijtgkL8hzJIuBqoVdTCJ7maPTyB8kBBoZ9BjAY3fod_ehSEc8rGh70Rk1CU8nYPNOMfumAvUgGWtnGJy56k8TN7DJvLFUVGkdnkaYeeqQdNz2u.6sAIBIuWyn2YpdaQ_tGCm2CKcAOs_Y3Pdrq8cErX Received: from [220.255.7.106] by web45303.mail.sp1.yahoo.com via HTTP; Wed, 23 Sep 2009 17:31:15 PDT X-Mailer: YahooMailRC/157.18 YahooMailWebService/0.7.347.2 References: <703899.67009.qm@web45310.mail.sp1.yahoo.com> <9797E48A-A570-42BF-B6CE-1706290E9B2D@googlemail.com> <8a02878f0909230809q3c47f6bbh9cbb431b7be21e11@mail.gmail.com> <8a02878f0909230812r13bc1ee1gd22efec27bd39d9e@mail.gmail.com> Date: Wed, 23 Sep 2009 17:31:15 -0700 (PDT) From: go canal Subject: Re: is there a way to pass a request parameter to a view ? To: user@couchdb.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1737734846-1253752275=:57205" X-Virus-Checked: Checked by ClamAV on apache.org --0-1737734846-1253752275=:57205 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable no problem. the link is still very useful.=0A=A0=0AI found 'HTTP_Bulk_Docum= ent_API' but empty page now http://wiki.apache.org/couchdb/%5BHTTP_Bulk_Doc= ument_API=A0=0A=0Aany idea what is this for ?=0Athanks.=0Acanal =0A=0A=0A= =0A=0A________________________________=0AFrom: Simon Metson =0ATo: user@couchdb.apache.org=0ASent: Thursday, September 24,= 2009 6:06:31 AM=0ASubject: Re: is there a way to pass a request parameter = to a view ?=0A=0ASorry - jet lag causing read fails...=0A=0AOn 23 Sep 2009,= at 10:12, Jesse Hallett wrote:=0A=0A> The most efficient way to update a l= ot of docs currently is to download all=0A> of the docs via a view query - = try the `includedocs` query parameter - and=0A> then to bulk update those d= ocs with a single POST request.=0A> =0A> There is no mechanism for updating= through the view directly.=0A> =0A> On Sep 23, 2009 5:40 AM, "Simon Metson= " wrote:=0A> =0A> Hi=0A>=A0 =A0 =A0 CouchDB ta= kes care of the view slicing for you (see=0A> http://wiki.apache.org/couchd= b/HTTP_view_API. You'd write a view that emits=0A> some key:values, and the= n do the query you describe (?key=3Dfoo) to return=0A> only the values with= key =3D foo. You can also do startkey=3Dfoo and endkey=3Dbar=0A> to get a = slice of the view (e.g. look for continuous data in a range). You=0A> don't= need to worry about this in writing your view, since the view is=0A> gener= ated for all keys.=0A> Cheers=0A> Simon=0A> =0A> On 23 Sep 2009, at 04:37, = go canal wrote: > Hello, > use case: >=A0 - change=0A> the value of a field= o...=0A=0A=0A --0-1737734846-1253752275=:57205--