Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8FAE49893 for ; Tue, 12 Jun 2012 02:03:30 +0000 (UTC) Received: (qmail 86657 invoked by uid 500); 12 Jun 2012 02:03:28 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 86604 invoked by uid 500); 12 Jun 2012 02:03:28 -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 86510 invoked by uid 99); 12 Jun 2012 02:03:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2012 02:03:28 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of zeraholladay@gmail.com designates 209.85.212.182 as permitted sender) Received: from [209.85.212.182] (HELO mail-wi0-f182.google.com) (209.85.212.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2012 02:03:22 +0000 Received: by wibhm6 with SMTP id hm6so2706847wib.5 for ; Mon, 11 Jun 2012 19:03:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=wq80amkjrrhMANSOmYtDEHxjjDshvMX0+KgixJ8+VQw=; b=t3V5cPD1OdDKye33gwVbTicy1ELF+VdKzjeg/vwTw4pmWDL1G3VyrKl284priiRYWv rbt06tjp9ZbaEvXOheM1frmIHoKjGw+u/eV4mIYbbVUrMk+xYyNgG8m6CvwoX6aTeqi5 wLdljkG4R2wPaMHsMUrvliFnjrRBG0TCv3vgK+RekbKlW/ZNVNAjbk/25gHYJ+/Zpv7m Kk1StIs39vXusMIisa1hoXLXWHQgnO3nXXiWbfpZ0k9klxQDqOOYeQvSL6sUqKameFVP kX9ZWvv6EM2C6UKQ0aS4O6+lzjlz+BCva4FPV2v+zf8d8PNUQT3DHH1ZYehaMcJkjHp0 Ezvg== MIME-Version: 1.0 Received: by 10.216.202.134 with SMTP id d6mr7866541weo.159.1339466581876; Mon, 11 Jun 2012 19:03:01 -0700 (PDT) Received: by 10.223.114.131 with HTTP; Mon, 11 Jun 2012 19:03:01 -0700 (PDT) In-Reply-To: References: <480F55C0-FB94-442F-90AC-6DCEEE677432@couchbase.com> Date: Mon, 11 Jun 2012 22:03:01 -0400 Message-ID: Subject: Re: copying a document with some fields removed From: Zera Holladay To: user@couchdb.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Try deleting the username field in the view and then emitting the doc? I don't know why it would work, but I don't know why it wouldn't either. Just an idea. -zh On Mon, Jun 11, 2012 at 8:45 PM, Robert Newson wrote: > why not use a show or list function that removes that field? > > B. > > On 12 June 2012 01:37, Jens Alfke wrote: >> >> On Jun 11, 2012, at 4:29 PM, bryan rasmussen wrote: >> >>> Does couchdb have some sort of higher level way of doing this that >>> will have better performance than just looping through the object and >>> copying over every property unless it is the username one? >> >> Is the performance of that a problem? Remember, the map function is only= run when a document is updated. It's generating an index, not performing t= he query. >> >> =97Jens