Comments on: How to find duplicate and redundant indexes in MySQL http://www.xaprb.com/blog/2006/08/28/how-to-find-duplicate-and-redundant-indexes-in-mysql/ Stay curious! Fri, 10 May 2013 18:25:19 +0000 hourly 1 http://wordpress.org/?v=3.5.1 By: Vaibogam S http://www.xaprb.com/blog/2006/08/28/how-to-find-duplicate-and-redundant-indexes-in-mysql/#comment-14302 Vaibogam S Mon, 17 Mar 2008 14:56:57 +0000 http://www.xaprb.com/blog/?p=216#comment-14302 A simple way to find out duplicate indexes…

SELECT * FROM information_schema.statistics WHERE table_schema = ‘?’ GROUP BY table_schema, table_name, column_name HAVING count(column_name) > 1;

In the above query bind the ‘database name’ parameter.

-Bog

]]>
By: Xaprb http://www.xaprb.com/blog/2006/08/28/how-to-find-duplicate-and-redundant-indexes-in-mysql/#comment-6229 Xaprb Thu, 03 May 2007 13:16:18 +0000 http://www.xaprb.com/blog/?p=216#comment-6229 Indexes require space, time and other work to maintain. They slow down writes. You can read more by following the link to Peter Zaitsev’s article at the top of the page.

]]>
By: suyog kale http://www.xaprb.com/blog/2006/08/28/how-to-find-duplicate-and-redundant-indexes-in-mysql/#comment-6218 suyog kale Thu, 03 May 2007 07:13:48 +0000 http://www.xaprb.com/blog/?p=216#comment-6218 what is loss of having
multiple indexes on same column?

]]>
By: suyog http://www.xaprb.com/blog/2006/08/28/how-to-find-duplicate-and-redundant-indexes-in-mysql/#comment-6217 suyog Thu, 03 May 2007 07:12:45 +0000 http://www.xaprb.com/blog/?p=216#comment-6217 so
its clear that in a table we have multiple indexes on same column

]]>
By: Xaprb http://www.xaprb.com/blog/2006/08/28/how-to-find-duplicate-and-redundant-indexes-in-mysql/#comment-1987 Xaprb Tue, 26 Sep 2006 12:31:49 +0000 http://www.xaprb.com/blog/?p=216#comment-1987 Roland has written a pure-SQL duplicate index finder and posted it on MySQL Forge. Nice job Roland!

]]>