Skip navigation links

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 2516 anthony 01/26/2011 02:59PM
Re: Query Takes Longer Each Time Its Run 796 Shawn Taylor 01/27/2011 02:04PM
Re: Query Takes Longer Each Time Its Run 765 anthony 01/27/2011 02:35PM
Re: Query Takes Longer Each Time Its Run 832 Rick James 01/27/2011 10:35PM
Re: Query Takes Longer Each Time Its Run 851 anthony 01/27/2011 10:59PM
Re: Query Takes Longer Each Time Its Run 728 Rick James 01/28/2011 10:02AM
Re: Query Takes Longer Each Time Its Run 1140 anthony 01/28/2011 01:38PM
Re: Query Takes Longer Each Time Its Run 679 Rick James 01/29/2011 01:18AM
Re: Query Takes Longer Each Time Its Run 716 anthony 01/30/2011 07:20PM
Re: Query Takes Longer Each Time Its Run 656 Rick James 01/30/2011 11:02PM
Re: Query Takes Longer Each Time Its Run 607 anthony 01/31/2011 01:22AM
Re: Query Takes Longer Each Time Its Run 815 anthony 01/31/2011 01:25AM
Re: Query Takes Longer Each Time Its Run 739 Rick James 02/01/2011 12:38AM
Re: Query Takes Longer Each Time Its Run 728 Rick James 02/01/2011 12:56AM
Re: Query Takes Longer Each Time Its Run 721 anthony 02/01/2011 01:23PM
Re: Query Takes Longer Each Time Its Run 878 Rick James 02/01/2011 08:41PM
Re: Query Takes Longer Each Time Its Run 1470 anthony 02/03/2011 02:04PM
Re: Query Takes Longer Each Time Its Run 905 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.