O'Reilly logo

MySQL 8 Cookbook by Karthik Appigatla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Checking index usage

In the preceding section, you learned about removing redundant and duplicate indexes. While designing an application, you might have thought about filtering a query based on a column and added index. But over a period of time, because of changes in the application, you might not need that index. In this section, you will learn about identifying those unused indexes.

There are two ways you can find unused indexes:

  • Using pt-index-usage (covered in this section)
  • Using sys schema (covered in the next section)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required