Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 54163 invoked from network); 17 Jul 2009 17:35:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Jul 2009 17:35:19 -0000 Received: (qmail 37398 invoked by uid 500); 17 Jul 2009 17:36:24 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 37309 invoked by uid 500); 17 Jul 2009 17:36:23 -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 37293 invoked by uid 99); 17 Jul 2009 17:36:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jul 2009 17:36:23 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [145.58.30.184] (HELO out1a.mail.omroep.nl) (145.58.30.184) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Jul 2009 17:36:12 +0000 Received: from localhost (ou1aclean [10.10.30.156]) by out1a.mail.omroep.nl (Postfix MTA - NPO ICT) with ESMTP id 5627D3C000A7 for ; Fri, 17 Jul 2009 19:35:50 +0200 (CEST) X-Virus-Scanned: NPO ICT Received: from out1a.mail.omroep.nl ([145.58.30.184]) by localhost (out1a.mail.omroep.nl [10.10.30.155]) (amavisd-new, port 10024) with ESMTP id gUOHw4v1U9XK for ; Fri, 17 Jul 2009 19:35:50 +0200 (CEST) Received: from tweehoog.vpro.nl (tweehoog.vpro.nl [145.58.169.70]) by out1a.mail.omroep.nl (Postfix MTA - NPO ICT) with ESMTP id 30BED3C00096 for ; Fri, 17 Jul 2009 19:35:50 +0200 (CEST) Received: from exmail.vpro.nl ([145.58.171.81] helo=VS-EX-01.intra.vpro.nl) by tweehoog.vpro.nl with esmtp (Exim 3.36 #1) id 1MRrLa-0000PM-00 for user@couchdb.apache.org; Fri, 17 Jul 2009 19:35:50 +0200 Received: from VS-EX-01.intra.vpro.nl ([145.58.171.81]) by VS-EX-01.intra.vpro.nl ([145.58.171.81]) with mapi; Fri, 17 Jul 2009 19:35:49 +0200 From: Nils Breunese To: "user@couchdb.apache.org" Date: Fri, 17 Jul 2009 19:35:21 +0200 Subject: RE: Views with parameters Thread-Topic: Views with parameters Thread-Index: AcoG9g+EB5tfgGKGTW2/mXs3wg0B4QADuaPu Message-ID: References: <1247675183.7553.2.camel@mandel-desktop>,<20090717154805.GA20016@uk.tiscali.com> In-Reply-To: <20090717154805.GA20016@uk.tiscali.com> Accept-Language: nl-NL Content-Language: nl-NL X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: nl-NL Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org For show and list I'd start here: http://wiki.apache.org/couchdb/Formatting= _with_Show_and_List Nils Breunese. ________________________________________ Van: Brian Candler [B.Candler@pobox.com] Verzonden: vrijdag 17 juli 2009 17:48 Aan: Manuel de la Pena CC: user@couchdb.apache.org Onderwerp: Re: Views with parameters On Wed, Jul 15, 2009 at 06:26:23PM +0200, Manuel de la Pena wrote: > Is passing parameter in the view url work? Consider a view as static: it is built from the state of all the documents in your database, indexed for rapid querying by key. When you query it, you can pass parameters like 'keys', 'startkey', 'endkey', 'limit' etc. to select the result set. But you can't supply parameters for how the view was originally built on disk, because then the view would have to be rebuilt every time. The '_list' API *does* allow you to pass parameters to your list function; it can perform post-processing of a view. Unfortunately it's not well documented, but the javascript test code is pretty clear. HTH, Brian. De informatie vervat in deze e-mail en meegezonden bijlagen is uitsluitend= bedoeld voor gebruik door de geadresseerde en kan vertrouwelijke informati= e bevatten. Openbaarmaking, vermenigvuldiging, verspreiding en/of verstrekk= ing van deze informatie aan derden is voorbehouden aan geadresseerde. De VP= RO staat niet in voor de juiste en volledige overbrenging van de inhoud van= een verzonden e-mail, noch voor tijdige ontvangst daarvan.