MySQL Forums
Forum List  »  Performance

Re: Repeated Query Execution - Strange Behavior
Posted by: Peter Zaitsev
Date: December 31, 2004 07:43PM

If your box is not getting any other load this looks pretty strange. Performance quite frequently increases after first run because of caches warmed up but it would be strange for it to be dropping.

It could be there is some non-deterministic behavior somewhere which makes MySQL to select different plans for query execution.

You can check this by doing following for each query run:

execute query
run "SHOW STATUS" and save result.

Later compare SHOW STATUS results for runs you've done - they should be be
same or very close if query is executed the same way.

You can also try running EXPLAIN <query> and check if there are any changes for it.

Options: ReplyQuote

Written By
Re: Repeated Query Execution - Strange Behavior
December 31, 2004 07:43PM

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.