MySQL Forums
Forum List  »  Optimizer & Parser

Re: Query Tuning for NOT EQUAL TO <> operator
Posted by: Rick James
Date: October 26, 2010 10:40PM

When you JOIN two tables, you usually need to say how they are connected. Without it it will take all the rows from one table TIMES all the rows from the other. This can take days. Literally.

After you have fixed that, then consider adding
INDEX(ip, uid)

Options: ReplyQuote


Subject
Views
Written By
Posted
10620
October 22, 2010 07:42AM
Re: Query Tuning for NOT EQUAL TO <> operator
2445
October 26, 2010 10:40PM


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.