My Oracle Support Banner

How the MySQL Optimizer Calculates the Cost of a Query (Doc ID 1327497.1)

Last updated on SEPTEMBER 04, 2023

Applies to:

MySQL Server - Version 4.0 and later
Information in this document applies to any platform.


Understand how MySQL optimizer calculates the cost of a query and how to analyze the output of EXPLAIN statements.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 Making Changes to the Cost Model Database
 Example of Actual Number of Rows Examined

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.