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

后端 未结 13 1562
悲&欢浪女
悲&欢浪女 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条回答
  • 2021-01-30 00:39

    Just spent the weekend at a training course using MUMUPS db as a back-end for a full stack javascript browser application development framework. Great stuff! I'd recommend GT.M distro of MUMPS under GPL. Or try http://sourceforge.net/projects/mumps/?source=recommended for vanilla MUMPS. Check out http://robtweed.wordpress.com/ for ewd.js js framework and more info on MUMPS.

    0 讨论(0)
  • 2021-01-30 00:41

    LDAP, obviously. OpenLDAP would make short work of it.

    0 讨论(0)
  • 2021-01-30 00:42

    What you possibly need is a document-oriented database like MongoDB or CouchDB.

    See examples of different techniques which allow you to store hierarchical data in MongoDB: http://www.mongodb.org/display/DOCS/Trees+in+MongoDB

    0 讨论(0)
  • 2021-01-30 00:43

    This is graph database. Can be used as tree database.

    http://neo4j.com/

    0 讨论(0)
  • 2021-01-30 00:45

    In mathematics, and, more specifically, in graph theory, a tree is an undirected graph in which any two vertices are connected by exactly one path. So any graph db will do the job for sure. BTW an ordinary graph like a tree can be simply mapped to any relational or non-relational DB. To store hierarchical data into a relational db take a look at this awesome presentation by Bill Karwin. There are also ORMs with facilities to store trees. For example TypeORM supports the Adjacency list and Closure table patterns for storing hierarchical structures.

    TypeORM is used in TypeScript\Javascript development. Check popular ORMs to find a one supporting trees based on your environment.

    The king of Non-relational DBs [IMHO] is Mongodb. Check out it's documentation. to find out how it stores trees. Trees are the most common kind of graphs and they are used everywhere. Any well-established DB solution should have a way to deal with trees.

    0 讨论(0)
  • 2021-01-30 00:49

    The most common one is IBM's IMS.There is also Cache Database

    See this question posted on dba section of stackexchange.

    0 讨论(0)
提交回复
热议问题