June 18, 2013

Post: MySQL and the SSB - Part 2 - MyISAM vs InnoDB low concurrency

…. A star schema presents some unique challenge to the database optimizer. The SSB benchmark consists of four sets of queries. Each… caching of data at the filesystem level. The InnoDB indexes were built using ALTER TABLE fast index creation (merge sort). For the MyISAM… a 10GB key buffer. I used ALTER TABLE DISABLE KEYS and built the keys with sort via ALTER TABLE ENABLE KEYS. my.cnf [mysqld…

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

… GTID-based replication, InnoDB Fulltext, Memcached integration, a more complete performance schema, online DDL and several other InnoDB and query optimizer improvements. … ALTER TABLE test ADD INDEX (col2); Query OK, 0 rows affected (0.22 sec) Records: 0 Duplicates: 0 Warnings: 0 mysql> ALTER TABLE

Post: Percona XtraBackup 2.0.7 for MySQL available for download

…XtraBackup has implemented support for the InnoDB Buffer Pool Preloading introduced in MySQL…ALTER TABLE IMPORT TABLESPACE on MySQL and Percona Server 5.6 as described in Exporting and Importing Tablestables and slow IO then XtraBackup can spend a lot of time opening all the tablespaces. Optimization

Post: Percona XtraBackup 2.1.0 'release candidate' for MySQL available for download

…XtraBackup has implemented support for the InnoDB Buffer Pool Preloading introduced in MySQL…ALTER TABLE IMPORT TABLESPACE on MySQL and Percona Server 5.6 as described in Exporting and Importing Tablestables and slow IO then XtraBackup can spend a lot of time opening all the tablespaces. Optimization

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

… and index size: mysql> show table status like “sbtest” \G *************************** 1. row *************************** Name: sbtest Engine: InnoDB Version: 10 Row_format:…: If you’re having large tables and need to run ALTER TABLE which rebuilds the table or OPTIMIZE TABLE do not forget to enable …

Post: How well does your table fits in innodb buffer pool ?

innodb_sys_tables ON table_id = innodb_sys_tables.id JOIN innodb_index_stats ON innodb_index_stats.table_name = innodb_sys_tables.name AND innodb_sys_indexes.name = innodb_… as how buffer pool is affected by batch jobs, alter tables, optimize table etc – the lasting impact these may have on system …

Post: Improved InnoDB fast index creation

… reported by SHOW TABLE STATUS versus 265 MB index size with the optimization disabled. OPTIMIZE TABLE OPTIMIZE TABLE is mapped to ALTER TABLE … ENGINE=InnoDB for InnoDB tables and thus, is… –innodb-optimize-keys ignores foreign keys because InnoDB requires a full table rebuild on foreign key changes. So adding them back with a separate ALTER TABLE

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

alter table dir_test_innodb ADD FULLTEXT KEY (full_name, details), ADD FULLTEXT KEY (details); ERROR 1795 (HY000): InnoDB

Post: Thinking about running OPTIMIZE on your Innodb Table ? Stop!

…The problem is…. OPTIMIZE TABLE for Innodb tables does not get …alter table a drop key c; Query OK, 0 rows affected (0.46 sec) Records: 0 Duplicates: 0 Warnings: 0 mysql> optimize table a; +——–+———-+———-+——————————————————————-+ | Table

Post: Tuning InnoDB Concurrency Tickets

table scan is performed) Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 mysql> ALTER TABLE test_table… Used Query OK, 3 rows affected (0.02 sec) mysql> ALTER TABLE `child` ADD PRIMARY KEY (`id`,`parent_id`); — 0 Tickets Used…). In other words, if you’re optimizing for throughput in this scenario, you will tune innodb_concurrency_tickets to the 99th percentile…