From user-return-20832-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Thu May 17 12:09:44 2012 Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 480CFC23E for ; Thu, 17 May 2012 12:09:44 +0000 (UTC) Received: (qmail 39484 invoked by uid 500); 17 May 2012 12:09:42 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 39363 invoked by uid 500); 17 May 2012 12:09:41 -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 39320 invoked by uid 99); 17 May 2012 12:09:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2012 12:09:39 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lmatteis@gmail.com designates 74.125.82.54 as permitted sender) Received: from [74.125.82.54] (HELO mail-wg0-f54.google.com) (74.125.82.54) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 May 2012 12:09:32 +0000 Received: by wgbfg15 with SMTP id fg15so1573330wgb.23 for ; Thu, 17 May 2012 05:09:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=vPkAOIDU5MdesGgKfnZZe92mPEXoutrjSPKzPHczR1k=; b=ZGQcbSC+SCt7scWqbpTzvq4Kj9BtEvG/R0B7faaorx5tqyf154Qj1LbDwo89qEYncA kUz7FlS3I7fUjjpfE4Mkxzlcs9KbcVZqyxUxI0S0Blf0ag6LmuGv+1Gnzf55vqxO8/1l 1+IXRuvQr5/leMCO1fR+8GZaa/DZxN2gWlpX0tuzF/V5cx8QnvjANMHLZ7EO8sszY4w6 IMg3jcHAc7OUBjdpfJZbOypwZenbauvUtUKIkB9Lnl+UoLaRPW5PgJO9X3TAXETEArDq /PDv1tdtQLvIUiM/EoQttQyCDg+BeJpQ9rGArpd/jYaJBpS9OfGZ63ZTRb0ikZ0hTP07 2oig== MIME-Version: 1.0 Received: by 10.180.78.9 with SMTP id x9mr17635160wiw.18.1337256551915; Thu, 17 May 2012 05:09:11 -0700 (PDT) Received: by 10.194.44.135 with HTTP; Thu, 17 May 2012 05:09:11 -0700 (PDT) In-Reply-To: References: Date: Thu, 17 May 2012 14:09:11 +0200 Message-ID: Subject: Re: Hierarchical comments Hacker News style From: Luca Matteis To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Thu, May 17, 2012 at 12:44 PM, Matthieu Rakotojaona wrote: > You could emit the parent's path and the post's points, instead of the > parent's path and the post's id : you'd have something like > > ["905"] // 905 points for post "1" > ["1","36"] // 36 points for post "1/4" > ["1","76"] // 76 points for post "1/2" > ["1","2","14"] // 14 points for post "1/2/3" I'm not quite sure I understand. If someone comments under "1/4", that would emit ["1", "4", "89"], but it won't go under the correct comment the ways you're emitting the keys. Or am I missing something?