MySQL Forums
Forum List  »  Optimizer & Parser

Re: Index not used for JOIN on compound key plus WHERE range filter
Posted by: Rick James
Date: August 31, 2013 04:13PM

KEY `ix_appt` (`pk1`,`placePk2`,`when`),
-->
KEY `ix_appt` (`when`,`pk1`,`placePk2`),

That way, it can use the index to filter on `when`.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Index not used for JOIN on compound key plus WHERE range filter
1476
August 31, 2013 04:13PM


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.