Maximizing SQL reviews with pt-query-digest

Size: px
Start display at page:

Download "Maximizing SQL reviews with pt-query-digest"

Transcription

1 PALOMINODB OPERATIONAL EXCELLENCE FOR DATABASES Maximizing SQL reviews with pt-query-digest Mark Filipi

2 What is pt-query-digest Analyzes MySQL queries from slow, general and binary log files. Processlist, tcpdump and more also available.

3 What is pt-query-digest Fingerprints each query pattern, calculating statistics for rows examine, returned, etc. Prints report containing important query information

4 Why use pt-query-digest ) Easily locate slowest queries 2) See most executed queries 3) Find bottlenecks for tuning opportunities.

5 How to use pt-query-digest pt-query-digest slow.log. > slow.txt slow.log.: % 39:5 remain slow.log.: 2% 38:5 remain slow.log.: 3% 37:26 remain...

6 Alternate usage pt-query-digest slow.log. --type binlog --type genlog --type tcpdump tcpdump -s x -nn -q -tttt -i any -c port 336 \ > mysql.tcp.txt :program:`pt-query-digest` --type tcpdump mysql.tcp.txt

7 Default output 228.2s user time, 9.9s system time, 765.3M rss, M vsz Current date: Wed Apr 24 :42:5 23 Hostname: XXXXXXXXXX Files: slow.log. Overall: 5.5M total, 9 unique, QPS,.78x concurrency Time range: :2:2 to :2:2 Attribute total min max avg 95% stddev median ============ ======= ======= ======= ======= ======= ======= ======= Exec time 6764s 46us 59s 2ms 85us 555ms 38us Lock time 263s 52ms 47us 57us 36us 44us Rows sent.35m k Rows examine 5.9G k.3k k Rows affecte 6.5k Rows read 5.89G k.2k k Bytes sent 8.37G 6.7M.6k.53k 3.7k k Tmp tables

8 Default output - cont Profile Rank Query ID Response time Calls R/Call Apdx V/M Item ==== ================== ================ ======= ======= ==== ===== ==== xe944a3e3d5bef % SELECT user_metrics 2 x925e93282e2b % SELECT devices 3 x54c99f3a94f6d5a % SELECT user_metrics 4 x4db3ebda663c % SELECT levels 5 xd3e83fa246fccb % SELECT users 6 xb5d9ee7c2c24b % SELECT devices 7 x54d33962e5247a % SELECT given_items 8 xd9bed65ddcef98b % SELECT users app_friends weekly_stats 9 x44ccdf3322b % SELECT unlock_dialogs unlock_dialog_translations x8acf8e33226bcd % SELECT users xe82376cb7e268c MISC xmisc % 2.6% UPDATE user_metrics.72 NS. <6 ITEMS>

9 Default output - cont Query :.4 QPS,.55x concurrency, ID xe944a3e3d5bef59 at byte This item is included in the report because it matches --limit. Scores: Apdex =.27 [.], V/M = 2.62 Query_time sparkline: ^_ Time range: :5:3 to 6:5:23 Attribute pct total min max avg 95% stddev median ============ === ======= ======= ======= ======= ======= ======= ======= Count 7 Exec time s s 58s 4s 57s 7s 4s Lock time 43ms 4us 2us 25us 28us 3us 23us Rows sent.66k Rows examine.66k Rows affecte Rows read 2.44k Bytes sent 3.28M.97k.98k.98k.96k..96k Tmp tables Tmp disk tbl Tmp tbl size Query size 57.45k

10 Query output Query :.4 QPS,.55x concurrency, ID xe944a3e3d5bef59 at byte This item is included in the report because it matches --limit. Scores: Apdex =.27 [.], V/M = 2.62 Query_time sparkline: ^_ Time range: :5:3 to 6:5:23 Attribute pct total min max avg 95% stddev median ============ === ======= ======= ======= ======= ======= ======= ======= Count 7 Exec time s s 58s 4s 57s 7s 4s Lock time 43ms 4us 2us 25us 28us 3us 23us Rows sent.66k Rows examine.66k Rows affecte Rows read 2.44k Bytes sent 3.28M.97k.98k.98k.96k..96k Tmp tables Tmp disk tbl Tmp tbl size Query size 57.45k

11 Query output - cont String: Databases slow_db Hosts InnoDB trxid F8696E3EF (/%), F8696E4 (/%) more Last errno Users slow_user Query_time distribution us us us ms ms ms s s+ Tables SHOW TABLE STATUS FROM `slow_db` LIKE 'user_metrics'\g SHOW CREATE TABLE `slow_db`.`user_metrics`\g EXPLAIN /*!5 PARTITIONS*/ SELECT `user_metrics`.* FROM `user_metrics` WHERE `user_metrics`.`user_id` = 2745 LIMIT \G

12 Explain output mysql> explain -> SELECT `user_metrics`.* FROM `user_metrics` WHERE `user_metrics`.`user_id` = 2745 LIMIT ; id select_type table type possible_keys key key_len ref rows Extra SIMPLE user_metrics const index_user_metrics_on_user_id index_user_metrics_on_user_id 4 const row in set (. sec)

13 Query output - 2 Query 2: 3.3 QPS, 5.93x concurrency, ID x925e93282e2b at byte This item is included in the report because it matches --limit. Scores: Apdex =.5 [.], V/M =.2 Query_time sparkline: _^_ Time range: :34:5 to 9:27:2 Attribute pct total min max avg 95% stddev median ============ === ======= ======= ======= ======= ======= ======= ======= Count 53 Exec time s 856ms 4s 2s 2s 59ms 2s Lock time 38ms 4us 4ms 3us 44us 62us 23us Rows sent Rows examine G k k k k k Rows affecte Rows read G k k k k k Bytes sent.3m k Tmp tables Tmp disk tbl Tmp tbl size Query size 88.73k

14 Query output 2 - cont String: Databases slow_db Hosts InnoDB trxid F87B2DD (/%), F87B2DD4 (/%) more Last errno Users slow_db Query_time distribution us us us ms ms ms s s+ Tables SHOW TABLE STATUS FROM `slow_db` LIKE 'devices'\g SHOW CREATE TABLE `slow_db`.`devices`\g EXPLAIN /*!5 PARTITIONS*/ SELECT `devices`.* FROM `devices` WHERE `devices`.`current_user_id` = \G

15 Explain output - 2 mysql> EXPLAIN /*!5 PARTITIONS*/ -> SELECT `devices`.* FROM `devices` WHERE `devices`.`current_user_id` = \G ***************************. row *************************** id: select_type: SIMPLE table: devices partitions: NULL type: ALL possible_keys: NULL key: NULL key_len: NULL ref: NULL rows: Extra: Using where row in set (. sec)

