June 20, 2013

Post: How to find MySQL queries worth optimizing ?

… index the table I get the following record in the slow query log: # Time: 120911 17:18:05 # User@Host: root…_tables: 0 Tmp_table_sizes: 0 # InnoDB_trx_id: 12F14 SET timestamp=1347398285; select * from sbtest where pad=’abc’; Rows_examined=0…_id: 12F1D SET timestamp=1347398722; select * from sbtest a,sbtest b where a.id=5 and b.id=a.k; mysql> explain select…

Post: Does Slow query log logs all slow queries ?

One may think one may use MySQL Slow query log to log all slow queries to catch problematic queries or for audit purposes… thread causes queries to be omitted from slow query log but the fact thread uses SET TIMESTAMP functionality. If you do this within… to the past and SET TIMESTAMP was implemented, which instead of patching bunch of function simply writes different timestamp to this variable. When…

Post: Identifying the load with the help of pt-query-digest and Percona Server

… enable logging atomically, not just for new connections as in MySQL. This is very helpful for measurement as otherwise we might…_examined: 655360 use test; SET timestamp=1325145746; select count(*) from auto_inc; Compare that to Percona Server with log_slow_verbosity=full: # Time…

Post: Analyzing Slow Query Table in MySQL 5.6

…’ Rows_examined: ‘, rows_examined, CHAR(10), ‘SET timestamp=’, UNIX_TIMESTAMP(start_time), ‘;’, CHAR(10), IF(FIND_IN_SET(sql_text, ‘Sleep,Quit,Init …,Reset stmt,Set option,Fetch,Daemon,Error’), CONCAT(‘# administrator command: ‘, sql_text), sql_text), ‘;’ ) AS `# slow-log` FROM `mysql`.`slow_log`; GO…

Post: Ultimate MySQL variable and status reference list

MySQLSlow_launch_threadsblogpercona.commanual slow_launch_timeblogpercona.commanual Slow_queriesblogpercona.commanual slow_query_logblogpercona.commanual slow

Post: The new cool MySQL patch has landed! Check your queries performance!

… logged into slow log, however the new version is loaded with a set of cool new features. CONNECTION IDENTIFIER Each slow log entry…_examined: 1113 LOGGING OF THE REPLICATED STATEMENTS Normally MySQL will not write into slow log any queries executed by the slave’s….000000 InnoDB_queue_wait: 0.067538 # InnoDB_pages_distinct: 20 SET timestamp=1193841780; SELECT DISTINCT c from sbtest where id between 501895…

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

… used for JOIN optimizations and helping the MySQL optimizer choose the appropriate index for a query… previously performed well suddenly show up on slow query log until InnoDB again updates the …Tmp_disk_tables: 0 Tmp_table_sizes: 0 SET timestamp=1316767697; show table status from `db1`; As …

Post: Announcing Percona Server for MySQL version 5.5.29-30.0

… prefix of another command line option innodb_changed_pages_limit. MySQL option handling would then shadow the former with the latter… (Laurynas Biveinis). Time in slow query log was displayed incorrectly when slow_query_log_timestamp_precision variable was set to microseconds. Bug fixed #887928…

Post: Announcing Percona Server for MySQL version 5.1.67-14.4

…. Bugs Fixed: Time in slow query log was displayed incorrectly when slow_query_log_microseconds_timestamp variable was set to microseconds. Bug fixed #887928… prefix of another command line option innodb_changed_pages_limit. MySQL option handling would then shadow the former with the latter…