My suggestion...

Cache the data (application-scope variable) then use local UDFs or a CFC
to manage processing.

-- 
Damien McKenna - Web Developer - [EMAIL PROTECTED]
The Limu Company - http://www.thelimucompany.com/ - 407-804-1014
#include <stdjoke.h>
 

> -----Original Message-----
> From: Ian Buzer [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, December 23, 2004 4:04 AM
> To: CF-Talk
> Subject: In One?
> 
> Hi,
> 
> This has been bugging me for about 3 years now, and I've 
> finally decided to see if I can beat it (er... well see if I 
> can find someone else that can beat it :)
> 
> I've got a db table with a typical category heirachy structure:
> 
> categoryId, parentCategoryId, categoryName,  etc..
> 
> Given a particular categoryId, is it possible to get the path 
> back to the root category in only one db query? (given that 
> the depth of the category in the structure is unknown).
> 
> Ian
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - New Atlanta
http://www.newatlanta.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:188647
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

Reply via email to