Recursive Threading

From: Date: Thu, 03 Jan 2002 16:54:47 +0000
Subject: Recursive Threading
Groups: php.general 
Request: Send a blank email to php-general+get-79373@lists.php.net to get a copy of this message
I'm using recursive threading for a simple thread board script, but the problem is the # of queries needed to execute. That is, once given the main thread post, it'll have to find all the posts where the parentID matches the current ID, then requery again for each of the post. So I'm trying to discover a way to limit the amount of querying, possibly there is some type of algo I don't know about or a method using arrays. Any wisdom on this is greatly appreciated.

« previous php.general (#79373) next »