Hi, I have read a lot about optimization, and I actually own some books but I am thrown for a loop on this one.
I have this one site that slows down all my others because the queries are so massive.
For example one of these queries I use to-do a search by a user's account number. I also get the position he is at on the list, and in order to-do that I need to select ALL the rows.
For example, I filter out the other queries in php.
But my point is this one query should not be slowing down my site, I have a lot more queries running now, because this one used to be fine. I know about optimization and my MySQL settings look fine to me.
Any Suggestions,
Thanks,
Andrew
I have this one site that slows down all my others because the queries are so massive.
For example one of these queries I use to-do a search by a user's account number. I also get the position he is at on the list, and in order to-do that I need to select ALL the rows.
For example, I filter out the other queries in php.
Code:
$num = 1;
$q = mysql_query('SELECT * FROM lists');
while($r = mysql_fetch_assoc($q))
{
if($r['account']=='accountNum')
{
print 'You are at pos. num '.$num.'<br>';
}
$num++;
}
But my point is this one query should not be slowing down my site, I have a lot more queries running now, because this one used to be fine. I know about optimization and my MySQL settings look fine to me.
Any Suggestions,
Thanks,
Andrew