MySQL Forums
Forum List  »  Performance

Slow select queries after update
Posted by: Geir Øyvind Vælidalo
Date: August 13, 2012 02:37AM

Hi all,

I'm a developer, fairly new to MySQL and I have recently gotten the responsibility for a PHP/MySql-webapplication.

My problem is that after a simple UPDATE, a certain webpage is being refreshed.
The page's SELECT-queries are then executed ten times slower than usual. It takes 5 seconds to load, instead of just 500ms.
The problem is definitively caused by the UPDATE. The update takes just 50-100 ms to execute, but all the following SELECTS are dead slow.

The update sets a new value in one column in a table with 94k rows, so nothing spectacular.

Do any of you have any suggestions to a solution for this?

Thanks!

Geir Øyvind Vælidalo

Options: ReplyQuote


Subject
Views
Written By
Posted
Slow select queries after update
2823
August 13, 2012 02:37AM
1404
August 13, 2012 03:11AM
1338
August 19, 2012 09:32PM


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.