MySQL Forums
Forum List  »  Performance

Re: how could this be?
Posted by: Sergey Petrunya
Date: November 21, 2004 04:04PM

> EXPLAIN shows that mysql is selecting the least optimal table order when
> the LIMIT clause is used, by correctly uses the optimal table order when LIMIT
> is not used. How can I force the table order?
You can force the table order by using STRAIGHT_JOIN modifer either for the entire join (http://dev.mysql.com/doc/mysql/en/SELECT.html) or only for some of joined tables (http://dev.mysql.com/doc/mysql/en/JOIN.html).

Sergey Petrunia, Software Developer
MySQL AB, www.mysql.com
My blog: http://s.petrunia.net/blog

Options: ReplyQuote


Subject
Views
Written By
Posted
3245
November 20, 2004 01:58PM
2315
November 21, 2004 02:33AM
Re: how could this be?
2245
November 21, 2004 04:04PM
2312
November 21, 2004 04:16PM


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.