Have you extended nested sets for hierarchical data modeling involving multiple parent nodes for a child node? What are your experiences?

前端 未结 2 1755
被撕碎了的回忆
被撕碎了的回忆 2021-02-10 07:10

I am looking to use this concept in one of my upcoming project.

More info: Managing Hierarchical Data in MySQL.

Please share your experiences good or bad with ex

2条回答
  •  太阳男子
    2021-02-10 07:27

    Your requirement for multiple parents immediately violates the fundamental nature of nested sets, as pointed out in your referenced article, so I'd say you're headed for trouble to start with. Since you'll be using a relational database, which (using it's core capabilties) will handle everything you've described so far, I think just working in that conceptual framework and polishing your skills will provide everything you need, without adding additional abstractions that (at least in this case) don't add any value.

    If you still want to go there, I'd call this a networked node structure. Here's a reference.

提交回复
热议问题