MySQL Forums
Forum List  »  Optimizer & Parser

Re: Query Tuning for NOT EQUAL TO <> operator
Posted by: Vlad Pilly
Date: January 19, 2011 11:33AM

you must add index for column ip


ALTER TABLE log_count
ADD INDEX IX_log_count_ip (ip);

ALTER TABLE log_count_arch
ADD INDEX IX_log_count_arch_ip (ip)

After that, look at the result of EXPLAIN.

__
MySQL forever!



Edited 1 time(s). Last edit at 01/19/2011 11:47AM by Vlad Pilly.

Options: ReplyQuote


Subject
Views
Written By
Posted
10770
October 22, 2010 07:42AM
Re: Query Tuning for NOT EQUAL TO <> operator
2584
January 19, 2011 11:33AM


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.