June 19, 2013

Post: The Doom of Multiple Storage Engines

… In Memory storage engines vs Distributed ones. Trying to handle all different cases in Optimizer – such as in memory nature of MEMORY storage engine, clustering… run for different storage engines, but really this is not enough as MySQL allows you using multiple storage engines in the query you…

Post: How fast can MySQL Process Data

…) NOT NULL ) ENGINE=MEMORY DEFAULT CHARSET=latin1 mysql> select count(*) from m; +———-+ | count(*) | +———-+ | 1047684 | +———-+ 1 row in set (0.00 sec) mysql> select count…(128) NOT NULL ) ENGINE=MEMORY DEFAULT CHARSET=latin1 mysql> show table status like “m4″ \G *************************** 1. row *************************** Name: m4 Engine: MEMORY Version: 10 Row_format…

Post: Ultimate MySQL variable and status reference list

… the amazing MySQL manual, especially the option and variable …Com_show_engine_logsblogpercona.commanual Com_show_engine_mutexblogpercona.commanual Com_show_engine_statusblogpercona….idblogpercona.commanual shared_memoryblogpercona.commanual shared_memory_base_nameblogpercona.commanual show_slave_auth…

Post: Disaster: MySQL 5.5 Flushing

… flushing changed data. With widely adoption of MySQL 5.5 and servers with big memory configuration I expect we will see this… recommendation you may hear in this case from the Oracle/MySQL engineers is to decrease “innodb_max_dirty_pages_pct”, this way… modern hardware with a lot of memory. I hope there is work in progress for MySQL 5.6. Scripts and raw results…

Post: Should we give a MySQL Query Cache a second chance ?

… which appeared in MySQL 4.0 Query Cache was designed to work with single core systems and relatively small memory amounts, both of which are things of the past. However, if you think about Core idea of the MySQL Query… hard. Query Cache Storage Engines MySQL Query Cache now stores queries in local memory, which is great however memory amount might be limited especially…

Post: Performance gotcha of MySQL memory tables

… performance gotcha with MEMORY tables you might know about comes from the fact it is the only MySQL storage engine which defaults to…` tinyint(4) default NULL, PRIMARY KEY (`id`), KEY `c` (`c`) ) ENGINE=MEMORY and populated it with 1.000.000 rows ALL of… could delay writes and do all the changes directly in memory. MyISAM however had to perform number of random writes to…

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

… name, address, and the like. We are using MySQL 5.5.30 and MySQL 5.6.10 with no configuration tuning other… `INNODB_FT_DEFAULT_STOPWORD` ( `value` varchar(18) NOT NULL DEFAULT ” ) ENGINE=MEMORY DEFAULT CHARSET=utf8 The docs tell us that we need… the latin1 character set. mysql: CREATE TABLE innodb_ft_list2 ( value VARCHAR(18) NOT NULL DEFAULT ”) ENGINE=InnoDB DEFAULT CHARSET=latin1; Query…

Post: Percona XtraDB Cluster reference architecture with HaProxy

… ‘FEDERATED’ is disabled. 120619 13:21:17 InnoDB: The InnoDB memory heap is disabled 120619 13:21:17 InnoDB: Mutexes and…=oltp –db-driver=mysqlmysql-engine-trx=yes –mysql-table-engine=innodb –mysql-host=127.0.0.1 –mysql-port=3307 –mysql-user=sbtest –mysql-password=sbpass –oltp-table…

Post: How to Monitor MySQL with Percona's Nagios Plugins

… a system reboot. The pmp-check-mysql-pidfile plugin verifies that MySQL‘s PID file exists. Evidence of … in the server as well as the storage engine. For example, a pile-up of connections all …-unix-memory plugin checks for a single process consuming too much memory and/or for too little free memory

Post: Memory allocation in Stored Function

…(255) default NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=20971521 DEFAULT CHARSET=latin1 mysql> select count(*) from testf; +———-+ | count(*) | +———-+ |… you see MySQL ate 5GB of memory in 85 sec. That makes things clearer. As I understand MySQL allocates memory in each…