This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
SQL script to grab the worst performing indexes | |
in the whole server | |
*/ | |
SELECT | |
t.TABLE_SCHEMA AS `db` | |
, t.TABLE_NAME AS `table` | |
, s.INDEX_NAME AS `inde name` | |
, s.COLUMN_NAME AS `field name` | |
, s.SEQ_IN_INDEX `seq in index` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package net.abhinavsarkar.util; | |
import java.util.Iterator; | |
import java.util.concurrent.BrokenBarrierException; | |
import java.util.concurrent.CyclicBarrier; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
import java.util.concurrent.SynchronousQueue; | |
import java.util.concurrent.ThreadFactory; | |
import java.util.concurrent.TimeUnit; |