June 19, 2013

Post: The small improvements of MySQL 5.6: Duplicate Index Detection

index will be created-, but we will get a warning (note severity, to be exact): mysql> ALTER TABLE test ADD INDEX (col2); Queryto find redundant indexes. And second, because in some cases, we may need to have what at first seems redundant indexes

Post: Implementing SchemaSpy in your MySQL environment

tables based on names, tables without indexes, columns flagged ‘nullable’ and ‘must be unique‘ (woops!), single column tables, incrementing column names in tables, and tables

Post: MySQL and the SSB - Part 2 - MyISAM vs InnoDB low concurrency

a database’s ability to optimize queries for a star schema. A star schema presents some unique challenge toin the largest table. You can find the individual SSB query definitions in my previous blog post. Test environment These tests were done on a

Comment: MySQL Partitioning - can save you or kill you

queries (SELECT, INSERT, DELETE, UPDATE) are similar in speed between PARTITIONed or non-PARTITIONed. When PARTITIONed, first it has to findtable into 100 partitions, the BTree in each partition would be about 4 levels. A “point queryin a billion-row (non-partitioned) table

Post: Find unused indexes

tables, indexes and so on, information very helpful to have a clear picture of our users are doing in the database. To accomplish our task of findingqueries to SELECT queries and is not always possible to get a perfect conversion so there can be some differences. Be cautious with Unique indexes, …

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

a way to find the set of indexes in all_indexes, but not in used_indexes.  These indexes (if our original index statistics are good) are candidates to

Post: Find and remove duplicate indexes

indexes are easy to find out and to avoid them. How? Just specify the index name and MySQL will avoid to create duplicate indexes: mysql> alter tableUNIQUE. How can I find all those keys? There is a tool in Percona Toolkit that can help you to find all those keys in

Post: How Percona does a MySQL Performance Audit

in the mysql.* tables, running mk-duplicate-key-checker to find redundant indexesqueries that are faster than one second (which in a high-performance system is virtually every query.) If it’s not possible to use a

Post: Duplicate indexes and redundant indexes

UNIQUE because we want it to be UNIQUE and we create KEY so it it can be used in the queriesquery to run as index covered query (retrieve all columns from the index) – such indexes may become way too long to be efficiently used by other queries

Post: InnoDB Full-text Search in MySQL 5.6 (part 1)

to find out how to make InnoDB FTS blazingly-fast, but simply to get a sense of how it works compared toa BIGINT UNSIGNED NOT NULL with a unique index on it, your table doesn’t need to be rebuilt. The most important item to