MySQL Forums
Forum List  »  Performance

Re: Query Optimization Needed
Posted by: Peter Brawley
Date: February 11, 2015 12:42PM

The usual rule of thumb for a covering index is WHERE clause columns then JOIN columns then Select columns. Did you try index(created_on,user_id,deviceid)? If that doesn't help, let's see the result of Explain Extended on the query.



Edited 1 time(s). Last edit at 02/12/2015 12:53PM by Peter Brawley.

Options: ReplyQuote


Subject
Views
Written By
Posted
1674
February 11, 2015 01:31AM
Re: Query Optimization Needed
753
February 11, 2015 12:42PM
855
February 12, 2015 03:51AM
788
February 12, 2015 01:24PM
754
February 13, 2015 06:53AM
687
February 13, 2015 07:36AM
709
February 14, 2015 01:04AM
785
February 15, 2015 11:07PM
802
February 16, 2015 12:15AM
661
March 13, 2015 11:15AM


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.