June 19, 2013

Post: Quickly finding unused indexes (and estimating their size)

unused indexes that could be removed. Collecting data It’s quite easy to collect statistics about index usage in Percona Serverfind the set of indexes in all_indexes, but not in used_indexes.  These indexes (if our original index

Post: Advanced index analysis with mk-index-usage

indexes are used in more flexible ways. The default report just prints out ALTER statements for removing unused indexes… store the index usage into tables in a database, so you can query them with SQL. I… EXPLAIN and find out the index usage on the remote server, and store the results in my MySQL …

Comment: Unused indexes by single query

unused indexes. This patch, like any patch, should probably only be used on a non-production server. A non-production serverserver (you could dump the SQL general query log – which will be very large – and replay it on a non-production serverindex, do some performance testing to find

Post: SHOW INNODB STATUS walk through

…much unusable. …in parent table `test/parent`, in index `PRIMARY`, the closest match we can findin use 1, locked 0 MySQL thread id 8079, query id 728899 localhost root Sending data select sqlin queue 1 read views open inside InnoDB Main thread process no. 10099, id 88021936, state: waiting for server