Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 31403 invoked from network); 26 Apr 2008 04:35:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Apr 2008 04:35:09 -0000 Received: (qmail 45014 invoked by uid 500); 26 Apr 2008 04:35:11 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 44992 invoked by uid 500); 26 Apr 2008 04:35:10 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 44980 invoked by uid 99); 26 Apr 2008 04:35:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Apr 2008 21:35:10 -0700 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: domain of amills1037@gascard.net designates 209.85.132.247 as permitted sender) Received: from [209.85.132.247] (HELO an-out-0708.google.com) (209.85.132.247) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Apr 2008 04:34:26 +0000 Received: by an-out-0708.google.com with SMTP id b33so962958ana.83 for ; Fri, 25 Apr 2008 21:34:39 -0700 (PDT) Received: by 10.100.33.13 with SMTP id g13mr8814007ang.96.1209184479316; Fri, 25 Apr 2008 21:34:39 -0700 (PDT) Received: from ?192.168.0.100? ( [74.197.49.140]) by mx.google.com with ESMTPS id d22sm4913235and.0.2008.04.25.21.34.38 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 25 Apr 2008 21:34:38 -0700 (PDT) Message-Id: <0B8FCF82-C889-4BF6-8CF8-AE9040BD76B5@gascard.net> From: Anthony Mills To: couchdb-user@incubator.apache.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Views Date: Fri, 25 Apr 2008 23:34:36 -0500 X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org I read most of the documentation, wiki and blogs, but I still do not see how to accomplish a certain scenario. Hopefully I can describe it adiquitely. Lets say I have 1,000,000 documents [all of the same "type"] with a date attribute. Lets say I want to pick a subset of those documents. How can I pick those documents of one type that fall on one day? Will I need to get all 1,000,000 documents? What if I want all documents of one type on one day that match another attribute? I pretty sure this is what map/reduce will help with, but is there a way to do this now? Can you use more documents to build date relations? Also, can you pass more variables than just key to the view function? Thank you, Anthony