May 24, 2012

Post: Percona welcomes Drizzle 7.1

… API (experimental) Some of the Percona InnoDB patches have been merged Since Drizzle 7…the translations add more too). Some interesting statistics about this Drizzle release: The diffstat …UNIX socket protocol, javascript plugin, authentication via tables (similar to MySQL), RabbitMQ, regex policy, …

Post: When Does InnoDB Update Table Statistics? (And When It Can Bite)

InnoDB table statistics is used for JOIN optimizations and helping the MySQL optimizer choose the appropriate index for a query. If a table‘s statistics… seconds to update all the tablesstatistics.  Luckily, this can be controlled with Percona Server with the variable innodb_stats_auto_update (from…

Post: Beware the Innodb Table Monitor

… the information for each table, it calls dict_update_statistics and appears to force table statistics to be regenerated for each table It’s possible… again in: storage/innodb_plugin/dict/dict0dict.c: line 4883 So, the io-wait spike is explained by table statistics being regenerated, and…

Post: InnoDB TABLE/INDEX stats

tables available in XtraDB: It is INNODB_TABLE_STATS INNODB_INDEX_STATS These table show statistics about InnoDB tables ( taken from InnoDB data dictionary). INNODB_TABLE_STATS is | table_name | table name in InnoDB internal style (‘database/table‘) | | rows…

Post: COUNT(*) for Innodb Tables

… by simple singe counter for Innodb tables as different transactions may see different number of rows in the table. If you have query… for MyISAM and Innodb tables by performing index rage scan. This can be faster or slower both for MyISAM and Innodb depending on… is needed by admin tools which may show it in table statistics, it may also be used in application stats to show…

Post: Statistics of InnoDB tables and indexes available in xtrabackup

… to get statistics we run: xtrabackup –stats –tables=art.link* –datadir=/mnt/data/mysql/ which will show something like this: table: art/link… table in Barracuda format with Fast creation method: table: art/link_out104, index: domain_id, space id: 15, root page 49160 estimated statistics… post – if you are badly missing some features in MySQL, InnoDB, InnoDB-plugin, XtraDB, XtraBackup – you know whom ask for!

Post: The perils of InnoDB with Debian and startup scripts

tables, but it is far worse on InnoDB. There are a few reasons why this happens — access to open an InnoDB table…user | | NULL | 6356 | user | statistics | select … | 6357 | user | statistics | select … | 6358 | user | Sending data | select … | 6359 | user | statistics | select … | 6360 | …

Post: InnoDB: look after fragmentation

…=InnoDB Table has 11864696 rows and takes Data_length: 698,351,616 bytes on disk The problem is that after restoring table from…: 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… query affected by fragmentation you can use Innodb_scan_pages_contiguous ; Innodb_scan_pages_jumpy statistics in 5.0-percona releases (coming to…

Post: INFORMATION_SCHEMA tables in the InnoDB pluggable storage engine

INNODB%’; +—————————————-+ | Tables_in_INFORMATION_SCHEMA (INNODB%) | +—————————————-+ | INNODB_CMP | | INNODB_CMP_RESET | | INNODB_CMPMEM | | INNODB_CMPMEM_RESET | | INNODB_LOCK_WAITS | | INNODB_LOCKS | | INNODB

Post: Learning about MySQL Table Fragmentation

… even if table is not logically fragmented and Innodb is reading data in large blocks – this can happen in case Innodb table file is itself fragmented. To check if this is the case I usually do “cat table.ibd > /dev….S It would be cool to get Innodb objects (data and Index) fragmentation statistics which actually should not be that hard to…