June 20, 2013

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

…) Records: 0 Duplicates: 0 Warnings: 1 mysql> show warnings; +———+——+————————————————–+ | Level | Code | Message | +———+——+————————————————–+ | Warning | 124 | InnoDB rebuilding table to add column FTS_DOC_ID…

Post: Feature preview: Compact backups in Percona XtraBackup

… innobackupex –compact and it will create a backup where all InnoDB tables contain only Primary Keys and not secondary. It allows…, there is. To recovery a usable database, we need to rebuild indexes, and it is done on prepare stage, and it takes time. The command to prepare is: innobackupex –apply-log –rebuild-indexes /data/backup As a bonus, secondary indexes are created…

Post: Flexviews - part 3 - improving query performance using materialized views

… based. The cost of the query The complete method completely rebuilds an MV from scratch at each refresh. This means that… is actually quite simple in its operation. It will completely rebuild a view based on the SQL which defines it, each… this column. It is used to prevent wide innodb primary keys on the MV. mysql> select mview$pk as rank, customer_id…

Post: Heikki Tuuri answers to Innodb questions, Part II

… of concurrent writes to about 6 tables, what version of Innodb/MySQL would you recommend? I’ve been staying at 4.1… this matter the other day – choosing innodb_buffer_pool_size Q36: There have been several MySQL bugs opened about multi-core scalability… fragmentation, without having to run the OPTIMIZE? HT: Since OPTIMIZE rebuilds the whole table, it may last way too long for…

Post: InnoDB: look after fragmentation

…: 38530 InnoDB_IO_r_bytes: 631275520 InnoDB_IO_r_wait: 0.204893 # InnoDB_rec_lock_wait: 0.000000 InnoDB_queue_wait: 0.000000 # InnoDB_pages… min 8.92 sec) mysql> SHOW STATUS LIKE ‘Innodb_scan_pages%’; +——————————+——-+ | Variable_name | Value | +——————————+——-+ | Innodb_scan_pages_contiguous | 45 | | Innodb_scan_pages_jumpy | 35904…

Post: Rebuilding MySQL Binary

… RPM based or other packaged MySQL Binary you may have a problem if you would like to rebuild binary for some reason… latest snapshot (This time I was both applying patches for Innodb scalability and Vadim’s patches to get proper slow query…

Post: Quickly finding unused indexes (and estimating their size)

… in Percona Server, we have it in the INFORMATION_SCHEMA.INNODB_INDEX_STATS table and the ‘index_total_pages’ column.  A….statistics i using (table_schema, table_name) join information_schema.innodb_index_stats s using (table_schema, table_name, index_name… use innodb_file_per_table, then you can rebuild the tablespace for your table by simply doing: mysql> alter table mytable ENGINE=Innodb; However…

Post: The relationship between Innodb Log checkpointing and dirty Buffer pool pages

… the tablespace. If Innodb stops (read: crashes) with dirty buffer pool pages, Innodb recovery must be done to rebuild the last consistent picture…, what can we see about Innodb log checkpointing and what does it tell us? mysql> SHOW ENGINE INNODB STATUS\G — LOG — Log sequence number…

Post: Percona Server 5.1.59-13.0

… available here and from the Percona Software Repositories). Based on MySQL 5.1.59, including all the bug fixes in it… Fixed InnoDB requires a full table rebuild for foreign key changes. This unnecessarily delays their creation in a mysqldump output, so –innodb-optimize… the clustered index by InnoDB in the absence of a PRIMARY KEY. #851674 (Alexey Kopytov). Backported fix for MySQL bug #53761 (Wrong…

Post: Percona Server 5.5.16-22.0

… available here and from the Percona Software Repositories). Based on MySQL 5.5.16, including all the bug fixes in it… Added a new boolean option, –innodb-blocking-buffer-pool-restore (in 5.1 it is –innodb-blocking-lru-restore), which is OFF… Fixed InnoDB requires a full table rebuild for foreign key changes. This unnecessarily delays their creation in a mysqldump output, so –innodb-optimize…