Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 24012 invoked from network); 25 Jul 2008 17:29:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jul 2008 17:29:42 -0000 Received: (qmail 61957 invoked by uid 500); 25 Jul 2008 17:29:42 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 61929 invoked by uid 500); 25 Jul 2008 17:29:41 -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 61918 invoked by uid 99); 25 Jul 2008 17:29:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jul 2008 10:29:41 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gilbertbgarza@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Jul 2008 17:28:47 +0000 Received: by nf-out-0910.google.com with SMTP id c7so1469541nfi.40 for ; Fri, 25 Jul 2008 10:28:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=9CavglB6P0qsTXL5cTx9q+a18KDdyUjRcbS704IKV/U=; b=R2U6RZpO99+y02ad3p6XTt7qRNiC5tMME5Ela2EGixTnKmSmKK4j0oHdgunbYiwusF jqygkt90nf4zY/oZj5xU4SGeBVO0jJQ6yu2BJVBlkzoyLd3c9h3E7X2h6Y5BEUB0z73z 4Ol8srxDMrWa83/Fu8kxqaXc0LX3OX5X5/trI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=q2ZJUAWc/sSP7XEgq1nztPZs9eUVvBZWTtl3icQzRLf1iBJAPkTu/zHomY146sZW5d pfkIMMbH8pZ19PMINzIRtEa2mDuW6n2W3mYNcw5eLNurkFLya+/Q1Mb+kGVfY5LTKeOP 0MnkYlRqA4A853v1ZWKfgCBV7Oc01dnklNlcI= Received: by 10.210.125.13 with SMTP id x13mr2230762ebc.170.1217006934982; Fri, 25 Jul 2008 10:28:54 -0700 (PDT) Received: by 10.210.90.1 with HTTP; Fri, 25 Jul 2008 10:28:54 -0700 (PDT) Message-ID: <5879e51d0807251028s66178a30m9429388794633365@mail.gmail.com> Date: Fri, 25 Jul 2008 12:28:54 -0500 From: "Gilbert B Garza" To: couchdb-user@incubator.apache.org Subject: Re: Renaming document attributes In-Reply-To: <13ae4dd50807231241i693609c8j98c74f15a667de5a@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_119217_18491763.1217006934973" References: <13ae4dd50807230926o10854c59s2436543ca36ace65@mail.gmail.com> <6dfc41e10807231140j1b5a7d45ideafdf042ce14571@mail.gmail.com> <13ae4dd50807231241i693609c8j98c74f15a667de5a@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_119217_18491763.1217006934973 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Wed, Jul 23, 2008 at 2:41 PM, Paul Carey wrote: > > I guess I was thinking along the lines of what to do if, say, hundreds > of thousands of documents contained an attribute to be renamed. > Copying the old attribute to the new one and saving would certainly > work, but this would presumably take some time, during which views > that referenced the attribute might return inconsistent data. At some > point all views that reference the old attribute would need to be > updated with the new attribute name. > > As I say, I have no need for this myself, at least not now. My > question was mostly motivated by curiosity. > > Paul > You could copy all the old attribute values into the new renamed attribute, save all the documents, and read it from the database that way. If you're concerned about disk space after that, you can start deleting the old attribute from all the documents without worrying about data inconsistency. ------=_Part_119217_18491763.1217006934973--