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 2482 anthony 01/26/2011 02:59PM
Re: Query Takes Longer Each Time Its Run 790 Shawn Taylor 01/27/2011 02:04PM
Re: Query Takes Longer Each Time Its Run 749 anthony 01/27/2011 02:35PM
Re: Query Takes Longer Each Time Its Run 819 Rick James 01/27/2011 10:35PM
Re: Query Takes Longer Each Time Its Run 846 anthony 01/27/2011 10:59PM
Re: Query Takes Longer Each Time Its Run 719 Rick James 01/28/2011 10:02AM
Re: Query Takes Longer Each Time Its Run 1123 anthony 01/28/2011 01:38PM
Re: Query Takes Longer Each Time Its Run 674 Rick James 01/29/2011 01:18AM
Re: Query Takes Longer Each Time Its Run 708 anthony 01/30/2011 07:20PM
Re: Query Takes Longer Each Time Its Run 642 Rick James 01/30/2011 11:02PM
Re: Query Takes Longer Each Time Its Run 596 anthony 01/31/2011 01:22AM
Re: Query Takes Longer Each Time Its Run 804 anthony 01/31/2011 01:25AM
Re: Query Takes Longer Each Time Its Run 714 Rick James 02/01/2011 12:38AM
Re: Query Takes Longer Each Time Its Run 717 Rick James 02/01/2011 12:56AM
Re: Query Takes Longer Each Time Its Run 709 anthony 02/01/2011 01:23PM
Re: Query Takes Longer Each Time Its Run 870 Rick James 02/01/2011 08:41PM
Re: Query Takes Longer Each Time Its Run 1464 anthony 02/03/2011 02:04PM
Re: Query Takes Longer Each Time Its Run 895 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.