Re: Code optimization

From: Date: Fri, 07 Aug 2009 09:39:10 +0000
Subject: Re: Code optimization
References: 1 2 3 4 5 6  Groups: php.db 
Request: Send a blank email to php-db+get-46428@lists.php.net to get a copy of this message
On Fri, Aug 7, 2009 at 5:10 PM, kranthi<kranthi117@gmail.com> wrote: >>> You're assuming that. It could be the queries being run are the costliest. > > It has got nothing to do with the cost of query. bare mysql_connect() > is very costly. I'm not arguing with that, I'm saying that the cost of the mysql_connect could be nothing compared to doing a query on 50,000 rows and doing an order by random(). Of course I'm guessing about the number of rows - since the OP has given no indication on any of this it's all speculation until he spends some time figuring this stuff out. -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.db (#46428) next »