Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 5959 invoked from network); 27 Jul 2010 14:26:57 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Jul 2010 14:26:57 -0000 Received: (qmail 18592 invoked by uid 500); 27 Jul 2010 14:26:56 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 18381 invoked by uid 500); 27 Jul 2010 14:26:54 -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 18368 invoked by uid 99); 27 Jul 2010 14:26:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jul 2010 14:26:53 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.210.52] (HELO mail-pz0-f52.google.com) (209.85.210.52) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Jul 2010 14:26:46 +0000 Received: by pzk27 with SMTP id 27so3068518pzk.11 for ; Tue, 27 Jul 2010 07:26:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.80.10 with SMTP id d10mr13316336wab.216.1280240786442; Tue, 27 Jul 2010 07:26:26 -0700 (PDT) Received: by 10.220.84.207 with HTTP; Tue, 27 Jul 2010 07:26:26 -0700 (PDT) In-Reply-To: References: Date: Tue, 27 Jul 2010 10:26:26 -0400 Message-ID: Subject: Re: Reporting in CouchDB From: Cory Zue To: user Content-Type: text/plain; charset=ISO-8859-1 On Tue, Jul 27, 2010 at 10:22 AM, Luke Driscoll wrote: > If I understand what you're saying, I think you could make your key: > [siteid, year, month, day] > > Then when you call reduce you could set the group_level to 1, 2, 3 or 4, to > granulate by siteid, year, month and day respectively Brilliant, thanks! Didn't know about group_level...