MySQL Forums
Forum List  »  Optimizer & Parser

Executing same query in 1 moment
Posted by: Brano Gerzo
Date: November 19, 2011 09:27AM

Hi all,

I got a problem on highly visited website. Let's say I am caching few of queries, which are quite hard for mysql - let's say some statistics for last month, or few days ago, anyway - they took around 5 seconds to complete, and there is no way to optimize them more.

I run into the problem - I see in mytop, mysql is executing roughly 20 same queries in the same time. Is there some workaround, how to force mysql will execute just one of these queries ? When, there are 20 same queries executed in same time (then they are cached), I got high load on db box, and other queries are blocked (MyISAM).

I am thinking to make some locking into memcache, but I am not sure, if this is right approach. If you got some articles about this problem, post, I will read them.


Options: ReplyQuote

Written By
Executing same query in 1 moment
November 19, 2011 09:27AM
November 20, 2011 04:42PM
November 20, 2011 10:31PM
November 22, 2011 12:05AM
November 21, 2011 12:42AM

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.