MySQL Forums
Forum List  »  Optimizer & Parser

Re: strange query performance
Posted by: Toa Sty
Date: October 03, 2006 02:43AM

Hi Eugene,

Have you run analyze table on these tables recently?

You can get strange joining orders sometimes if your index stats are very out of date.

Using STRAIGHT_JOIN is ok sometimes, but you have to remember to check occasionally to see if your data distribution has changed such that it's no longer the best join order for you. Without STRAIGHT_JOIN (but assuming reasonably up to date index stats) MySQL will usally do a very good job of choosing the best join order based on your data distribution etc.

Toasty

-----------------------------------------
email: 'toasty'*3 at gmail

Options: ReplyQuote


Subject
Views
Written By
Posted
2998
October 01, 2006 08:56AM
1974
October 01, 2006 11:56AM
Re: strange query performance
1945
October 03, 2006 02:43AM


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.