June 20, 2013

Post: MySQL Query Patterns, Optimized - Webinar questions followup

number generator picks values incolumns in a compound index, then the order would matter, and it would have to match the order of columns inin this case to force MySQL to scan the `title` table first, grouping by kind_id in index order.  This made the first table in

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

MySQL port would be used when port number wasn’t explicitly defined incolumns would be used in foreign key definitions. Bug fixed #1100496 (Seppo Jaakola). Debian packages included the old version of innotop. Fixed by

Post: How to recover table structure from InnoDB dictionary

… shift all values by a byte and thus…. `LEN` is the maximum number of bytes a field… let me know. mysql> select * from SYS_COLUMNS WHERE TABLE_ID=741; +———-+—–+————-+——-+———+——+——+ | TABLE_…Index id in our example is 1679: mysql> SELECT * FROM SYS_FIELDS WHERE INDEX…

Post: MySQL 5.6.10 Optimizer Limitations: Index Condition Pushdown

… impacting) optimizer issue: a “SELECT *” taking half the time to execute than the same “SELECT one_indexed_column” query in MySQL 5.6.10. This… (just one column) and can take advantage of the covering index technique, did actually take more time to execute: mysql> SELECT role_id… number of “Handler_read_next” calls was reduced from 8346769 (5.5) to just 266 (5.6), reducing the executing time by

Post: How to debug long-running transactions in MySQL

… convert this into a query log, and examine the log. In MySQL 5.1 and newer with the InnoDB plugin, it’s… ID in SHOW PROCESSLIST, and look in the Host column; there you’ll see a hostname followed by a port number. That is the port number… (${full}%, ${avail}MB free)”>&2 exit 1 fi host=$(mysql -ss -e ‘SELECT p.HOST FROM information_schema.innodb_lock_waits w…

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

…: 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 each pk_column… be seen by the numbers reported for the status counter Innodb_rows_read. While MySQL 5.6 is also reporting increased numbers for the…

Post: Join Optimizations in MySQL 5.6 and MariaDB 5.5

…used then, after the selected rows are read from table1, the values of indexed columns that will be used …1 1 The first obvious improvement is shown by the high numbers of Innodb_buffer_pool_read_ahead when … However, there is one number in MariaDB 5.5 that is quite large as compared to MySQL 5.6 and …

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

in MySQL 5.6 (part 1) in MySQL 5.6 is syntactically identical to MyISAM full-text search, in…FT index by declaring a column called FTS…| OK | +———————-+———-+———-+———-+ 1 row in set (4.60 sec) mysql> select * from information_schema.innodb_… that the number of rows in I_S…

Post: A rule of thumb for choosing column order in indexes

… sometimes use to decide which columns should come first in an index. This is not specific to MySQL, it’s generally applicable to… full table scan. EXPLAIN says there are no possible_keys. SELECT * FROM tbl WHERE status=’waiting’ AND source=’twitter’ AND no…