MySQL Forums
Forum List  »  Optimizer & Parser

Re: Compound index (pkey) not used when it should be
Posted by: Dan Parker
Date: December 01, 2017 10:36AM

Thank you. That does in indeed cause the PRIMARY key to be used, and the query performance is as expected.

It seems rather odd that the optimizer would be unable to recognize the applicability of a composite index when evaluating a very simple query where every relevant clause EXACTLY matches the structure of that index.

Options: ReplyQuote


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


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.