Simple Automation - Examining your MySQL Index Usage | Linux Today

Simple Automation – Examining your MySQL Index Usage

Written By
Web Webster
Web Webster
Nov 2, 2010

“In the majority of MySQL systems, the schema is always updated
and changed based on the needs and focus of the application, making
it somewhat difficult to keep up with all of the changes that come
down the pipe. Chris Schneider shows you how to gauge the index
usage in a system, using grep, awk and sed.

“Knowing how to index a schema based on the queries using the
system is a great skill to have. In the majority of the systems I
have worked on, the schema is always updated and changed based on
the needs and focus of the application. That said, it can be
somewhat difficult to keep up with all of the changes that come
down the pipe, especially if there are many changes every week. To
help identify the indexes that are being used there are a few tools
out there to help. One of the best resides in the MAAKIT called,
mk-index-usage.

“Unfortunately, I was working with an older version of the
Maatkit and didn’t realize that this tool had already been created
then added to the already stellar Maatkit. In this article, I will
go through the process that I used to gauge the index usage in a
system I stepped into in my current position. I thought this might
be a good way to show that using grep, awk and sed can be very
helpful with just about anything.”


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.