fforw.de
  • Home
  • About
  • Demos
  • Tools

database

A collection of 1 post
algorithm

Storing hierarchical data in a database

When looking for a good way to store nested comments in a SQL database I stumbled upon the explanation of an algorithm called “modified preorder tree traversal” algorithm [2]. Instead of storing a parent-child relationship into the database and having to do one SQL query for every node, it allows
24 May 2006 1 min read
Page 1 of 1
fforw.de © 2026
  • Sign up
Powered by Ghost