DEV Community

Discussion on: Understanding MySQL Index Basics

Collapse
 
viralpatelblog profile image
Viral Patel

Katie, you are correct. One of the most commonly used tools is the EXPLAIN command which shows you the execution plans of the query. Read this guideon how to use Explain command to optimize your query.

Collapse
 
katnel20 profile image
Katie Nelson

Thanks Viral. It's not graphical like SQL Server, and I think it will take some time to weed through the output and see what's going on. I guess it just takes some time to learn. One more challenge for me!

Thread Thread
 
katnel20 profile image
Katie Nelson

Oops. I just looked around in MySQL Workbench and found a graphical output for EXPLAIN. So much better now šŸ˜Š

I see some Non-Unique Key Lookups that are taking all the execution time.

Thread Thread
 
viralpatelblog profile image
Viral Patel

That's great.