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 3D42F9656 for ; Tue, 12 Jun 2012 08:05:51 +0000 (UTC) Received: (qmail 94813 invoked by uid 500); 12 Jun 2012 08:05:49 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 94759 invoked by uid 500); 12 Jun 2012 08:05:49 -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 94743 invoked by uid 99); 12 Jun 2012 08:05:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2012 08:05:49 +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 (athena.apache.org: domain of zeraholladay@gmail.com designates 209.85.212.170 as permitted sender) Received: from [209.85.212.170] (HELO mail-wi0-f170.google.com) (209.85.212.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2012 08:05:44 +0000 Received: by wibhm6 with SMTP id hm6so3928250wib.5 for ; Tue, 12 Jun 2012 01:05:22 -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=SDW2dRxMa8X1sffAFutj+CZ8GqI+19aMjtxdDyh01J0=; b=PA9tO0Z/mlM6NsuA9ObtEzFPZlMaU+zOjp4jk4AGR/NB4lGhFfDwJWmwHV0u9UK1V+ uV9m97V6Eq/X0vw6aXWqN329cRVEbOVmbMS1pKSNfiwKcgNCPUGrx2tMpYGTYKoshnu/ GYuJ6sefl2Yp3YRgEvDQcZM0a2//FtXPINQ6C1qH+KSfi1ouNdib3tx4URF1+ZNeg+ae JWHpEPzYNOJDKjMU66FQ6HeMe37sNgVE98VlYvqfDSlOuhrWVPMfDarjT/9FTblqkWok VTnZkGWe6L7aVe+bQn7MnhoPn6IDh3M2QXh4MYNVBnLPAR7ed1RDPxGretHkoax/OJCe SJqg== MIME-Version: 1.0 Received: by 10.180.92.5 with SMTP id ci5mr26873557wib.19.1339488322582; Tue, 12 Jun 2012 01:05:22 -0700 (PDT) Received: by 10.223.114.131 with HTTP; Tue, 12 Jun 2012 01:05:22 -0700 (PDT) In-Reply-To: References: <480F55C0-FB94-442F-90AC-6DCEEE677432@couchbase.com> Date: Tue, 12 Jun 2012 04:05:22 -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 X-Virus-Checked: Checked by ClamAV on apache.org Based on the info from Robert that docs have been sealed, I wouldn't do it this way ever in a view. -zh On Tue, Jun 12, 2012 at 3:52 AM, bryan rasmussen wrote: > So deployment should take into account spidermonkey differences if I > do it this way? > > Thanks, > Bryan Rasmussen > > On Tue, Jun 12, 2012 at 9:08 AM, Robert Newson wrote= : >> Hm, the doc object should be sealed, though. You won't be able to >> modify it reliably (it'll depend on whether you link against a >> spidermonkey that supports object sealing, which is most, but not all, >> of them). >> >> B. >> >> On 12 June 2012 07:44, bryan rasmussen wrote= : >>> hey yeah, that should work fine, I just set it to 'private' when I >>> emit. Damn, I should have thought of that, down in the code too long >>> is making me tunnel visioned :) >>> >>> >>> thanks, >>> Bryan Rasmussen >>> >>> On Tue, Jun 12, 2012 at 4:03 AM, Zera Holladay = wrote: >>>> Try deleting the username field in the view and then emitting the doc? >>>> =A0I don't know why it would work, but I don't know why it wouldn't >>>> either. =A0Just an idea. >>>> >>>> -zh >>>> >>>> On Mon, Jun 11, 2012 at 8:45 PM, Robert Newson wr= ote: >>>>> 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 a= nd >>>>>>> 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 performi= ng the query. >>>>>> >>>>>> =97Jens