innodb
Recover lost .frm files for InnoDB tables
Submitted by Shinguz on Tue, 2011-12-20 22:51Recently I found in a forum the following request for help:
How MySQL behaves with many schemata, tables and partitions
Submitted by Shinguz on Wed, 2011-11-30 15:35Introduction
Recently a customer claimed that his queries were slow some times and sometimes they were fast.
First idea: Flipping query execution plan caused by InnoDB could be skipped because it affected mainly MyISAM tables.
Second idea: Caching effects by either the file system cache caching MyISAM data or the MyISAM key buffer caching MyISAM indexes were examined: File system cache was huge and MyISAM key buffer was only used up to 25%.
I was a bit puzzled...
Galera - Synchronous Multi-Master Replication Cluster for MySQL/InnoDB
Galera features
Galera provides the following features:
- Synchronous replication
- Active/active multi-master topology
- Read and write to any cluster node
- Automatic membership control, failed nodes drop from the cluster
- Automatic node joining
- True parallel row level replication
- Direct client connections
- Drop-in replacement for native MySQL
Galera benefits
Benefits using Galera Replication:
- High Availability
- No slave lag
MySQL Upgrade Problems
Several of our customers are currently (2011-09-08) doing the upgrade from MySQL 5.0 to a higher release. Our recommendation actually is to go to MySQL 5.5.
The main reasons are a better performance with MySQL 5.5, more on-line changeable parameters and features like Fast Index create/drop.
How to upgrade
How to upgrade from different releases you can find here:
How good is MySQL INSERT TRIGGER performance
Submitted by Shinguz on Wed, 2011-08-03 16:08Abstract: In this article we discuss how big is the performance impact of MySQL TRIGGERs compared to application side logging (with INSERT) into a MySQL table.
ER-Diagramm des InnoDB Data Dictionaries
Submitted by oli on Wed, 2011-08-03 09:03Mit dem neuen MySQL Release 5.6 sind einige neue InnoDB Data Dictionary Tabellen zum INFORMATION_SCHEMA hinzu gekommen:
Neu in MySQL 5.5 sind:
| INNODB_CMP |
| INNODB_CMP_RESET |
| INNODB_CMPMEM |
| INNODB_CMPMEM_RESET |
| INNODB_TRX |
| INNODB_LOCK_WAITS |
| INNODB_LOCKS |
Neu in MySQL 5.6 sind:
ER-Diagram of the InnoDB Data Dictionary
Submitted by Shinguz on Fri, 2011-07-29 16:37With the new MySQL 5.6 release there are some more InnoDB Data Dictionary Tables in the INFORMATION_SCHEMA:
New with MySQL 5.5 are:
| INNODB_CMP |
| INNODB_CMP_RESET |
| INNODB_CMPMEM |
| INNODB_CMPMEM_RESET |
| INNODB_TRX |
| INNODB_LOCK_WAITS |
| INNODB_LOCKS |
New with MySQL 5.6 are:
Warming up the InnoDB Buffer Pool during start-up
Submitted by Shinguz on Fri, 2011-07-22 16:12Abstract: Heating up the InnoDB Buffer Pool during the MySQL instance startup should significantly improve InnoDB Performance in the beginning of the life of the Instance. This is achieved by sequential scans of the needed data instead of random I/O reads which would happen when we just let the system work it out by itself.
InnoDB Graphs for MySQL Performance Monitor
Submitted by Shinguz on Tue, 2011-06-14 09:41We have just released v0.7.1 of the FromDual MySQL Performance Monitor. The new release can be downloaded from here.
In all editions some error messages have been cleaned-up, the fall-back data gather method mysql has been removed and the Maria SE template has been renamed to Aria.
In the edition dedicated to our customers most of the InnoDB graphs which are available with MEM v2.3.3 have been implemented now.
How can I find what InnoDB version I am using?
Submitted by Shinguz on Sat, 2011-01-01 12:05In the old days everything was simpler. We had one maker of our favourite database management system and possibly the choice between different Storage Engines. Mostly the decision has to be taken between MyISAM and InnoDB. When you care about your data integrity you have chosen InnoDB.
Nowadays it is more complex. We have several different makers of our favourite database management system: Oracle/MySQL, Monty Program AB and Percona with their products: MySQL, MariaDB and Percona Server.
Disadvantages of explicitly NOT using InnoDB Primary Keys?
Submitted by Shinguz on Mon, 2010-09-20 14:36We recently had the case with one of our customers where we got externally generated random hash values (up to 70 bytes) and they were used as Primary Keys in InnoDB.
As we know, this is not a very good idea because the size of all secondary indexes becomes large and because a random hash value as a Primary Key gives us a bad locality of our rows in the table [1].
If we do not specify a Primary Key and have no Unique Key InnoDB generates a hidden Clustered Index based on the Row ID which is a 6 byte field.
Which table is hit by an InnoDB page corruption?
Submitted by Shinguz on Mon, 2010-08-02 16:49InnoDB is known to have crash-recovery capabilities and thus is called a crash safe storage engine (in contrary to MyISAM). Never the less under certain circumstances it seems like InnoDB pages can get corrupt during a crash and then a manual crash-recovery is needed.
MySQL hints
MySQL Questions & Answers
Content
What is CHECK TABLE doing with InnoDB tables?
Submitted by Shinguz on Fri, 2010-01-29 21:37Recently we had a case where a customer got some corrupted blocks in his InnoDB tables. His largest tables where quite big, about 30 to 100 Gbyte. Why he got this corrupted blocks we did not find out yet (disk broken?).
When you have corrupted blocks in InnoDB, it is mandatory to get rid of them again. Otherwise your database can crash suddenly.
If you are lucky only "normal" tables are concerned.
