Re: object persistence within a session

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Nov 10, 2008 at 8:55 AM,  <ceo@xxxxxxxxx> 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux