incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Travis LaDuke <travislad...@gmail.com>
Subject Re: Order posts by most recently commented on?
Date Thu, 25 Feb 2010 00:52:17 GMT
On Wed, Feb 24, 2010 at 4:12 PM, Jens Alfke <jens@mooseyard.com> wrote:
> You could add a "lastCommentDate" property to each topic's document, and
> update it whenever you add a comment. You'll need to resolve conflicts if
> you try to update the date but someone else just updated it before you did.
>

How would I go about updating the topic? Just have javascript submit
the update after it gets a success on the comment creation? Seems
fragile. Can the new _update thing do it? It doesn't look like it...

Mime
View raw message