incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <jch...@apache.org>
Subject Re: Comment tree design in CouchDB?
Date Tue, 01 Dec 2009 02:36:48 GMT
On Mon, Nov 30, 2009 at 5:56 PM, Anh <7zark7@gmail.com> wrote:
> I've been thinking about it, and related to my original question on storing
> the comment tree in a single doc, does anyone see a problem with this
> approach?:
>
> When a comment is added and a revision conflict is detected, you deserialize
> the latest version of the comment tree and merge the two versions
> programmatically, and then reattempt the update.
>
> In my case, seems this would suffice due to the comment tree size likely
> being small, and also not having to worry about deleted/removed comments.
>
> Thoughts?

I'd store a comment per document, otherwise users will be stepping on
each other's toes which will kill your concurrency.

Chris


-- 
Chris Anderson
http://jchrisa.net
http://couch.io

Mime
View raw message