Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 57979 invoked from network); 8 Oct 2009 15:41:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Oct 2009 15:41:35 -0000 Received: (qmail 97704 invoked by uid 500); 8 Oct 2009 15:41:34 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 97648 invoked by uid 500); 8 Oct 2009 15:41:34 -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 97638 invoked by uid 99); 8 Oct 2009 15:41:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2009 15:41:33 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: unknown ?allinclude:aspmx.googlemail.com (nike.apache.org: encountered unrecognized mechanism during SPF processing of domain of paco@freshout.us) Received: from [209.85.217.220] (HELO mail-gx0-f220.google.com) (209.85.217.220) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2009 15:41:23 +0000 Received: by gxk20 with SMTP id 20so6450499gxk.12 for ; Thu, 08 Oct 2009 08:41:00 -0700 (PDT) Received: by 10.150.236.9 with SMTP id j9mr2577833ybh.196.1255016453925; Thu, 08 Oct 2009 08:40:53 -0700 (PDT) Received: from ?10.0.0.21? ([189.192.15.37]) by mx.google.com with ESMTPS id 14sm380gxk.2.2009.10.08.08.40.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 08 Oct 2009 08:40:53 -0700 (PDT) Cc: user@couchdb.apache.org Message-Id: From: Francisco Viramontes To: Brian Candler In-Reply-To: <20091008152123.GA29287@uk.tiscali.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: different results for same group levels Date: Thu, 8 Oct 2009 10:40:51 -0500 References: <2303E332-F34D-40BD-AB07-85F288D2A8B6@freshout.us> <20091008152123.GA29287@uk.tiscali.com> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org I dont know what a list gunction is, can I have an example? PAco On Oct 8, 2009, at 10:21 AM, Brian Candler wrote: > On Wed, Oct 07, 2009 at 10:15:38PM -0500, Francisco Viramontes wrote: >> Is there a view I can make that handle conditional key emiting or >> something that I can pass a parameter to? > > No, views cannot take parameters. This is because they are built up- > front, > and updated incrementally thereafter. That is, the view exists > independently > of the queries which are subsequently made against it. > > One option is to have a view which outputs keys in whatever the > smallest > range is you want to support, say 1 minute buckets. Then you can > combine > them into N-minute buckets client-side, or inside a _list function.