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

Performance Tuning

In this chapter, we will cover the following recipes:

  • The explain plan
  • Benchmarking queries and the server
  • Adding indexes
  • Invisible index
  • Descending index
  • Analyzing slow queries using pt-query-digest
  • Optimizing datatypes
  • Removing duplicate and redundant indexes
  • Checking index usage
  • Controlling the query optimizer
  • Using index hints
  • Indexing for JSON using generated columns
  • Using resource groups
  • Using performance_schema
  • Using the sys schema

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