Slow MySQL
Having severe load issues with http://oliviafrolich.dk.. Please look into it..
1
person has this problem
I have this problem, too!
Tell me when someone solves it.
The more people who report this problem, the more it gets noticed.
The more people who report this problem, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Show a DESCRIBE for the slow queries:
http://dev.mysql.com/doc/refman/4.1/e... -
Inappropriate?Thanks, Jacob.. But I don't get it.. Never heard of DESCRIBE before, and when I run it in phpMyAdmin, it gives something similar to what SELECT would have..
I’m happy that Jacob seems to have a clue what he's talking about, and even happier, that I might soon too..
-
Inappropriate?If this is your SQL:
SELECT * FROM users WHERE id = 1
Show me/us the output of:
DESCRIBE SELECT * FROM users WHERE id = 1
That way we can see if your SQL is using indexes.
I’m happy I can help
-
Inappropriate?Alright.. That makes a bit more sense to me.. Well, the query I run on the front page there is:
"FROM table WHERE field = 'value' ORDER BY id DESC"
If I put "DESCRIBE" in front of that, PHPMyAdmin gives me this..
id = 1
select_type = SIMPLE
table type = items
possible_keys = ALL
key = NULL
key_len = NULL
ref = NULL
rows = 2
Extra = Using where; Using filesort
-
Inappropriate?Is there a key on "field"?
"Using filesort" is bad. But 2 rows shouldn't be a problem.
What do you select?
If you would like to get max speed you need an index that covers your WHERE, ORDER BY and SELECT. This way MySQL only needs to look in the index.
At least there should be an index that covers WHERE and ORDER BY in that order.
I'll see if I can find out how to see the connect time while leaving out the query time.
I’m curious
-
Inappropriate?The 'slow' log is invaluable for me, to know what uses up resources. But that's only if you control the my.cnf and have access to the logs. I use this in my.cnf:
set-variable = long_query_time=1
log-slow-queries
-
Inappropriate?Thanks, Flemming.. Don't have access though..
Whether I have tweaked the code to absolute perfection or not, it seems to me there's no doubt the error is with Gigahost..
I've installed the exact same script here (web5.gigahost.dk rather than web9.gigahost.dk), and hooked it up with an exact copy of the database (mysql2.gigahost.dk rather than mysql3.gigahost.dk)..
Load time has dramatically improved..
Thanks for your help, you guys, but this is a Gigahost issue, and hopefulle they'll own up to it soon..
I’m happy it's not my bad..!
Loading Profile...





