MySQL Performance Schema in action
Performance Schema in MySQL is becoming more mature from version to version. In version 5.7 it includes extended lock instrumentation, memory usage statistics, new tables for server variables, first time ever instrumentation for user variables, prepared statements and stored routines. A lot! Amazing! And complicated! In this tutorial we will try all these new instruments out. We will provide test environment and few typical problems which could be hardly solved before MySQL 5.7. Just few examples: "Where are memory going?" , "Why these queries hang?", "How huge overhead is of my stored procedures?", "Why queries are waiting for metadata locks?". You will not only learn how to collect and use this information, but have experience with it. You will also learn how to setup Performance Schema in details. These issues which we are going to describe were pain for customers, consultants and support engineers for years. There are many workarounds for them shared which help to find source of the issue only partially and require much more work than it can be done if Performance Schema is used. In this tutorial we will start from the problem and will show how to diagnose and fix it. We will show which workarounds can be dropped and replaced with queries to Performance Schema.
Principal Technical Services Engineer, Percona
Sveta Smirnova works as MySQL Support engineer since year 2006, she is also author of book "MySQL Troubleshooting" and author of JSON UDF functions for MySQL. In years 2006 - 2015 she worked in in Bugs Analysis MySQL Support Group in MySQL AB, then Sun, then Oracle. In March 2015 Sveta joined Support Team in Percona. In years 2012-2015 she worked on bugs priority. She was also Support representative in MySQL Backup Development Team. She works on tricky support issues and MySQL software bugs on a daily basis. Before starting at MySQL in 2006, she worked as web developer on several closed CRM systems. In years 2012-2015 she worked on MySQL Labs project "JSON UDFs for MySQL". She is active participant in the open source community. Her main interests in recent years is solving DBA problems, finding ways to semi-automate this process and effective backup techniques. Sveta is author of the book "MySQL Troubleshooting" (http://shop.oreilly.com/product/0636920021964.do)