MySQL Forums :: Performance :: Query Takes Longer Each Time Its Run


Advanced Search

Query Takes Longer Each Time Its Run
Posted by: anthony ()
Date: January 26, 2011 02:59PM

We currently have a MySQL 5.1 production server running on CentOS 5.5. The database has about 5 millions rows. We have a fairly complex query used to generate a report which involves multiple table joins. Its fully indexed and optimized. On our production server, it runs consistently in about .4 ms.

We have built a new system with twice the ram running on CentOS 5.5 and MySQL 5.5.
I've tweaked the config file on the new machine with similar settings as our current production machine, adjusting some things to take advantage of the additional memory. I did a mysqldump of the current production database system and the imported it into the new 5.5 system.

The problem is the same query which runs on the production system in ~.4 ms take ~2.5 seconds on the new machine. Even worse, re-running it over and over consistently adds ~5 to the run time (ie 2.5, 8, 13.5 seconds ...). The tables and indexes are identical.

I've never seen this issue and have no idea what to look for which could be causing this. Let me know what relevant information I can post in helping to solve this.

Thanks,
Anthony

Options: ReplyQuote


Subject Views Written By Posted
Query Takes Longer Each Time Its Run 3138 anthony 01/26/2011 02:59PM
Re: Query Takes Longer Each Time Its Run 1073 Shawn Taylor 01/27/2011 02:04PM
Re: Query Takes Longer Each Time Its Run 1059 anthony 01/27/2011 02:35PM
Re: Query Takes Longer Each Time Its Run 1088 Rick James 01/27/2011 10:35PM
Re: Query Takes Longer Each Time Its Run 1147 anthony 01/27/2011 10:59PM
Re: Query Takes Longer Each Time Its Run 985 Rick James 01/28/2011 10:02AM
Re: Query Takes Longer Each Time Its Run 1426 anthony 01/28/2011 01:38PM
Re: Query Takes Longer Each Time Its Run 972 Rick James 01/29/2011 01:18AM
Re: Query Takes Longer Each Time Its Run 991 anthony 01/30/2011 07:20PM
Re: Query Takes Longer Each Time Its Run 925 Rick James 01/30/2011 11:02PM
Re: Query Takes Longer Each Time Its Run 930 anthony 01/31/2011 01:22AM
Re: Query Takes Longer Each Time Its Run 1136 anthony 01/31/2011 01:25AM
Re: Query Takes Longer Each Time Its Run 1018 Rick James 02/01/2011 12:38AM
Re: Query Takes Longer Each Time Its Run 981 Rick James 02/01/2011 12:56AM
Re: Query Takes Longer Each Time Its Run 1011 anthony 02/01/2011 01:23PM
Re: Query Takes Longer Each Time Its Run 1166 Rick James 02/01/2011 08:41PM
Re: Query Takes Longer Each Time Its Run 1704 anthony 02/03/2011 02:04PM
Re: Query Takes Longer Each Time Its Run 1148 Rick James 02/15/2011 09:24PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.