Using MySQL's Analysis Tools to Improve Query Performance | Linux Today

Using MySQL’s Analysis Tools to Improve Query Performance

Written By
Web Webster
Web Webster
Feb 19, 2011

“MySQL’s Explain Extended Explained

“One nice feature added to the EXPLAIN statement in MySQL 4.1 is
the EXTENDED keyword which provides you with some helpful
additional information on query optimization. It should be used
together with SHOW WARNINGS to get information about how query
looks after transformation as well as what other notes the
optimizer may wish to tell us. This article will demonstrate how to
use Explain Extended with Show Warnings to fine tune your Select
statements as well as how to rev up performance even more using
optimizer hints and SHOW STATUS.

“What the Extended Keyword Adds

“While it may look like a regular Explain statement, behind the
scenes, MySQL engineers the SQL statement into its optimized form.
Using Show Warnings afterwards prints out the optimized Select
statement. Examining it can give us a better idea of how MySQL is
interpretting our SQL. Here’s an example:

“The following query could be used to find how many employees
show up in the bonuses table. That is to say, how many employees
have received bonuses:”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.