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

Get MySQL 8 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.