My Oracle Support Banner

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

Last updated on MARCH 16, 2019

Applies to:

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

Goal

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

Solution

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
Goal
Solution
 Making Changes to the Cost Model Database
 InnoDB
 Example of Actual Number of Rows Examined
References


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