This might be useful. The implementation in the article is SQL, but I think
the algorithm is probably relevant.

http://www.sitepoint.com/hierarchical-data-database-2/

---------------------------
www.maf.org/rhoads
www.ontherhoads.org


On Thu, Feb 21, 2013 at 9:13 PM, Michael Heuberger <
[email protected]> wrote:

> Hello guys
>
> I'd like to store messages in a tree like structure. Whenever you reply to
> a message, then the original message becomes the parent message.
>
> How would you implement something like this in CouchDB? Just curious and
> need a little guidance + advice here.
>
> Thanks,
> Michael
>
> --
>
> Binary Kitchen
> Michael Heuberger
> 4c Dunbar Road
> Mt Eden
> Auckland 1024
> (New Zealand)
>
> Mobile (text only) ...  +64 21 261 89 81
> Email ................  [email protected]
> Website ..............  http://www.binarykitchen.com
>
>

Reply via email to