June 19, 2013

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

….6 brought: GTID-based replication, InnoDB Fulltext, Memcached integration, a more complete…varchar(200) default null # To remove this duplicate index, execute: ALTER TABLE `test`.`test` DROP INDEX `col2`; # ######################################################################## # Summary of indexes

Post: How to recover table structure from InnoDB dictionary

… is not defined InnoDB will use a unique secondary index as the primary. If there is no any unique index InnoDB will create one…, `COL_NAME` varchar(255) DEFAULT NULL, PRIMARY KEY (`INDEX_ID`,`POS`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 Fields names explain their content. Index id in…

Post: Improved InnoDB fast index creation

… affected when turning expand_fast_index_creation on. Here and in later examples I’m extending the VARCHAR column to trigger table… must be indexed, so it is impossible to temporarily drop the corresponding index; mysqldump –innodb-optimize-keys ignores the first UNIQUE index on non…

Post: Statistics of InnoDB tables and indexes available in xtrabackup

VARCHAR – since you need to estimate average length) on count of records. And it still would be quite inaccurate as secondary indexes… NOT NULL auto_increment, `url_from` varchar(255) NOT NULL, `url_to` varchar(255) NOT NULL, `anchor` varchar(255) NOT NULL, `from_site… feature to address this is in XtraDB/InnoDB plugin – fast index creation. With this feature, InnoDB creates indexes by sort, so page fill factor…

Post: Testing InnoDB "Barracuda" format with compression

…-00-00 00:00:00′, `subject` varchar(255) NOT NULL, `title` varchar(255) NOT NULL, `url` varchar(255) NOT NULL, `num_links` smallint… 30286M. To create InnoDB compression table I use ENGINE=InnoDB KEY_BLOCK_SIZE=8 and to test fast index creation I create table only with primary key, without additional indexes. Numbers…

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

innodb_myisam_stopword\G *************************** 1. row *************************** Table: innodb_myisam_stopword Create Table: CREATE TABLE `innodb_myisam_stopword` ( `value` varchar(18) NOT NULL DEFAULT ” ) ENGINE=InnoDB…I reset innodb_ft_min_token_size to 1, dropped/rebuilt the InnoDB index, …

Post: InnoDB vs MyISAM vs Falcon benchmarks - part 1

indexes. CREATE TABLE IF NOT EXISTS `$tableName` ( `id` int(10) unsigned NOT NULL auto_increment, `name` varchar(64) NOT NULL default ”, `email` varchar… / InnoDB: libexec/mysqld –no-defaults –user=root –key-buffer-size=1500M –innodb-buffer-pool-size=1500M –innodb-log-file-size=100M –innodb-…

Post: Redundant index is not always bad

… we use for such queries is covering index, which store all needed columns in the index, and there is no need to…. (This is for MyISAM, for InnoDB difference will be less. MyISAM uses key-compression for VARCHAR columns, so makes things worse). So to have good performance for both case we should leave both indexes: KEY…

Post: Enum Fields VS Varchar VS Int + Joined table: What is Faster?

…) Table with VARCHAR: CREATE TABLE cities_varchar ( id int(10) unsigned NOT NULL auto_increment, state varchar(50) NOT NULL, city varchar(255) NOT… quite expected – This is MyISAM table which is accessed via index, which means to retrieve each row MySQL will have to… is also interesting to note performance of Innodb tables in this case: for VARCHAR it takes about 0.022 per query which…

Post: MySQL Indexing Best Practices: Webinar Questions Followup

…) indexed varchars with an additional bigint column containing the crc64, and change the indexing to be on that column. That would clearly save indexing… presentation. Q: what is the impact on indexing to use wider UUID such as VARCHAR(36) instead of auto-increment A: If… IN-ranges in some cases for better index usage. Q: Is the b+ tree innodb index a single or double linked list at…