June 19, 2013

Post: MySQL Indexing Best Practices: Webinar Questions Followup

… thing you need to consider is string comparison in MySQL is case insensitive by default …length is rather short for such hack as BIGINT itself is 8 bytes and the difference in the index length with all overhead is… Order by” described in presentation. Q: what is the impact on indexing to use wider …

Post: Is there room for more MySQL IO Optimization?

… Row_format: Compact Rows: 278987416 Avg_row_length: 75 Data_length: 20975714304 Max_data_length: 0 Index_length: 9047113728 Data_free: 6291456 Auto_increment: NULL… much better in buffered mode. Take a look at the graph: What this tells me is there is a lot of untapped potential in MySQL IO…

Post: Troubleshooting MySQL Memory Usage

mysql> select sum(data_length+index_length) from information_schema.tables where engine=’memory’; +——————————-+ | sum(data_length+index_length) | +——————————-+ | 126984 | +——————————-+ 1 row in

Post: The MySQL optimizer, the OS cache, and sequential versus random I/O

what this post is about. Let’s start with the MySQLIndex_length: 11993816064 mysql> show table status like ‘dim1′\G *************************** 1. row *************************** Name: dim1 Engine: MyISAM Rows: 453193 Avg_row_length: 122 Data_length: 55605116 Index_length

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

in MySQL 5.6: Part 2, The Queries![/caption] This is part 2 in a 3 part series. Inindex on the InnoDB table and try the above queries one more time. We already know what

Post: ALTER TABLE: Creating Index by Sort and Buffer Pool Size

in RAID10. I used 10mil row table which would look as following in terms of data and index size: mysql…_length: 224 Data_length: 2247098368 Max_data_length: 0 Index_length:…is because disks are not that bad with sequential IO, which is what file merge process uses. This is important illustration as in

Post: Ultimate MySQL variable and status reference list

… to the amazing MySQL manual, especially the option and variable reference table…look for content in the Percona documentation or forums. So I present to you what is now my…_threadsblogpercona.commanual max_join_sizeblogpercona.commanual max_length_for_sort_datablogpercona.commanual max_prepared_stmt…

Post: How is join_buffer_size allocated?

MySQL configuration, we quite …). There are many examples of this. What about join_buffer_size? I …is allocated to cache rows from each table in a join when the join can’t use an index. This is… table_count) 14185 { … snip … 14268 cache->length=length+blobs*sizeof(char*); 14269 cache->blobs=blobs…

Post: Statistics of InnoDB tables and indexes available in xtrabackup

… average length) on count of records. And it still would be quite inaccurate as secondary indexes … with size 13Gb what was filled during about 2.5 years. The table is: CREATE TABLE `link_out104`… – if you are badly missing some features in MySQL, InnoDB, InnoDB-plugin, XtraDB, XtraBackup – you know …

Post: Multi Column indexes vs Index Merge

What if we leave MySQL no choice but only to use combined index: mysql [localhost] {msandbox} (test) > explain select avg(length(val)) from idxtest ignore indexin MySQL which would allow forcing using index merge when MySQL