On Fri, Aug 7, 2009 at 5:10 PM, kranthi<kranthi...@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/

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

Reply via email to