incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Matteis <lmatt...@gmail.com>
Subject Re: Hierarchical comments Hacker News style
Date Thu, 17 May 2012 12:09:11 GMT
On Thu, May 17, 2012 at 12:44 PM, Matthieu Rakotojaona
<matthieu.rakotojaona@gmail.com> 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?

Mime
View raw message