Reply to comment

Hierarchical data in MySQL (nested sets)

http://dev.mysql.com/tech-resources/articles/hierarchical-data.html

Gives a great explenation of using left/right values to identify boundries of nested sets to make very efficient tree queries. Insertion and removal isn't too terribly difficult (at least through the use of MySQL functions). This'd be great if I ever needed to make a highly efficient tree set in MySQL.

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
I hate spam. Enjoy <3