couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zachary Zolton <>
Subject Re: About denormalization and keep consistent
Date Thu, 08 Apr 2010 16:28:15 GMT
I suggest you check out the _changes API:

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
>   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.

View raw message