Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 76317 invoked from network); 14 Jul 2009 09:25:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Jul 2009 09:25:45 -0000 Received: (qmail 4986 invoked by uid 500); 14 Jul 2009 09:25:54 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 4933 invoked by uid 500); 14 Jul 2009 09:25:53 -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 4923 invoked by uid 99); 14 Jul 2009 09:25:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jul 2009 09:25:53 +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: domain of truemped@googlemail.com designates 209.85.218.225 as permitted sender) Received: from [209.85.218.225] (HELO mail-bw0-f225.google.com) (209.85.218.225) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Jul 2009 09:25:42 +0000 Received: by bwz25 with SMTP id 25so165908bwz.11 for ; Tue, 14 Jul 2009 02:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-pgp-agent:x-mailer; bh=gL0gl6r7fSlq30WhWhht60oNO0xITBsix3QRYzeTdkg=; b=D7iEfFVOef7WvxcGfsLw51HxDcsfRgwFG5yQlPYqsK1hSq8Pshvv7tjHW+P3qA7vM0 oryrw6PhiM6yl0rZQUS4nxXxtAIkAW94k24HKb6K+h2omnJeHjgygUOgB6ODZrKqo1HT jGYNzcwyDFLYRpl1Hp6w9+zYqCueURe36dd/k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-pgp-agent:x-mailer; b=AJ5vznRj7ihpa7K1nZEky/CBhLKCiJrw3Os3QflIEMgsvAodtzbpleCXbeWw7WhnXX V9IAzaRyqGrszXeqzSbtNYRjWi1fqRWgCc79J2Wd30V80IPllee4pqiThCGJPl7WNyhu qMOV0sBEfEGImzbg9uT2AYhrBHkBCIb0+WK30= Received: by 10.204.55.15 with SMTP id s15mr6203876bkg.53.1247563521161; Tue, 14 Jul 2009 02:25:21 -0700 (PDT) Received: from hence22.org ([85.131.190.91]) by mx.google.com with ESMTPS id 4sm7999018bwz.7.2009.07.14.02.25.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 14 Jul 2009 02:25:20 -0700 (PDT) Received: from vandusen.neofonie.priv (crt-01-tr.neofonie.de [81.17.210.28]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by hence22.org (Postfix) with ESMTPSA id E4C6C3E479 for ; Tue, 14 Jul 2009 11:25:17 +0200 (CEST) Message-Id: From: =?ISO-8859-1?Q?Daniel_Tr=FCmper?= To: user@couchdb.apache.org In-Reply-To: <200907141023.34171.waqner@gmx.net> Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-8-820859482" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Re: Updating views while inserting documents Date: Tue, 14 Jul 2009 11:25:15 +0200 References: <6D108219-1BAE-43EF-BEE2-6D0DE33257DB@googlemail.com> <200907141023.34171.waqner@gmx.net> X-Pgp-Agent: GPGMail d55 (v55, Leopard) X-Mailer: Apple Mail (2.935.3) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-8-820859482 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit > Can you avoid processing this field in the view? > > Retrieving the view with include_docs=true can still give your users > the > complete documents, but those large data would be neiter stored nor > indexed in > the view. Jan has just given a talk in the company I work for and helped me on this one. Of course I have been doing things wrong in general. The specific view I was trying to generate was 'give me a set of unique field values, when the user of my library can choose the field name'. I did the 'uniqueness' thing in the reduce part which is, as I have now learnt, very bad :) Instead I will now generate a new design document for every field on which the user wants a set of unique values. This way I can allow the user to choose the fields she wants unique values on, at runtime. There certainly are better ways of doing this but unfortunately this is a requirement... > Gesundheit > Wagner Prost Daniel --Apple-Mail-8-820859482 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: Signierter Teil der Nachricht content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (Darwin) iEYEARECAAYFAkpcTv4ACgkQOEPVDIsh440r9wCdFOF+64M2uQ/l5X17J29gYzEi 2SwAnjMKy6ZqQ6lqvX24BSmyDelaueP8 =VWOr -----END PGP SIGNATURE----- --Apple-Mail-8-820859482--