MySQL Forums
Forum List  »  Performance

Re: What index to use for "where col is IS NOT NULL" query
Posted by: Øystein Grøvlen
Date: October 25, 2013 12:29AM

Hi,

The only possible index is an index on the R_TIMEOUT column. Not sure how much it will help you, though. For the given query, unless more than 80-90% of column values are null, a full table scan will normally be quicker than going through an index to find relevant records.

Øystein Grøvlen,
Senior Principal Software Engineer,
MySQL Group, Oracle,
Trondheim, Norway

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: What index to use for "where col is IS NOT NULL" query
826
October 25, 2013 12:29AM


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.