MySQL Forums
Forum List  »  Performance

Re: index not being pick up
Posted by: Benoit St-Jean
Date: January 16, 2018 07:49PM

Since you are using a function, index cannot be used. However, the 2 functions in your query just return the value of a variable. So storing those 2 variables in a table would allow you to add a JOIN and give MySQL a chance to use the proper index.

Options: ReplyQuote


Subject
Views
Written By
Posted
1218
r r
January 15, 2018 11:57PM
505
January 16, 2018 12:19AM
452
January 16, 2018 04:39PM
Re: index not being pick up
479
January 16, 2018 07:49PM
494
January 17, 2018 12:26AM
481
January 17, 2018 01:07AM
703
January 17, 2018 01:19AM
513
January 17, 2018 12:41PM
479
January 19, 2018 07:26AM
486
January 21, 2018 04:31PM
452
January 21, 2018 05:41PM
535
January 22, 2018 03:00AM


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.