16 Explain output - 2 mmysql> show create table devices\g ***************************. row *************************** Table: devices Create Table: CREATE TABLE `devices` ( `id` int() NOT NULL AUTO_INCREMENT, `os` enum('ios') NOT NULL, `uuid` varchar(255) NOT NULL, `current_user_id` int() NOT NULL, `platform_id` int() DEFAULT NULL, `ios_device` varchar(255) DEFAULT NULL, `ios_version` varchar(255) DEFAULT NULL, `merged_at` datetime DEFAULT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `apn_token` varchar(255) DEFAULT NULL, `apn_token_updated_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `index_devices_on_os_uuid` (`os`,`uuid`), KEY `index_devices_on_apn_token` (`apn_token`) ) ENGINE=InnoDB AUTO_INCREMENT=55873 DEFAULT CHARSET=utf8 row in set (. sec)

17 Query output 3 - compare Query 9: QPS,.2x concurrency, ID x44ccdf3322b46 at byte Time range: :2:2 to 2:3:4 Attribute pct total min max avg 95% stddev median ============ === ======= ======= ======= ======= ======= ======= ======= Count Exec time 2 44s 29us 3s 274us 67us 2ms 38us Lock time s 4us 52ms 48us 57us 36us 44us Rows sent Rows examine M Rows affecte Rows read M Bytes sent G.57k.57k.57k.57k.57k Tmp tables Tmp disk tbl Tmp tbl size Query size G

18 Query output 3 Query_time distribution us us us ms ms ms s s+ Tables SHOW TABLE STATUS FROM `slow_db` LIKE 'unlock_dialogs'\g SHOW CREATE TABLE `slow_db`.`unlock_dialogs`\g SHOW TABLE STATUS FROM `slow_db` LIKE 'unlock_dialog_translations'\g SHOW CREATE TABLE `slow_db`.`unlock_dialog_translations`\g EXPLAIN /*!5 PARTITIONS*/ SELECT `unlock_dialogs`.`id` AS t_r, `unlock_dialogs`.`level_id` AS t_r, `unlock_dialogs`. `games_played` AS t_r2, `unlock_dialogs`.`screen` AS t_r3, `unlock_dialogs`.`text` AS t_r4, `unlock_dialogs`.`character_id` AS t_r5, `unlock_dialogs`.`orientation` AS t_r6, `unlock_dialogs`.`sort_order` AS t_r7, `unlock_dialogs`.`created_at` AS t_r8, `unlock_dialogs`.`updated_at` AS t_r9, `unlock_dialog_translations`.`id` AS t_r, `unlock_dialog_translations`.`unlock_dialog_id` AS t_r, `unlock_dialog_translations`.`locale` AS t_r2, `unlock_dialog_translations`.`text` AS t_r3, `unlock_dialog_translations`. `created_at` AS t_r4, `unlock_dialog_translations`.`updated_at` AS t_r5 FROM `unlock_dialogs` LEFT OUTER JOIN `unlock_dialog_translations` ON `unlock_dialog_translations`.`unlock_dialog_id` = `unlock_dialogs`.`id` WHERE `unlock_dialogs`.`games_played` = 366 AND `unlock_dialog_translations`.`locale` IN ('en', 'en')\g

19 Query Explain 3 mysql> EXPLAIN... ***************************. row *************************** id: select_type: SIMPLE table: unlock_dialogs partitions: NULL type: ALL possible_keys: PRIMARY key: NULL key_len: NULL ref: NULL rows: 35 Extra: Using where *************************** 2. row *************************** id: select_type: SIMPLE table: unlock_dialog_translations partitions: NULL type: ref possible_keys: idx_dialog_locale key: idx_dialog_locale key_len: 5 ref: slow_db.unlock_dialogs.id rows: Extra: Using where 2 rows in set (. sec)

20 MySQL Variables to set --slow-query-log Logs SQL statements that run for more than long_query_time --log-queries-not-using-indexes --long-query-time - Use logrotate to keep N slow query logs

21 MySQL Variables to set Other options: log_slow_admin_statements log_slow_slave_statements (Percona) log_slow_verbosity ( query_plan / innodb / profiling ) (Percona) log_slow_filter ( full_scan / tmp_table / filesort_on_disk / etc)

22 Extended Verbosity Time: :29:54 web [ ] Thread_id: Schema: dbname_prod Last_errno: Killed: Query_time: Lock_time:.44 Rows_sent: 98 Rows_examined: 46 Rows_affected: Rows_read: Bytes_sent: 2548 Tmp_tables: Tmp_disk_tables: Tmp_table_sizes: InnoDB_trx_id: 7BE946 QC_Hit: No Full_scan: No Full_join: No Tmp_table: No Tmp_table_on_disk: No Filesort: No Filesort_on_disk: No Merge_passes: InnoDB_IO_r_ops: 9 InnoDB_IO_r_bytes: InnoDB_IO_r_wait: InnoDB_rec_lock_wait:. InnoDB_queue_wait:. InnoDB_pages_distinct: 43 SET timestamp= ; SELECT...

23 pt-query-digest variables to consider --order-by - output sorted by count --limit - default top 95%, but of queries allowed --explain - connects to mysql to execute and output EXPLAIN for each query -u, --ask-pass Caution: Explain at query execution may be different than pt-query-digest's explain

24 Limitations Memory Beware the OOM killer CPU Cycles aren't free Log collection period Non-mysql issues

25 What about RDS?

26 RDS slow log mysql> select * from mysql.slow_log limit ; start_time user_host query_time lock_time rows_sent rows_examined db insert_id server_id sql_text last_insert_id :9:28 ip-not-your-host.ec2.internal [not.your.host] ::2 :: atvi_codlive_web SELECT `ranks`.* FROM `ranks` WHERE `title` = 'mw3' AND `id` = 39 ORDER BY `ranks`.`id` ASC LIMIT

27 RDS slow log mysql> SELECT CONCAT( ' Time: ', DATE_FORMAT(start_time, '%y%m%d %H%i%s'), '\n', ' ', user_host, '\n', ' Query_time: ', TIME_TO_SEC(query_time), ' Lock_time: ', TIME_TO_SEC(lock_time), ' Rows_sent: ', rows_sent, ' Rows_examined: ', rows_examined, '\n', sql_text, ';' ) FROM mysql.slow_log limit ; CONCAT( ' Time: ', DATE_FORMAT(start_time, '%y%m%d %H%i%s'), '\n', ' User@Host: ', user_host, '\n', ' Query_time: ', TIME_TO_SEC(query_time), ' Lock_time: ', TIME_TO_SEC (lock_time), ' Rows_sent: ', rows_sent, ' Rows_examined: ', rows_examined, '\n', Time: User@Host: ip-not-your-host.ec2.internal [not.your.host] Query_time: 2 Lock_time: Rows_sent: Rows_examined: SELECT `ranks`.* FROM `ranks` WHERE `title` = 'mw3' AND `id` = 39 ORDER BY `ranks`.`id` ASC LIMIT ; row in set (. sec)

28 RDS slow log mysql -u user -p -h host.rds.amazonaws.com -D mysql -s -r -e "SELECT CONCAT( ' Time: ', DATE_FORMAT(start_time, '% y%m%d %H%i%s'), '\n', ' ', user_host, '\n', ' Query_time: ', TIME_TO_SEC(query_time), ' Lock_time: ', TIME_TO_SEC(lock_time), ' Rows_sent: ', rows_sent, ' Rows_examined: ', rows_examined, '\n', sql_text, ';' ) FROM mysql.slow_log" > /tmp/mysql.slow_log.log

29 Thanks for coming! Mark Filipi

Practical Performance Tuning using Digested SQL Logs. Bob Burgess Salesforce Marketing Cloud

Practical Performance Tuning using Digested SQL Logs. Bob Burgess Salesforce Marketing Cloud Practical Performance Tuning using Digested SQL Logs Bob Burgess Salesforce Marketing Cloud Who?! Database Architect! Salesforce Marketing Cloud (Radian6 & Buddy Media stack) Why?! I can t be the only

More information

MySQL and OpenStack Deep Dive

MySQL and OpenStack Deep Dive MySQL and OpenStack Deep Dive Peter Boros, Percona Jay Pipes, Mirantis www.mirantis.com November, 2014 Diving into MySQL and OpenStack Our setup Analyzing MySQL query loads Takeaways Objectives Examine

More information

Analyze MySQL Query Performance with Percona Cloud Tools

Analyze MySQL Query Performance with Percona Cloud Tools Analyze MySQL Query Performance with Percona Cloud Tools Vadim Tkachenko Percona, Co-founder /CTO www.percona.com cloud.percona.com www.mysqlperformanceblog.com 2 This webinar Performance Percona Cloud

More information

MySQL Performance and Scalability. Peter Zaitsev CEO, Percona Inc Percona Live, Washington,DC 11 January 2012

MySQL Performance and Scalability. Peter Zaitsev CEO, Percona Inc Percona Live, Washington,DC 11 January 2012 MySQL Performance and Scalability Peter Zaitsev CEO, Percona Inc Percona Live, Washington,DC 11 January 2012 MySQL Performance and Scalability Basic Definitions Ways to Get good Performance and Scalability

More information

Percona Server: secret features

Percona Server: secret features Date, time, place: MySQL Conference & Expo 2011 Reporter: Vadim Tkachenko Co-founder, CTO, Percona Inc In this talk: some not high profile, but addictive features. Once you start to use them you can t

More information

Understanding Performance through Measurement, Benchmarking and Profiling

Understanding Performance through Measurement, Benchmarking and Profiling Understanding Performance through Measurement, Benchmarking and Profiling Presented by: René Cannaò @rene_cannao Senior Operational DBA www.palominodb.com WHY RUN BENCHMARK? 2 Looking for bottlenecks Hardware

More information

Using Percona Server in Production. Peter Zaitsev CEO, Percona Inc Percona Live, New York Oct 1, 2012

Using Percona Server in Production. Peter Zaitsev CEO, Percona Inc Percona Live, New York Oct 1, 2012 Using Percona Server in Production Peter Zaitsev CEO, Percona Inc Percona Live, New York Oct 1, 2012 Agenda Percona Server History and Philosophy Installation and Configuration Using Percona Server features

More information

Troubleshooting Best Practices

Troubleshooting Best Practices Troubleshooting Best Practices Monitoring the Production Database Without Killing Performance June, 27, 2018 Sveta Smirnova Table of Contents Introduction: Between Desire and Reality Why Monitoring is

More information

OKC MySQL Users Group

OKC MySQL Users Group OKC MySQL Users Group OKC MySQL Discuss topics about MySQL and related open source RDBMS Discuss complementary topics (big data, NoSQL, etc) Help to grow the local ecosystem through meetups and events

More information

Tools and Techniques for Index Design. Bill Karwin, Percona Inc.

Tools and Techniques for Index Design. Bill Karwin, Percona Inc. Tools and Techniques for Index Design Bill Karwin, Percona Inc. It s About Performance What s the most frequent recommendation in database performance audits? What s the easiest way to speed up SQL queries,

More information

Expert Troubleshooting: Resolving MySQL Problems Quickly Kenny Gryp Percona University Toronto, Ontario, Canada 2013

Expert Troubleshooting: Resolving MySQL Problems Quickly Kenny Gryp Percona University Toronto, Ontario, Canada 2013 Expert Troubleshooting: Resolving MySQL Problems Quickly Kenny Gryp Percona University Toronto, Ontario, Canada 2013 1 Resolving MySQL Problems Quickly Instrumentation Individual

More information

Advanced MySQL Query Tuning

Advanced MySQL Query Tuning Advanced MySQL Query Tuning Alexander Rubin July 21, 2013 About Me My name is Alexander Rubin Working with MySQL for over 10 years Started at MySQL AB, then Sun Microsystems, then Oracle (MySQL Consulting)

More information

MySQL Community Patches and Extensions

MySQL Community Patches and Extensions MySQL Community Patches and Extensions OSCON 2009 July 20-24 2009 San Jose,CA Peter Zaitsev, Percona Inc, Define Terminology Fork Complitely separate product, not fully compatible Drizzle Branch - Separate

More information

Covering indexes. Stéphane Combaudon - SQLI

Covering indexes. Stéphane Combaudon - SQLI Covering indexes Stéphane Combaudon - SQLI Indexing basics Data structure intended to speed up SELECTs Similar to an index in a book Overhead for every write Usually negligeable / speed up for SELECT Possibility

More information

Indexes - What You Need to Know

Indexes - What You Need to Know Indexes - What You Need to Know http://www.percona.com/training/ 2011-2017 Percona, Inc. 1 / 53 Indexes - Need to Know QUERY PLANNING 2011-2017 Percona, Inc. 2 / 53 About This Chapter The number one goal

More information

Part 1: IoT demo Part 2: MySQL, JSON and Flexible storage

Part 1: IoT demo Part 2: MySQL, JSON and Flexible storage Part 1: IoT demo Part 2: MySQL, JSON and Flexible storage $ node particle_mysql_all.js Starting... INSERT INTO cloud_data_json (name, data) values ('particle', '{\"data\":\"null\",\"ttl\":60,\"published_at\":\"2017-09-28t19:40:49.869z\",\"coreid\":\"1f0039000947343337373738

More information

Troubleshooting Slow Queries. Sveta Smirnova Principal Support Engineer April, 28, 2016

Troubleshooting Slow Queries. Sveta Smirnova Principal Support Engineer April, 28, 2016 Troubleshooting Slow Queries Sveta Smirnova Principal Support Engineer April, 28, 2016 Table of Contents Before we start What affects query execution EXPLAIN: how to find out how optimizer works Data matters:

More information

Query Optimization Percona, Inc. 1 / 74

Query Optimization Percona, Inc. 1 / 74 Query Optimization http://www.percona.com/training/ 2011-2017 Percona, Inc. 1 / 74 Table of Contents 1. Query Planning 3. Composite Indexes 2. Explaining the EXPLAIN 4. Kitchen Sink 2011-2017 Percona,

More information

Writing High Performance SQL Statements. Tim Sharp July 14, 2014

Writing High Performance SQL Statements. Tim Sharp July 14, 2014 Writing High Performance SQL Statements Tim Sharp July 14, 2014 Introduction Tim Sharp Technical Account Manager Percona since 2013 16 years working with Databases Optimum SQL Performance Schema Indices

More information

Practical MySQL indexing guidelines

Practical MySQL indexing guidelines Practical MySQL indexing guidelines Percona Live October 24th-25th, 2011 London, UK Stéphane Combaudon stephane.combaudon@dailymotion.com Agenda Introduction Bad indexes & performance drops Guidelines

More information

Tired of MySQL Making You Wait? Alexander Rubin, Principal Consultant, Percona Janis Griffin, Database Evangelist, SolarWinds

Tired of MySQL Making You Wait? Alexander Rubin, Principal Consultant, Percona Janis Griffin, Database Evangelist, SolarWinds Tired of MySQL Making You Wait? Alexander Rubin, Principal Consultant, Percona Janis Griffin, Database Evangelist, SolarWinds Who Am I? Senior DBA / Performance Evangelist for Solarwinds Janis.Griffin@solarwinds.com

More information

Advanced MySQL Query Tuning

Advanced MySQL Query Tuning Advanced MySQL Query Tuning Alexander Rubin August 6, 2014 About Me My name is Alexander Rubin Working with MySQL for over 10 years Started at MySQL AB, then Sun Microsystems, then Oracle (MySQL Consulting)

More information

MySQL 101. Designing effective schema for InnoDB. Yves Trudeau April 2015

MySQL 101. Designing effective schema for InnoDB. Yves Trudeau April 2015 MySQL 101 Designing effective schema for InnoDB Yves Trudeau April 2015 About myself : Yves Trudeau Principal architect at Percona since 2009 With MySQL then Sun, 2007 to 2009 Focus on MySQL HA and distributed

More information

MySQL Query Tuning 101. Sveta Smirnova, Alexander Rubin April, 16, 2015

MySQL Query Tuning 101. Sveta Smirnova, Alexander Rubin April, 16, 2015 MySQL Query Tuning 101 Sveta Smirnova, Alexander Rubin April, 16, 2015 Agenda 2 Introduction: where to find slow queries Indexes: why and how do they work All about EXPLAIN More tools Where to find more

More information

Oracle 1Z MySQL 5.6 Database Administrator. Download Full Version :

Oracle 1Z MySQL 5.6 Database Administrator. Download Full Version : Oracle 1Z0-883 MySQL 5.6 Database Administrator Download Full Version : http://killexams.com/pass4sure/exam-detail/1z0-883 D. The mysqld binary was not compiled with SSL support. E. The server s SSL certificate

More information

1Z MySQL 5 Database Administrator Certified Professional Exam, Part II Exam.

1Z MySQL 5 Database Administrator Certified Professional Exam, Part II Exam. Oracle 1Z0-874 MySQL 5 Database Administrator Certified Professional Exam, Part II Exam TYPE: DEMO http://www.examskey.com/1z0-874.html Examskey Oracle 1Z0-874 exam demo product is here for you to test

More information

Explaining the MySQL EXPLAIN

Explaining the MySQL EXPLAIN Explaining the MySQL EXPLAIN Ronald Bradford http://ronaldbradford.com OTN South America Tour July 2011 Agenda EXPLAIN syntax options How to read QEP QEP examples MySQL optimizer limitations PURPOSE EXPLAIN

More information

OBJECTIVE. ABOUT Ronald BRADFORD. Improving Performance with Better Indexes. Improve query performance, therefore

OBJECTIVE. ABOUT Ronald BRADFORD. Improving Performance with Better Indexes. Improve query performance, therefore Improving Performance with Better Indexes The only active MySQL group in New York http://www.meetup.com/effectivemysql/ Ronald Bradford http://ronaldbradford.com 2011.0 OBJECTIVE Improve query performance,

More information

Query Optimization With MySQL 8.0 and MariaDB 10.3: The Basics

Query Optimization With MySQL 8.0 and MariaDB 10.3: The Basics Query Optimization With MySQL 8.0 and MariaDB 10.3: The Basics Jaime Crespo Percona Live Europe 2018 -Frankfurt, 5 Nov 2018- dbahire.com/pleu18 Agenda 1. Introduction 6. Joins 2. Query Profiling 7. Subqueries

More information

MySQL Performance Optimization

MySQL Performance Optimization P R A C T I C A L MySQL Performance Optimization A hands-on, business-case-driven guide to understanding MySQL query parameter tuning and database performance optimization. With the increasing importance

More information

MongoDB For MySQL DBAs. Alexander Rubin - Principal Architect, Percona

MongoDB For MySQL DBAs. Alexander Rubin - Principal Architect, Percona MongoDB For DBAs Alexander Rubin - Principal Architect, Percona Agenda How to in MongoDB Storage engines in MongoDB Opera4ons in MongoDB Replica4on in MongoDB Sharding in MongoDB Other examples 2 What

More information

CSED421 Database Systems Lab. Index

CSED421 Database Systems Lab. Index CSED421 Database Systems Lab Index Index of Index What is an index? When to Create an Index or Not? Index Syntax UNIQUE Index / Indexing Prefixes / Multiple-column index Confirming indexes Index types

More information

MySQL Schema Review 101

MySQL Schema Review 101 MySQL Schema Review 101 How and What you should be looking at... Mike Benshoof - Technical Account Manager, Percona Agenda Introduction Key things to consider and review Tools to isolate issues Common

More information

The Top 20 Design Tips

The Top 20 Design Tips The Top 20 Design Tips For MySQL Enterprise Data Architects Ronald Bradford COO PrimeBase Technologies April 2008 Presented Version By: 1.1 Ronald 10.Apr.2008 Bradford 1. Know Your Technology Tools Generics

More information

How to Use JSON in MySQL Wrong

How to Use JSON in MySQL Wrong How to Use JSON in MySQL Wrong Bill Karwin, Square Inc. October, 2018 1 Me Database Developer at Square Inc. MySQL Quality Contributor Author of SQL Antipatterns: Avoiding the Pitfalls of Database Programming

More information

Advanced query optimization techniques on large queries. Peter Boros Percona Webinar

Advanced query optimization techniques on large queries. Peter Boros Percona Webinar Advanced query optimization techniques on large queries Peter Boros Percona Webinar Agenda Showing the title slide Going through this agenda Prerequisites Case study #1 Case study #2 Case study #3 Case

More information

When and How to Take Advantage of New Optimizer Features in MySQL 5.6. Øystein Grøvlen Senior Principal Software Engineer, MySQL Oracle

When and How to Take Advantage of New Optimizer Features in MySQL 5.6. Øystein Grøvlen Senior Principal Software Engineer, MySQL Oracle When and How to Take Advantage of New Optimizer Features in MySQL 5.6 Øystein Grøvlen Senior Principal Software Engineer, MySQL Oracle Program Agenda Improvements for disk-bound queries Subquery improvements

More information

Oracle Exam 1z0-883 MySQL 5.6 Database Administrator Version: 8.0 [ Total Questions: 100 ]

Oracle Exam 1z0-883 MySQL 5.6 Database Administrator Version: 8.0 [ Total Questions: 100 ] s@lm@n Oracle Exam 1z0-883 MySQL 5.6 Database Administrator Version: 8.0 [ Total Questions: 100 ] Oracle 1z0-883 : Practice Test Question No : 1 Consider the Mysql Enterprise Audit plugin. You are checking

More information

DATABASE PERFORMANCE AND INDEXES. CS121: Relational Databases Fall 2017 Lecture 11

DATABASE PERFORMANCE AND INDEXES. CS121: Relational Databases Fall 2017 Lecture 11 DATABASE PERFORMANCE AND INDEXES CS121: Relational Databases Fall 2017 Lecture 11 Database Performance 2 Many situations where query performance needs to be improved e.g. as data size grows, query performance

More information

MySQL Indexing. Best Practices for MySQL 5.6. Peter Zaitsev CEO, Percona MySQL Connect Sep 22, 2013 San Francisco,CA

MySQL Indexing. Best Practices for MySQL 5.6. Peter Zaitsev CEO, Percona MySQL Connect Sep 22, 2013 San Francisco,CA MySQL Indexing Best Practices for MySQL 5.6 Peter Zaitsev CEO, Percona MySQL Connect Sep 22, 2013 San Francisco,CA For those who Does not Know Us Percona Helping Businesses to be Successful with MySQL

More information

MySQL Query Patterns, Optimized

MySQL Query Patterns, Optimized MySQL Query Patterns, Optimized Bill Karwin, Percona Welcome Everybody! Bill Karwin Senior Knowledge Manager in Percona Support Joined Percona in 2010 Percona offers MySQL services Consulting Support for

More information

MySQL Indexing. Best Practices. Peter Zaitsev, CEO Percona Inc August 15, 2012

MySQL Indexing. Best Practices. Peter Zaitsev, CEO Percona Inc August 15, 2012 MySQL Indexing Best Practices Peter Zaitsev, CEO Percona Inc August 15, 2012 You ve Made a Great Choice! Understanding indexing is crucial both for Developers and DBAs Poor index choices are responsible

More information

Load Testing Tools. for Troubleshooting MySQL Concurrency Issues. May, 23, 2018 Sveta Smirnova

Load Testing Tools. for Troubleshooting MySQL Concurrency Issues. May, 23, 2018 Sveta Smirnova Load Testing Tools for Troubleshooting MySQL Concurrency Issues May, 23, 2018 Sveta Smirnova Introduction This is very personal webinar No intended use No best practices No QA-specific tools Real life

More information

Optimizing Queries with EXPLAIN

Optimizing Queries with EXPLAIN Optimizing Queries with EXPLAIN Sheeri Cabral Senior Database Administrator Twitter: @sheeri What is EXPLAIN? SQL Extension Just put it at the beginning of your statement Can also use DESC or DESCRIBE

More information

Why we re excited about MySQL 8

Why we re excited about MySQL 8 Why we re excited about MySQL 8 Practical Look for Devs and Ops Peter Zaitsev, CEO, Percona February 4nd, 2018 FOSDEM 1 In the Presentation Practical view on MySQL 8 Exciting things for Devs Exciting things

More information

Introduction to MySQL /MariaDB and SQL Basics. Read Chapter 3!

Introduction to MySQL /MariaDB and SQL Basics. Read Chapter 3! Introduction to MySQL /MariaDB and SQL Basics Read Chapter 3! http://dev.mysql.com/doc/refman/ https://mariadb.com/kb/en/the-mariadb-library/documentation/ MySQL / MariaDB 1 College Database E-R Diagram

More information

PostgreSQL to MySQL A DBA's Perspective. Patrick

PostgreSQL to MySQL A DBA's Perspective. Patrick PostgreSQL to MySQL A DBA's Perspective Patrick King @mr_mustash Yelp s Mission Connecting people with great local businesses. My Database Experience Started using Postgres 7 years ago Postgres 8.4 (released

More information

MySQL Performance Optimization and Troubleshooting with PMM. Peter Zaitsev, CEO, Percona Percona Technical Webinars 9 May 2018

MySQL Performance Optimization and Troubleshooting with PMM. Peter Zaitsev, CEO, Percona Percona Technical Webinars 9 May 2018 MySQL Performance Optimization and Troubleshooting with PMM Peter Zaitsev, CEO, Percona Percona Technical Webinars 9 May 2018 Few words about Percona Monitoring and Management (PMM) 100% Free, Open Source

More information

Introduction to troubleshooting Basic techniques. Sveta Smirnova Principal Support Engineer March, 10, 2016

Introduction to troubleshooting Basic techniques. Sveta Smirnova Principal Support Engineer March, 10, 2016 Introduction to troubleshooting Basic techniques Sveta Smirnova Principal Support Engineer March, 10, 2016 Table of Contents Introduction How to find problematic query Solving issues Syntax errors Logic

More information

Optimizing BOINC project databases

Optimizing BOINC project databases Optimizing BOINC project databases Oliver Bock Max Planck Institute for Gravitational Physics Hannover, Germany 5th Pan-Galactic BOINC Workshop Catalan Academy of Letters, Sciences and Humanities Barcelona,

More information

MySQL Utilities, part 1. Sheeri Cabral. Senior DB Admin/Architect,

MySQL Utilities, part 1. Sheeri Cabral. Senior DB Admin/Architect, MySQL Utilities, part 1 Sheeri Cabral Senior DB Admin/Architect, Mozilla @sheeri www.sheeri.com A set of tools What are they? What are they? A set of tools Like Percona toolkit, Open Ark Kit What are they?

More information

An Oracle White Paper April MySQL Enterprise Monitor and Query Analyzer Feature

An Oracle White Paper April MySQL Enterprise Monitor and Query Analyzer Feature An Oracle White Paper April 2010 MySQL Enterprise Monitor and Query Analyzer Feature Introduction... 2 Application Strategy: Performance and Scalability... 3 Common Challenges to Performance and Scalability...

More information

MySQL Schema Best Practices

MySQL Schema Best Practices MySQL Schema Best Practices 2 Agenda Introduction 3 4 Introduction - Sample Schema Key Considerations 5 Data Types 6 Data Types [root@plive-2017-demo plive_2017]# ls -alh action*.ibd -rw-r-----. 1 mysql

More information

Partitioning. Sheeri K. Cabral Database Administrator The Pythian Group, January 12, 2009

Partitioning. Sheeri K. Cabral Database Administrator The Pythian Group,  January 12, 2009 Partitioning Sheeri K. Cabral Database Administrator The Pythian Group, www.pythian.com cabral@pythian.com January 12, 2009 Partitioning Why What How How to Partition CREATE TABLE tblname ( fld FLDTYPE...

More information

MySQL vs MongoDB. Choosing right technology for your application. Peter Zaitsev CEO, Percona All Things Open, Raleigh,NC October 23 rd, 2017

MySQL vs MongoDB. Choosing right technology for your application. Peter Zaitsev CEO, Percona All Things Open, Raleigh,NC October 23 rd, 2017 MySQL vs MongoDB Choosing right technology for your application Peter Zaitsev CEO, Percona All Things Open, Raleigh,NC October 23 rd, 2017 1 MySQL vs MongoDB VS 2 Bigger Question What Open Source Database

More information

MySQL 5.1 Past, Present and Future MySQL UC 2006 Santa Clara, CA

MySQL 5.1 Past, Present and Future MySQL UC 2006 Santa Clara, CA MySQL 5.1 Past, Present and Future jan@mysql.com MySQL UC 2006 Santa Clara, CA Abstract Last year at the same place MySQL presented the 5.0 release introducing Stored Procedures, Views and Triggers to

More information

Make Your Life Easier with Maatkit. Baron Schwartz MySQL Conference & Expo 2009

Make Your Life Easier with Maatkit. Baron Schwartz MySQL Conference & Expo 2009 Make Your Life Easier with Maatkit Baron Schwartz MySQL Conference & Expo 2009 -2- About the Speaker Director of Consulting at Percona Degree in Computer Science from UVA Lead Author of High Performance

More information

Lecture 19 Query Processing Part 1

Lecture 19 Query Processing Part 1 CMSC 461, Database Management Systems Spring 2018 Lecture 19 Query Processing Part 1 These slides are based on Database System Concepts 6 th edition book (whereas some quotes and figures are used from

More information

Introduction to Troubleshooting Performance What Affects Query Execution? Sveta Smirnova Principal Support Engineer April, 7, 2016

Introduction to Troubleshooting Performance What Affects Query Execution? Sveta Smirnova Principal Support Engineer April, 7, 2016 Introduction to Troubleshooting Performance What Affects Query Execution? Sveta Smirnova Principal Support Engineer April, 7, 2016 Terms of conditions The query Controlling optimizer Concurrency Hardware

More information

Introduction To MySQL Replication. Kenny Gryp Percona Live Washington DC /

Introduction To MySQL Replication. Kenny Gryp Percona Live Washington DC / Introduction To MySQL Replication Kenny Gryp Percona Live Washington DC / 2012-01-11 MySQL Replication Replication Overview Binary Logs Setting Up Replication Commands Other Common

More information

Best Practices for Database Administrators

Best Practices for Database Administrators Best Practices for Database Administrators Sheeri K. Cabral Database Administrator The Pythian Group, www.pythian.com cabral@pythian.com 2008 MySQL User Conference & Expo MIRE Make It Really Easy Automate

More information

MySQL Performance Optimization and Troubleshooting with PMM. Peter Zaitsev, CEO, Percona

MySQL Performance Optimization and Troubleshooting with PMM. Peter Zaitsev, CEO, Percona MySQL Performance Optimization and Troubleshooting with PMM Peter Zaitsev, CEO, Percona In the Presentation Practical approach to deal with some of the common MySQL Issues 2 Assumptions You re looking

More information

<Insert Picture Here> Upcoming Changes in MySQL 5.7 Morgan Tocker, MySQL Community Manager

<Insert Picture Here> Upcoming Changes in MySQL 5.7 Morgan Tocker, MySQL Community Manager Upcoming Changes in MySQL 5.7 Morgan Tocker, MySQL Community Manager http://www.tocker.ca/ Safe Harbor Statement The following is intended to outline our general product direction.

More information

SQL QUERY EVALUATION. CS121: Relational Databases Fall 2017 Lecture 12

SQL QUERY EVALUATION. CS121: Relational Databases Fall 2017 Lecture 12 SQL QUERY EVALUATION CS121: Relational Databases Fall 2017 Lecture 12 Query Evaluation 2 Last time: Began looking at database implementation details How data is stored and accessed by the database Using

More information

Operational DBA In a Nutshell - HandsOn Reference Guide

Operational DBA In a Nutshell - HandsOn Reference Guide 1/12 Operational DBA In a Nutshell - HandsOn Reference Guide Contents 1 Operational DBA In a Nutshell 2 2 Installation of MySQL 2 2.1 Setting Up Our VM........................................ 2 2.2 Installation

More information

MySQL Database Administrator Training NIIT, Gurgaon India 31 August-10 September 2015

MySQL Database Administrator Training NIIT, Gurgaon India 31 August-10 September 2015 MySQL Database Administrator Training Day 1: AGENDA Introduction to MySQL MySQL Overview MySQL Database Server Editions MySQL Products MySQL Services and Support MySQL Resources Example Databases MySQL

More information

[Some of] New Query Optimizer features in MariaDB Sergei Petrunia MariaDB Shenzhen Meetup November 2017

[Some of] New Query Optimizer features in MariaDB Sergei Petrunia MariaDB Shenzhen Meetup November 2017 [Some of] New Query Optimizer features in MariaDB 10.3 Sergei Petrunia MariaDB Shenzhen Meetup November 2017 2 Plan MariaDB 10.2: Condition pushdown MariaDB 10.3: Condition pushdown

More information

Tips from the Trenches Preventing downtime for the over extended DBA. Andrew Moore Senior Remote DBA Percona Managed Services

Tips from the Trenches Preventing downtime for the over extended DBA. Andrew Moore Senior Remote DBA Percona Managed Services Tips from the Trenches Preventing downtime for the over extended DBA Andrew Moore Senior Remote DBA Percona Managed Services Your Presenter Andrew Moore @mysqlboy on twitter 1+ year in Manager Services

More information

Oracle 1Z0-882 Exam. Volume: 100 Questions. Question No: 1 Consider the table structure shown by this output: Mysql> desc city:

Oracle 1Z0-882 Exam. Volume: 100 Questions. Question No: 1 Consider the table structure shown by this output: Mysql> desc city: Volume: 100 Questions Question No: 1 Consider the table structure shown by this output: Mysql> desc city: 5 rows in set (0.00 sec) You execute this statement: SELECT -,-, city. * FROM city LIMIT 1 What

More information

Make Your Life Easier with Maatkit. Ryan Lowe San Francisco MySQL Meetup

Make Your Life Easier with Maatkit. Ryan Lowe San Francisco MySQL Meetup Make Your Life Easier with Maatkit Ryan Lowe San Francisco MySQL Meetup Senior Consultant at Percona Performance Background Telecommunications Health Care Defense F/OSS OmniSQL MyDBDoc check-mysql-all

More information

The Hazards of Multi-writing in a Dual-Master Setup

The Hazards of Multi-writing in a Dual-Master Setup The Hazards of Multi-writing in a Dual-Master Setup Jay Janssen MySQL Consulting Lead November 15th, 2012 Explaining the Problem Rules of the Replication Road A given MySQL instance: Can be both a master

More information

Query Optimization, part 2: query plans in practice

Query Optimization, part 2: query plans in practice Query Optimization, part 2: query plans in practice CS634 Lecture 13 Slides by E. O Neil based on Database Management Systems 3 rd ed, Ramakrishnan and Gehrke Working with the Oracle query optimizer First

More information

Mastering the art of indexing

Mastering the art of indexing Mastering the art of indexing Yoshinori Matsunobu Lead of MySQL Professional Services APAC Sun Microsystems Yoshinori.Matsunobu@sun.com 1 Table of contents Speeding up Selects B+TREE index structure Index

More information

Performance Schema. for MySQL Troubleshooting. March, 1, 2018 Sveta Smirnova

Performance Schema. for MySQL Troubleshooting. March, 1, 2018 Sveta Smirnova Performance Schema for MySQL Troubleshooting March, 1, 2018 Sveta Smirnova Table of Contents Overview and Configuration Statements Memory Usage Locks Diagnostics Variables and Status Errors Summary Connection

More information

Sheeri Cabral. Are You Getting the Best Out of Your MySQL Indexes? Slides

Sheeri Cabral. Are You Getting the Best Out of Your MySQL Indexes? Slides Are You Getting the Best Out of Your MySQL Indexes? Slides http://bit.ly/mysqlindex2 Sheeri Cabral Senior DB Admin/Architect, Mozilla @sheeri www.sheeri.com What is an index? KEY vs. INDEX KEY = KEY CONSTRAINT

More information

Replication features of 2011

Replication features of 2011 FOSDEM 2012 Replication features of 2011 What they were How to get them How to use them Sergey Petrunya MariaDB MySQL Replication in 2011: overview Notable events, chronologically: MySQL 5.5 GA (Dec 2010)

More information

Introduction to MySQL NDB Cluster. Yves Trudeau Ph. D. Percona Live DC/January 2012

Introduction to MySQL NDB Cluster. Yves Trudeau Ph. D. Percona Live DC/January 2012 Introduction to MySQL NDB Cluster Yves Trudeau Ph. D. Percona Live DC/January 2012 Agenda What is NDB Cluster? How MySQL uses NDB Cluster Good use cases Bad use cases Example of tuning What is NDB cluster?

More information

Optimizer Standof. MySQL 5.6 vs MariaDB 5.5. Peter Zaitsev, Ovais Tariq Percona Inc April 18, 2012

Optimizer Standof. MySQL 5.6 vs MariaDB 5.5. Peter Zaitsev, Ovais Tariq Percona Inc April 18, 2012 Optimizer Standof MySQL 5.6 vs MariaDB 5.5 Peter Zaitsev, Ovais Tariq Percona Inc April 18, 2012 Thank you Ovais Tariq Ovais Did a lot of heavy lifing for this presentation He could not come to talk together

More information

XA Transactions in MySQL

XA Transactions in MySQL XA Transactions in MySQL An overview and troubleshooting guide to distributed transactions Dov Endress Senior MySQL DBA July 25th 2018 1 2016 Percona ACID Compliant Distributed Transactions Distributed

More information

MySQL Performance Troubleshooting

MySQL Performance Troubleshooting MySQL Performance Troubleshooting Best Practices Francisco Bordenave - Architect, Percona Agenda Who am I? Introduction Identifying the source of problem We know where the problem is, now what? Best practices

More information

Mysql Information Schema Update Time Null >>>CLICK HERE<<< doctrine:schema:update --dump-sql ALTER TABLE categorie

Mysql Information Schema Update Time Null >>>CLICK HERE<<< doctrine:schema:update --dump-sql ALTER TABLE categorie Mysql Information Schema Update Time Null I want to update a MySQL database schema (with MySQL code) but I am unfortunately not sure 'name' VARCHAR(64) NOT NULL 'password' VARCHAR(64) NOT NULL fieldname

More information

MySQL Security, Privileges & User Management Kenny Gryp Percona Live Washington DC /

MySQL Security, Privileges & User Management Kenny Gryp Percona Live Washington DC / MySQL Security, Privileges & User Management Kenny Gryp Percona Live Washington DC / 2012-01-11 Security, Privileges & User Management Privilege System User Management Pluggable

More information

Preventing and Resolving MySQL Downtime. Jervin Real, Michael Coburn Percona

Preventing and Resolving MySQL Downtime. Jervin Real, Michael Coburn Percona Preventing and Resolving MySQL Downtime Jervin Real, Michael Coburn Percona About Us Jervin Real, Technical Services Manager Engineer Engineering Engineers APAC Michael Coburn, Principal Technical Account

More information

ITS. MySQL for Database Administrators (40 Hours) (Exam code 1z0-883) (OCP My SQL DBA)

ITS. MySQL for Database Administrators (40 Hours) (Exam code 1z0-883) (OCP My SQL DBA) MySQL for Database Administrators (40 Hours) (Exam code 1z0-883) (OCP My SQL DBA) Prerequisites Have some experience with relational databases and SQL What will you learn? The MySQL for Database Administrators

More information

Upgrading MySQL Best Practices. Apr 11-14, 2011 MySQL Conference and Expo Santa Clara,CA by Peter Zaitsev, Percona Inc

Upgrading MySQL Best Practices. Apr 11-14, 2011 MySQL Conference and Expo Santa Clara,CA by Peter Zaitsev, Percona Inc Upgrading MySQL Best Practices Apr 11-14, 2011 MySQL Conference and Expo Santa Clara,CA by Peter Zaitsev, Percona Inc MySQL Upgrade How many of you have performed MySQL upgrade? Home many of you have done

More information

Target Practice. A Workshop in Tuning MySQL Queries OSCON Jay Pipes Community Relations Manager, North America MySQL, Inc.

Target Practice. A Workshop in Tuning MySQL Queries OSCON Jay Pipes Community Relations Manager, North America MySQL, Inc. Target Practice A Workshop in Tuning MySQL Queries OSCON 2007 Jay Pipes Community Relations Manager, North America MySQL, Inc. Setup Download materials and MySQL Community Server Download workshop materials

More information

IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including:

IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including: IT Best Practices Audit TCS offers a wide range of IT Best Practices Audit content covering 15 subjects and over 2200 topics, including: 1. IT Cost Containment 84 topics 2. Cloud Computing Readiness 225

More information

1Copyright 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12

1Copyright 2012, Oracle and/or its affiliates. All rights reserved. Insert Information Protection Policy Classification from Slide 12 1 Insert Information Protection Policy Classification from Slide 12 Getting Started with MySQL Santo Leto Principal Technical Support Engineer, MySQL Jesper Wisborg Krogh Principal Technical Support Engineer,

More information

Monitoring MySQL Performance with Percona Monitoring and Management

Monitoring MySQL Performance with Percona Monitoring and Management Monitoring MySQL Performance with Percona Monitoring and Management Santa Clara, California April 23th 25th, 2018 MIchael Coburn, Product Manager Your Presenter Product Manager for PMM (also Percona Toolkit

More information

Percona XtraDB: Compressed Columns with Dictionaries an alternative to InnoDB table compression. Yura Sorokin, Senior Software Engineer at Percona

Percona XtraDB: Compressed Columns with Dictionaries an alternative to InnoDB table compression. Yura Sorokin, Senior Software Engineer at Percona Percona XtraDB: Compressed Columns with Dictionaries an alternative to InnoDB table compression Yura Sorokin, Senior Software Engineer at Percona Existing compression methods Overview Existing compression

More information

State of MariaDB. Igor Babaev Notice: MySQL is a registered trademark of Sun Microsystems, Inc.

State of MariaDB. Igor Babaev Notice: MySQL is a registered trademark of Sun Microsystems, Inc. State of MariaDB Igor Babaev igor@askmonty.org New features in MariaDB 5.2 New engines: OQGRAPH, SphinxSE Virtual columns Extended User Statistics Segmented MyISAM key cache Pluggable Authentication Storage-engine-specific

More information

Effective Testing for Live Applications. March, 29, 2018 Sveta Smirnova

Effective Testing for Live Applications. March, 29, 2018 Sveta Smirnova Effective Testing for Live Applications March, 29, 2018 Sveta Smirnova Table of Contents Sometimes You Have to Test on Production Wrong Data SELECT Returns Nonsense Wrong Data in the Database Performance

More information

MySQL usage of web applications from 1 user to 100 million. Peter Boros RAMP conference 2013

MySQL usage of web applications from 1 user to 100 million. Peter Boros RAMP conference 2013 MySQL usage of web applications from 1 user to 100 million Peter Boros RAMP conference 2013 Why MySQL? It's easy to start small, basic installation well under 15 minutes. Very popular, supported by a lot

More information

High Performance MySQL Practical Tuesday, April 01, :45

High Performance MySQL Practical Tuesday, April 01, :45 High Performance MySQL Practical Tuesday, April 01, 2014 16:45 1. Optimal Data Types: a. Choose Data Type Suggestion: i. Smaller is usually better ii. Simple is good iii. Avoid NULL if possible b. MySQL

More information

What s New in MariaDB Server Max Mether VP Server

What s New in MariaDB Server Max Mether VP Server What s New in MariaDB Server 10.3 Max Mether VP Server Recap MariaDB 10.2 New in MariaDB 10.2 - GA since May 2017 What s New in 10.2 Analytics SQL Window Functions Common Table Expressions (CTE) JSON JSON

More information

COMP283-Lecture 6 Applied Database Management

COMP283-Lecture 6 Applied Database Management Applied Database Management Introduction Database Administration More Optimisation Maintaining Data Integrity Improving Performance 1 DB Administration: Full-text index Full Text Index Index large text

More information

SQL (and MySQL) Useful things I have learnt, borrowed and stolen

SQL (and MySQL) Useful things I have learnt, borrowed and stolen SQL (and MySQL) Useful things I have learnt, borrowed and stolen MySQL truncates data MySQL truncates data CREATE TABLE pets ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, type CHAR(3) NOT NULL, PRIMARY KEY

More information

MySQL 5.7 For Operational DBAs an Introduction. Peter Zaitsev, CEO, Percona February 16, 2016 Percona Technical Webinars

MySQL 5.7 For Operational DBAs an Introduction. Peter Zaitsev, CEO, Percona February 16, 2016 Percona Technical Webinars MySQL 5.7 For Operational DBAs an Introduction Peter Zaitsev, CEO, Percona February 16, 2016 Percona Technical Webinars MySQL 5.7 is Great! A lot of Worthy Changes for Developers and DBAs 2 What Developers

More information

percona-agent Documentation

percona-agent Documentation percona-agent Documentation Release 1.0.10 Percona June 30, 2015 Contents 1 Getting Started with Percona Cloud Tools 3 1.1 How PCT Works............................................. 3 1.2 Tools...................................................

More information

MySQL Performance Schema in Action. April, 23, 2018 Sveta Smirnova, Alexander Rubin

MySQL Performance Schema in Action. April, 23, 2018 Sveta Smirnova, Alexander Rubin MySQL Performance Schema in Action April, 23, 2018 Sveta Smirnova, Alexander Rubin Table of Contents Performance Schema Configuration 5.6+: Statements Instrumentation 5.7+: Prepared Statements 5.7+: Stored

More information