MySQL Forums
Forum List  »  Optimizer & Parser

Re: Compound index (pkey) not used when it should be
Posted by: Øystein Grøvlen
Date: December 01, 2017 10:10AM

Hi,

Unfortunately, MySQL does not recognize that an index range scan can be used for "(x,y) >= (a,b)". Try rewriting the query to use "(x > a) OR (x = a AND y >= b)".

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

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Compound index (pkey) not used when it should be
594
December 01, 2017 10:10AM


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.