What type of NoSQL database is best suited to store hierarchical data?

后端 未结 13 1732
悲&欢浪女
悲&欢浪女 2021-01-30 00:07

What type of NoSQL database is best suited to store hierarchical data?

Say for example I want to store posts of a forum with a tree structure:

original p         


        
13条回答
  •  萌比男神i
    2021-01-30 00:25

    Here's a non-answer for you. SQLServer 2008!!!! It's great for recursive queries. Or you can go the old fashioned route and store hierarchy data in a separate table to avoid recursion.

    I think relational databases lend themselves very well to tree data. Both in query performance and ease of use. With one caveat.... you will be inserting into an indexed table, and probably several other indexed tables every time someone makes a post. Insert performance could be an issue on a facebook caliber forum.

提交回复
热议问题