June 19, 2013

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

unique or a foreign key. This is the output of our tool when run on the same table…duplicate-key-checker, but it does not detect all cases. For example: mysql> alter table test… this duplicate clustered index, execute: ALTER TABLE `test`.`test` DROP INDEX `redundant`, ADD INDEX `redundant` (`col2`); #…

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

… schema. A star schema presents some unique challenge to the database optimizer. The … hot test. All OS caches are dropped at this time as well. These …ALTER TABLE DISABLE KEYS and built the keys with sort via ALTER TABLE ENABLE KEYS. my.cnf [mysqld] datadir=/mnt/mysql56/data basedir=/usr/local/mysql

Post: Ultimate MySQL variable and status reference list

MySQL manual, especially the option and variable reference table

Post: Best kept MySQLDump Secret

MySQL‘s Transactions work with DDL, In particular ALTER TABLE. When ALTER TABLE is Performed in many cases it will Create temporary table

Post: Improved InnoDB fast index creation

ALTER TABLE are ignored to enforce uniqueness where necessary when copying the data to a temporary table; ALTER TABLE and OPTIMIZE TABLE always process tables containing foreign keys

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

…a unique key as they suggest, your data won’t load due to unique keydropping FT indexes, it’s entirely possible to DROP multiple FT indexes with InnoDB in the same ALTER TABLE… happens: mysql> alter table dir_test_innodb ADD FULLTEXT KEY (full_name, details), ADD FULLTEXT KEY (details); ERROR…

Post: Find and remove duplicate indexes

mysql> alter table t add index(name); mysql> alter table t add index(name); mysql> alter table t add index(name); mysql> show create table t\G [...] KEY `name` (`name`), KEY `name_2` (`name`), KEY

Post: Find unused indexes

ALTER TABLE `tpcc`.`order_line` DROP KEY `fkey_order_line_2`; — type:non-unique ALTER TABLE `tpcc`.`orders` DROP KEY `idx_orders`; — type:non-unique ALTER TABLE `tpcc`.`stock` DROP KEY

Post: ANALYZE: MyISAM vs Innodb

table as ANALYZE did not run yet. mysql> show index from antest; +——–+————+———-+————–+————-+———–+————-+———-+——–+——+————+———+ | Table | Non_unique | Key

Post: InnoDB Full-text Search in MySQL 5.6: Part 2, The Queries!

…upgrading to 5.6 and running ALTER TABLE foo ENGINE=InnoDB. In theory, yes….size to 1, dropped/rebuilt the InnoDB index, and tried again. mysql: SELECT id,…, although Japanese poses its own unique problems for FTS of any …your first FULLTEXT KEY to an InnoDB table, be prepared for a table rebuild. …