On Thu, May 17, 2012 at 2:09 PM, Luca Matteis <[email protected]> wrote: > 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?
The view is just here to give you a representation of your database; it doesn't tell you where you can comment. If you comment under "1"/"4", it will have a new id (say "6"), and its parent's path will be "1"/"4". Its points will be "1" (or whatever the default number of point is; I assume it is 1 when you create a new comment). Now, when you will query the view another time, it will be reorganised to take the new comment into account, and you will see it with "1" as the number of points: ["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" ["1","4","1"] // 1 point for post "1/4/6" -- Matthieu RAKOTOJAONA
