June 18, 2013

Post: Troubleshooting MySQL Upgrade Performance Regressions

… baseline. Do not change storage engine at the same time eather… consisting of several query types. Though it is rather …tables involved and check cardinality) Different stats can often cause different plans. Run ANALYZE TABLE on both MySQL… options (might be even defaults) or some more subtle …

Post: Efficient Boolean value storage for Innodb Tables

… boolean flag storage in Innodb (not accounting for standard row overhead) if we use BIT(1), TINYINT or ENUM types but can…(0) default NULL, `c8` char(0) default NULL, `c9` char(0) default NULL, `c10` char(0) default NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 mysql> show table status like…

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

MySQL 5.6, MyISAM was the only storage engineDEFAULT NULL, `details` text, PRIMARY KEY (`id`), FULLTEXT KEY `full_name` (`full_name`,`details`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 We also have identical tables

Post: How much overhead is caused by on disk temporary tables

… used medium size table and types which can be presented both in MEMORY and MyISAM storage engine. The benchmarks are done with MySQL 5.0… for testing. CREATE TABLE `gt` ( `i` int(10) unsigned NOT NULL, `c` char(50) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1 mysql> select * from…

Post: MySQL 5.6 vs MySQL 5.5 and the Star Schema Benchmark

Default config for MySQL 5.5 and MySQL 5.6, no tuning at all Config 2: MySQL 5.6 with all defaulttable scans access the table by primary key.  This forces the storage engine… 2. row *************************** id: 1 select_type: SIMPLE table: lineorder type: ref possible_keys: LO…

Post: Should you move from MyISAM to Innodb ?

MySQL server – in particular Optimizer may have harder time because costs between storage engines may not be well balanced or replication of mixed table typesdefault settings and it worked reasonably. Innodb needs resources and it will not work well with defaults a lot. Tuning MyISAM from defaults

Post: Falcon Storage Engine Design Review

… spinning done, at least for some types of locks where conflicts will be … MySQL Storage Engine level for MySQL – reading rows in their physical order can be applied to most storage engines…for example changing default value needs table rebuild even though for other storage engines it often could …

Post: Multi Range Read (MRR) in MySQL 5.6 and MariaDB 5.5

… size mrr_buffer_size. Both buffer sizes default to 256K in MySQL 5.6 and MariaDB 5.5 … are performed in a single call to the storage engine and the counters Handler_read_key and Innodb_… query execution plans. a. Bad Plan id select_type table type possible_keys key key_len ref rows filtered…

Post: JOIN Performance & Charsets

storage engine: CREATE TABLE `t1` ( `char_id` char(6) NOT NULL, `v` varchar(128) NOT NULL, PRIMARY KEY (`char_id`) ) ENGINE=InnoDB DEFAULT…(0.00 sec) mysql> SHOW WARNINGS\G *************************** 1. row … *************************** id: 1 select_type: SIMPLE table: t1 type: index possible_…

Post: MySQL Optimizer and Innodb Primary Key

ENGINE=InnoDB DEFAULT CHARSET=latin1; “myisam” is same table created with MyISAM storage engine used to show difference: MySQL Optimizer correctly knows Innodb tables