If possible, use recursive SQL to do this; that way you only have one query, which will perform much better.
http://www.oreilly.com/catalog/sqlpr/chapter/ch01.pdf (from a book worth it's tiny weight in gold). -----Original Message----- From: C. Hatton Humphrey [mailto:[EMAIL PROTECTED] Sent: Tuesday, 22 February 2005 3:57 To: CF-Talk Subject: Recursive Function Question I am working on an admin module for a (fairly) simple site and wanted to try the "Less Is Better" approach with my code. I'm building an interface to maintain a category tree for a FAQ posts where I'm storing a one-to-many parent/child relationship. [snip] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:195851 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

