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 updated.
A On Wed, Feb 24, 2010 at 4:52 PM, Travis LaDuke <[email protected]>wrote: > On Wed, Feb 24, 2010 at 4:12 PM, Jens Alfke <[email protected]> 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... >
