Quantcast
Viewing all articles
Browse latest Browse all 5139

index advisor

hi,

can anyone please tell me how a secondary index can be deemed as effective?

 

i did trace for a user and the EXPLAIN shows:

Image may be NSFW.
Clik here to view.
6-12-2015 2-29-15 PM.jpg

 

Now after running index advisor and doing another EXPLAIN including the recommended secondary index, the new EXPLAIN shows:

Image may be NSFW.
Clik here to view.
6-12-2015 2-31-17 PM.jpg

Since the "Estimated Costs" (high-lighted in yellow) did not actually improve, this means that the recommended secondary index is not effective. Is my assumption correct? If not, how do I know if a secondary index is effective?

 

Thank you.


Viewing all articles
Browse latest Browse all 5139

Trending Articles