Newbie Q: Fetching vs. Looping

From: Date: Sat, 29 Jun 2002 21:09:40 +0000
Subject: Newbie Q: Fetching vs. Looping
Groups: php.general 
Request: Send a blank email to php-general+get-104528@lists.php.net to get a copy of this message
Hello Again, Folks, I've been testing this for a while and keep coming up with mixed results. In general, is it faster and more efficient to query a MySQL database once with a large SQL select statement and then loop through the huge resulting table? Or does it make better sense to perform a number of smaller queries with smaller resulting tables? This is the kind of stuff they just don't seem to talk about in the manuals. Any insight is appreciated. Sorry for the ignorant question! Jed

« previous php.general (#104528) next »