sreta commented on a Page, Parent/Child Category Tree  -  Apr 09, 2009

This is nice. But, consider if you have 100 or more categories, how many times will you execute the query inside your function per request. You have already fetched all categories from a table. So, it would be much faster to pass an array of all categories as the second parameter and loop throughout them.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.