Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 38206 invoked from network); 25 Feb 2010 00:52:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Feb 2010 00:52:47 -0000 Received: (qmail 31139 invoked by uid 500); 25 Feb 2010 00:52:45 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 31095 invoked by uid 500); 25 Feb 2010 00:52:45 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 31065 invoked by uid 99); 25 Feb 2010 00:52:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Feb 2010 00:52:45 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of travisladuke@gmail.com designates 209.85.223.172 as permitted sender) Received: from [209.85.223.172] (HELO mail-iw0-f172.google.com) (209.85.223.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Feb 2010 00:52:38 +0000 Received: by iwn2 with SMTP id 2so5213798iwn.29 for ; Wed, 24 Feb 2010 16:52:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=2Cd9xT3JX8UF9Mmum44o/Vqdwq9FqXnm9STtnKkTrNo=; b=VRVLGvqCTN6QsHwdZUlrRm+p1SQK+Pbn0VMIkCSY77ikD9VFLPgoG3wu73IRiDeY6J Ne4BQxpVFpElOzK7SeSrWNxr3pa/IUanzcrq6VcPdgCbzeis/5Rm40TFlFHRc6Q+0xyg 6ZUAuIt+VetsGxOrkjYuwZFKCKHbigfTZ9vt4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=aU7ZOIhah2FPUAJD9NaMXrh7FmkQYOwapoa1upUjQ3aLdt7Vvey4nSOVKMcUuKkYIV 863F9SmmtoFOJaWlwSth75+JYd0gOaJw3T2ABeloU/4p3ZIB56eCUR/qoiCc7K/T8qDz 0HxYKurp2/567X2il/I9O00XHJIACxAjrzakc= MIME-Version: 1.0 Received: by 10.231.154.197 with SMTP id p5mr1011841ibw.28.1267059137863; Wed, 24 Feb 2010 16:52:17 -0800 (PST) In-Reply-To: References: <1e98902e1002241534p51e240fm32977bb0ca93ccaf@mail.gmail.com> Date: Wed, 24 Feb 2010 16:52:17 -0800 Message-ID: <1e98902e1002241652j7d30a8d2p9580501ff52806b7@mail.gmail.com> Subject: Re: Order posts by most recently commented on? From: Travis LaDuke To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 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...