Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 45229 invoked from network); 25 Mar 2010 00:56:34 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Mar 2010 00:56:34 -0000 Received: (qmail 99385 invoked by uid 500); 25 Mar 2010 00:56:33 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 99350 invoked by uid 500); 25 Mar 2010 00:56:33 -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 99342 invoked by uid 99); 25 Mar 2010 00:56:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Mar 2010 00:56:33 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of faust451@gmail.com designates 72.14.220.153 as permitted sender) Received: from [72.14.220.153] (HELO fg-out-1718.google.com) (72.14.220.153) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Mar 2010 00:56:25 +0000 Received: by fg-out-1718.google.com with SMTP id d23so1919288fga.5 for ; Wed, 24 Mar 2010 17:56:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:content-type :content-transfer-encoding; bh=XI414ROeRS9/Dr8N3V2mbwG+7+jAp7ovgZ5jXOsTGbE=; b=Ad9VWPf4uvnhi5PbJbKvbGCo64mqkGCBwDSbnDStalQZ8uRzCDzgLPRuLVwzKA84ie 3AD26Wy8dlPGCFIkSZhiCzjieNxK31EtrwWwTKl7YAeZaCZqi/x/jUpKtqkSSkeBmwK3 vCpAsTVbDZ+bm4vG1NlFdF4xVvxFS57wBX3YA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=UOa5sIlryDVzERyN856IIrv1ygbxb395MZc5t0AHqGgnlT+Kk3rXbbPDbPys91jWS6 wfU47lPTAMDhh6KXFy8eSEaoRA2gUHiCI4m9lLF9EEJ1YSnESTQH1F2XPiD+xu/hxeb3 2XxXwi9uLK630byGB2PqHv0YZB3eKonlDVgcE= MIME-Version: 1.0 Received: by 10.86.99.18 with HTTP; Wed, 24 Mar 2010 17:56:05 -0700 (PDT) In-Reply-To: References: Date: Thu, 25 Mar 2010 06:26:05 +0530 Received: by 10.87.47.3 with SMTP id z3mr824461fgj.70.1269478565508; Wed, 24 Mar 2010 17:56:05 -0700 (PDT) Message-ID: Subject: Re: bulk Updates From: faust 1111 To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org i means another case i told: author change name and i must replace name in all related content. 2010/3/25 Randall Leeds : > When you have a new author, write that to a document. Use that > document's id to reference it in other docs maybe? > > On Wed, Mar 24, 2010 at 17:03, faust 1111 wrote: >> if i follow >> >> The CouchDB pattern would be something like: >> >> 1. Define a view that allows you to fetch the docs you want. >> 2. Fetch the docs, possibly using ?include_docs=3Dtrue >> 3. Update the docs in the client >> 4. Push all the docs back using _bulk_docs >> >> its will be to slow in my case >> i have contents with authors: >> content { >> =A0authors: [ >> =A0 =A0 {name: 'Lara', slug: 23424}, >> =A0 =A0 {name: 'Dimon', slug: 23445} >> =A0] >> } >> >> if author change name i must fetch 2000 docs and by hand change author >> name in each doc >> this is crazy job guy`s. >> >> May be i`am thinking in wrong way? >> please help. >> >