Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 18878 invoked from network); 10 Jan 2009 19:21:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jan 2009 19:21:00 -0000 Received: (qmail 63559 invoked by uid 500); 10 Jan 2009 19:20:59 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 63513 invoked by uid 500); 10 Jan 2009 19:20:59 -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 63502 invoked by uid 99); 10 Jan 2009 19:20:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Jan 2009 11:20:59 -0800 X-ASF-Spam-Status: No, hits=3.4 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.218.10] (HELO mail-bw0-f10.google.com) (209.85.218.10) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Jan 2009 19:20:50 +0000 Received: by bwz3 with SMTP id 3so847667bwz.11 for ; Sat, 10 Jan 2009 11:20:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.103.198.15 with SMTP id a15mr9705554muq.60.1231615208039; Sat, 10 Jan 2009 11:20:08 -0800 (PST) Date: Sat, 10 Jan 2009 19:20:08 +0000 Message-ID: <9dc90f170901101120j77fb60d0x891cda087d89da2f@mail.gmail.com> Subject: View configuration From: Thomas Williams To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=001636b431a4f9a564046025c2f3 X-Virus-Checked: Checked by ClamAV on apache.org --001636b431a4f9a564046025c2f3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi chaps,I've spent a couple of days playing around with version 0.80 and I think I might be missing something. Is it possible to configure views at query time or do they have to always be effectively 'static'. I mean can I write a view something like this: function(doc, user_id) { if(doc.user_id=user_id) emit(doc) } Then pass user_id as a parameter to each query. If not, does anyone know how I can go about retrieving data based on a unique key in an efficient manner? Thanks, Tom -- Thomas Williams Java Programmer Dubit Limited +44 1133 947920 www.dubitlimited.com --001636b431a4f9a564046025c2f3--