2010-12-22, 10:25 PM
I just upgraded HF to 1.6x from 1.4x. So far it's a nightmare but I'm going to try to make suggestions and give feedback. Given I'm not eligible for official support I'm stuck doing this all by myself. I'm going to try to keep this thread positive and hope my comments are taken seriously.
I run a separate MySQL server that a dual quad-core and 18gb ram. The DB size is about 5.5Gb. So this is a big site as most of you know.
Before the upgrade I had some custom edits but not really a lot to enhance performance. Most was for display to guests or simple edits on how I wanted the site to look. My core edits I've noted with a diff file.
The upgrade script itself took 3 hours mainly from the 5000 posts per query to upgrade the longipaddress. It just ran for hours.
Next during the upgrade process the install was hacked and someone altered the settings on me. I don't have time to chase this down now but it's there. Member confirm they know how to do it and well...it was done. Didn't take me long to fix it but it caused a side effect. All my settings were tripled. I fixed that too but now I have some weirdness in settings. I'll address that later.
So I did my template checks (Updated Templates feature) and that went well imho. Then I turned the site on. Immediately load on mysql jumped very high...3-4 times higher than on 1.4x. And no there was no attack.
Here are 2 things right now I found to be a problem.
1. Group By was added to the query to get threads in forumdisplay.php. Not only was this not necessary but it's detrimental.
http://dev.mysql.com/tech-resources/arti...myths.html
That was results...I had constant tmp tables being created. Created from already massive tables. A real problem. After removing the Group By line mysql CPU usage dropped by nearly half.
2. The new PM search function is great but with a couple problems. The "fromid" column is not indexed. It should be. It's used often in the search queries and I had serious detrimental performance issues from not having an index there. I've confirmed that a fresh install and 1.4x upgrades do not have indexes. Technically this is a bug imho and hopefully MyBB will fix that in 1.6.2.
3. I'm having performance issues with the thread ratings query...well the whole damn query for threads actually in forumdisplay. I'd like to simply suggest that MyBB consider a switch to globally disable rating views or at least one per group.
Lots of new features are in MyBB 1.6x and it would be nice if those features had global options to disable them.
I'll update this as I go on.
Thank for reading.
I run a separate MySQL server that a dual quad-core and 18gb ram. The DB size is about 5.5Gb. So this is a big site as most of you know.
Before the upgrade I had some custom edits but not really a lot to enhance performance. Most was for display to guests or simple edits on how I wanted the site to look. My core edits I've noted with a diff file.
The upgrade script itself took 3 hours mainly from the 5000 posts per query to upgrade the longipaddress. It just ran for hours.
Next during the upgrade process the install was hacked and someone altered the settings on me. I don't have time to chase this down now but it's there. Member confirm they know how to do it and well...it was done. Didn't take me long to fix it but it caused a side effect. All my settings were tripled. I fixed that too but now I have some weirdness in settings. I'll address that later.
So I did my template checks (Updated Templates feature) and that went well imho. Then I turned the site on. Immediately load on mysql jumped very high...3-4 times higher than on 1.4x. And no there was no attack.
Here are 2 things right now I found to be a problem.
1. Group By was added to the query to get threads in forumdisplay.php. Not only was this not necessary but it's detrimental.
http://dev.mysql.com/tech-resources/arti...myths.html
Quote:What I think that is happening is that MySQL takes the GROUP BY clause literally and performs the GROUP BY algorithm for each of the specified expressions. MySQL implements GROUP BY by sorting the rows according to the GROUP BY expressions. In this particular case, adding the title column to the GROUP BY clause does not allow the server to sort the rows in-memory, and forces the GROUP BY to be evaluated using a temporary table and a file sort. This requires extra IO operations which is causing a decrease in performance.
That was results...I had constant tmp tables being created. Created from already massive tables. A real problem. After removing the Group By line mysql CPU usage dropped by nearly half.
2. The new PM search function is great but with a couple problems. The "fromid" column is not indexed. It should be. It's used often in the search queries and I had serious detrimental performance issues from not having an index there. I've confirmed that a fresh install and 1.4x upgrades do not have indexes. Technically this is a bug imho and hopefully MyBB will fix that in 1.6.2.
3. I'm having performance issues with the thread ratings query...well the whole damn query for threads actually in forumdisplay. I'd like to simply suggest that MyBB consider a switch to globally disable rating views or at least one per group.
Lots of new features are in MyBB 1.6x and it would be nice if those features had global options to disable them.
I'll update this as I go on.
Thank for reading.