|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Nested Set or "Tree" Database critique needed
I'm working on a project for Source Forge and apparently some of the other developers aren't too interested in it. I haven't received any comments on a database design proposal I posted and I wanted to ask anyone out there to give it a look over and offer some critiques or suggestions.
The explanation (with graphics) can be found at: http://webbis.sourceforge.net/usap/...e/hhc_tree.html This is a database for a military unit to hold data on soldiers, but you can think of it as a database for a regular company that has a good hierarchal setup. Let me know if I need to explain anything in more detail. Any responses are appreciated. ---John Holmes... |
|
#2
|
|||
|
|||
|
Did you ever get a reply to solution? I have the exact same problem I need a solution to.
|
|
#3
|
||||
|
||||
|
I never got any responses, but this is the design I'm going to go with when I start programming the system. I think it's solid.
---John Holmes... |
|
#4
|
|||
|
|||
|
what if certain new character/role need to insert to the tree? all the numbers will be mess up?
|
|
#5
|
||||
|
||||
|
No, they won't. Adding nodes is one of the most costly things for a nested set model like this though. All of the nodes "above" the point where you want to add the new node need to be incremented. I can actually be done with a single query, though, but depending upon the size of the tree, it can be costly.
I can go into more detail if you want, but that's the basic idea. ---John Holmes... |
![]() |
| Viewing: Dev Shed Forums > Databases > Database Management > Nested Set or "Tree" Database critique needed |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|