Duplicate index checker improved

I’ve just improved the MySQL duplicate index checker I whipped together a few days ago. As I guessed, my hasty coding left some things to be desired. I’ve fixed some bugs, added support for finding duplicate foreign keys, and switched to a command-line parsing library that comes standard with Perl, so it’s more convenient to run without needing to fetch modules from CPAN.

You can download it from the original article. Let me know if there’s anything I can do to improve it.

Technorati Tags:No Tags

You might also like:

  1. Duplicate index checker version 1.9 released
  2. MySQL Query Profiler, Checksum, Index Checker updated to version 1.0.1
  3. Introducing MySQL Duplicate Key Checker
  4. Duplicate index checker version 1.8 released

1 Response to “Duplicate index checker improved”


  1. 1 Peter Zaitsev

    One more idea I had but never had time to implement is finding unused indexes. This could be done as running EXPLAINs on the queries from the log (UPDATE/DELETE need to be modified) and list of indexes compared to total list of indexes.

    So you can see which indexes are used a lot which are used rarely and which are never used by this set of queries :)

Leave a Reply

Please do not use this blog to get help with problems or bugs in Maatkit or innotop: use the Sourceforge forums, mailing list, or bug trackers. If you're asking for help with MySQL, please use the MySQL mailing list instead. I'm writing a book and my time is extremely limited :-)