Mysql – thesql 5.0.23 vs 5.5 performance benefits and upgrade issues

indexingMySQLmysql5

I have been told that mysql 5.5 has a significant performance boost compared to 5.0

Our server handles a lot of data (around 30 million records processed per 5-10 seconds) and requires every drop of performance boost we can give. Will it be beneficial if we upgrade from 5.0.23 to mysql 5.5?

Also, we have lots of database indexes setup on the tables and I've been told that sometimes the indexes become corrupt after a version upgrade and they have to be rebuilt. Is this true?

Best Answer

The answer with MySQL is always, "it depends". That being said where 5.5 is going to give you a huge improvement on boxes with 16 cores and higher. If you use the InnoDB storage engine, then there is a good chance that you will get better performance too. The best way to find out is to get a test box and run it through a performance test of your system.

As far as upgrades go, the safest way to upgrade tends to be a dump and reload. It eliminates most possible issues. I have successfully upgrade from 5.0 to 5.1 just using mysql_upgrade. I don't know of any particular issues with indexes getting hosed by an upgrade to 5.5. (Though I haven't upgraded any of our production boxes to 5.5 yet. Test boxes haven't had issues.) If you do go the upgrade route without a dump/restore, make sure to read the docs on the web site. 5.5 behaves differently than the upgrade from 5.0 to 5.1 did.

Related Topic