June 19, 2013

Post: Percona XtraDB Cluster 5.5.30-23.7.4 for MySQL now available

… case mixed CHAR and VARCHAR columns would be used in foreign key… fixed #1130888 (Seppo Jaakola). If MySQL replication threads were started before…(Seppo Jaakola). Conflicting prepared statements in multi-master use case could cause…Prabhu). In case CREATE TABLE AS SELECT statement was running in …

Post: Multi Column indexes vs Index Merge

… STATE columns. The better strategy is often to have combined multi-column index on (AGE,STATE). Lets see why it is the case. MySQL… depends on selectivity and correlation. If where clause from first column selects 5% of the rows and applying where clause on second column brings…) As a summary: Use multi column indexes is typically best idea if you use AND between such columns in where clause. Index merge…

Post: Multi-Column IN clause - Unexpected MySQL Issue

…. I should not be surprised though as multi-column in is not the most used MySQL feature out there. For given application case we could simply rewrite query using more standard single column IN clause: mysql> explain SELECT

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

… post is aimed at the optimizer enhancement Multi Range Read (MRR). Its available in both MySQL 5.6 and MariaDB 5.5…: SELECT non_key_column FROM tbl WHERE key_column=x This query will roughly be evaluated in following steps, without MRR: SELECT key_column, pk_column…: SELECT key_column, pk_column FROM tbl WHERE key_column=x ORDER BY key_column (Note that secondary keys in InnoDB contain primary key columns) Buffer…

Post: Ultimate MySQL variable and status reference list

… amazing MySQL manual, especially the option and …show_collationsblogpercona.commanual Com_show_column_typesblogpercona.commanual Com_show_…Select_full_joinblogpercona.commanual Select_full_range_joinblogpercona.commanual Select_rangeblogpercona.commanual Select_range_checkblogpercona.commanual Select

Post: Index Condition Pushdown in MySQL 5.6 and MariaDB 5.5 and its performance impact

… in preparation for the talk comparing the optimizer enhancements in MySQL 5.6 and MariaDB 5.5. We are taking a… optimizer enhancement Index Condition Pushdown (ICP). Its available in both MySQL 5.6 and MariaDB 5.5 Now let’s take…

Post: 3 ways MySQL uses indexes

… I see is multi column indexes which are used but only to their short prefix which is not very selective. A lot of this mistakes come from missing one very important MySQL limitation – once MySQL runs into the… be able to use full index for sorting (note MySQL may not select to use index for sort if you sort full…

Post: Shard-Query EC2 images available

column. There will be another blog post about the usage and performance of the splitter. It is multi-threaded(actually multi…’; mysql> use ontime1; Database changed mysql> show table…selected in the list of columns to show (click show/hide to change the columns) That the “public dns” field is selected

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

…_length. First, MyISAM, with MySQL 5.5, on the SEO data set: mysql: SELECT id, title, MATCH(title,… table with a single VARCHAR column named “value”. OK, sounds easy enough: mysql: SHOW CREATE TABLE innodb_myisam_…may or may not be the case with multi-byte character sets or with ideographic languages …