Efficient database trees


Version: 1.1
Category:
Scripts
Python
Requirements:
Seller:
Price:
-
System:
Rating:
4.7
License:

Description - Efficient database trees



Sometimes it can be hard to work out a way of efficiently representing a tree in the database. Combining modified preorder tree traversal with a parent child model allows most common queries to be represented in a single SQL Query. This example uses MySQLdb, but can easy be changed to use any DBI compatable module.



More in Python-Efficient database trees

Database Trees Efficient Database Trees