Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 87426 invoked from network); 8 Apr 2010 16:29:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Apr 2010 16:29:03 -0000 Received: (qmail 41108 invoked by uid 500); 8 Apr 2010 16:29:02 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 41031 invoked by uid 500); 8 Apr 2010 16:29:02 -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 41023 invoked by uid 99); 8 Apr 2010 16:29:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Apr 2010 16:29:02 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of zachary.zolton@gmail.com designates 74.125.82.52 as permitted sender) Received: from [74.125.82.52] (HELO mail-ww0-f52.google.com) (74.125.82.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Apr 2010 16:28:55 +0000 Received: by wwd20 with SMTP id 20so394496wwd.11 for ; Thu, 08 Apr 2010 09:28:35 -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 :from:date:received:message-id:subject:to:content-type :content-transfer-encoding; bh=59Sf3/UWnEQ4YNcPxIaaH06CdTXw0UN6iX6jcp8+1Ms=; b=Gt8Hx/pafTBBGl6vf6FhKfqvePpxnbTBj6/2nIJZmhGZfaGpdcb3gN84m3LSLfpdyQ nWk1oBJlKPCQ1QpXZsHfZiu3LBogZSE/NmT27lTsVifVzFH5Dl598Z6XKAGPJstIH66D vFuzFi2S470q+rbJkOCbzFuS/wDGeYUTAbOs4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=YcbPZi9UjxPpOjigtYWVcWPnMeCH+O0z1vKDUWdvTerVBaWKGHCrEnJ0I4BMe4Sxx5 w+lMR8Sa80mMVekzX76nagBNCijT50zfnvIkTj9GqfgXA7hNbRfapSXA0za+wkzI/WNH vJ3WULXwl886fJMjTOYT1n7MzYaRWl45pRTOc= MIME-Version: 1.0 Received: by 10.216.175.148 with HTTP; Thu, 8 Apr 2010 09:28:15 -0700 (PDT) In-Reply-To: References: From: Zachary Zolton Date: Thu, 8 Apr 2010 11:28:15 -0500 Received: by 10.216.89.74 with SMTP id b52mr166703wef.142.1270744115301; Thu, 08 Apr 2010 09:28:35 -0700 (PDT) Message-ID: Subject: Re: About denormalization and keep consistent 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 suggest you check out the _changes API: http://books.couchdb.org/relax/reference/change-notifications Basically, if you have doc types A & B, where B maintains a denormed bit of A, then you can watch the _changes feed in a backend process. When an A gets updated, hit a view of all B's related to that particular A, and update the dernomed data. On Thu, Apr 8, 2010 at 10:20 AM, faust 1111 wrote: > Hi guy's > I return back to my problem with denormalization. > > is it possible to keep consistent when apply denormalization? > For example > Content > =A0 have author (we store author name and id in Content) > > When author name changed(that's happens not frequently) > i need find all content belong to this author and update author name > but what if this operation not finished (not all docs was updated) > > What i can do in this case? > Thanks. >