June 20, 2013

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

… column definition in the same order. In other words, it checks for duplicate keys, but not redundant ones. What is the… not -for example, if one of the two indexes was unique or a foreign key. This is the output of our… query optimizer and the MySQL version, we always recommend to check manually the optimizations proposed by Percona Toolkit. The MySQL server…

Post: Implementing SchemaSpy in your MySQL environment

… names, tables without indexes, columns flagged ‘nullable’ and ‘must be unique‘ (woops!), single column tables, incrementing column names in tables, and… actual SQL NULL value. This is basically a quick sanity check of your schema for any significant errors or items requiring…

Post: Announcing Percona XtraBackup 2.1.1 GA

… open source solution, XtraBackup drives down backup costs while providing unique features for MySQL backup. The new 2.1.1 GA… inside tmpdir could cause SST to fail. Fixed by fix checking if xtrabackup_pid file exists once innobackupex starts, and try…

Post: Galera Flow Control in Percona XtraDB Cluster for MySQL

… the size of the transactions, which translates into number of unique key lookups into the certification index, which is a hash… coming from There are two global status variables you can check to see what flow control is happening: wsrep_flow_control…

Post: How to load large files safely into InnoDB with LOAD DATA INFILE

… way to load data (especially if you disable unique key checks and foreign key checks), I recommended against this. There are several problems…: time mysql -e “set foreign_key_checks=0; set sql_log_bin=0; set unique_checks=0; load data local infile ‘infile.txt… time mysql -e “set foreign_key_checks=0; set sql_log_bin=0; set unique_checks=0; load data local infile ‘/tmp/my…

Comment: Duplicate indexes and redundant indexes

… only with spatial extenrsions anyway. Speaking about UNIQUE it is interesting. If you have UNIQUE(A) and KEY(A,B) it is… to have index covered queries but It is other story. UNIQUE is both Index and constraint, but unfortunately they come together… prefix (A,B) unique. Currently it is not possible and one ether have to create extra index or do unique checking on application.

Post: Best kept MySQLDump Secret

…=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER…

Comment: Using MyISAM in production

… FIELDS PRIMARY KEY (`id`) ) ENGINE=INNODB DEFAULT CHARSET=latin1; SET UNIQUE_CHECKS=0; START TRANSACTION; — SOME MULTIPLE INSERTS KIND OF INSERT INTO…_inno( SELECT * FROM transferido LIMIT 100000,100000 ); –ETC. COMMIT; SET UNIQUE_CHECKS=1; ALTER TABLE transferido RENAME TO transferido_myisam; ALTER TABLE…

Post: Predicting how long data load would take

… depend on storage engines, for example MyISAM can build non-unique indexes by sort which is very fast and Innodb can… BTREE insertion. For Innodb SET UNIQUE_CHECKS=0 may be used to speed up load to tables with unique keys. So as you…

Post: Ultimate MySQL variable and status reference list

… transaction_isolationblogpercona.commanual transaction_prealloc_sizeblogpercona.commanual tx_isolationblogpercona.commanual unique_checksblogpercona.commanual updatable_views_with_limitblogpercona.commanual Uptimeblogpercona.commanual Uptime…