Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: tree structure of database

by pajout (Curate)
on Sep 25, 2009 at 15:22 UTC ( [id://797540]=note: print w/replies, xml ) Need Help??


in reply to Re^2: tree structure of database
in thread tree structure of database

I agree... I would like to just share my experience.

I implemented some tree data structure in sql a few times. Ever implementation was different, not only due to rdbms capabilities, but due to different requirements. I think it is very important to exactly define what data structure have to be layered and what operations have to be performed on it. For instance, is the order of child nodes important? Is serialization of the huge tree frequent task? What about concurrent access to the nodes of the same branch?

Like classic normalization, my experience says that it is generally better to minimize logical relations between rows of the same table, otherwise sql queries become mastodonts.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://797540]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-25 03:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found