On Mon, Nov 10, 2008 at 8:55 AM,  <[EMAIL PROTECTED]> wrote:
>
>> I've found that I don't mind a few well organized database calls per
>> page for the information I need.
>
> Opening up a database connection is very expensive.
>
> Sending one more simple / fast query is dirt cheap.
>
> Time it on your system with http://php.net/microtime and see.
>
>

Perhaps, but the examples I usually find when cleaning up code are of
the variety where a script executes one statement to find a list of
parent records, iterates through those records and inside the loop it
executes another statement (sometimes multiple statements!) to get the
details, update records, etc.

Andrew

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to