couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Wolff <>
Subject Re: Order posts by most recently commented on?
Date Thu, 25 Feb 2010 01:09:34 GMT
You'd have a two-step "submitComment" process, where you first submit the
comment, then go retrieve and update the topic document. Depending on what
else you might do to the topic document, you could possibly ignore conflicts
when you try to update the topic document -- by definition it's been


On Wed, Feb 24, 2010 at 4:52 PM, Travis LaDuke <>wrote:

> On Wed, Feb 24, 2010 at 4:12 PM, Jens Alfke <> 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...

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message