+ All Categories
Home > Technology > Teaser For the Percona Live London 2014 Tutorial: "Query Optimization with MySQL 5.7 and MariaDB...

Teaser For the Percona Live London 2014 Tutorial: "Query Optimization with MySQL 5.7 and MariaDB...

Date post: 20-Aug-2015
Category:
Upload: jaime-crespo
View: 413 times
Download: 0 times
Share this document with a friend
Popular Tags:
9
DBAHire.com Query Optimization With MySQL 5.7 and MariaDB 10: Even Newer Tricks © 2014 DBAHIRE.COM Query Optimization With MySQL 5.7 and MariaDB 10: Even Newer Tricks Percona Live London 2014 dbahire.com/pluk14 1
Transcript
Page 1: Teaser  For the Percona Live London 2014 Tutorial: "Query Optimization with MySQL 5.7 and MariaDB 10: even newer tricks" by DBAHire.com

DBAHire.com

Query  Optimization  With  MySQL  5.7  and  MariaDB  10:  Even  Newer  Tricks

©  2014  DBAHIRE.COM

Query Optimization With MySQL 5.7 and MariaDB 10: Even Newer Tricks

Percona Live London 2014 dbahire.com/pluk14

1

Page 2: Teaser  For the Percona Live London 2014 Tutorial: "Query Optimization with MySQL 5.7 and MariaDB 10: even newer tricks" by DBAHire.com

©  2014  DBAHIRE.COM

Query  Optimization  With  MySQL  5.7  and  MariaDB  10:  Even  Newer  Tricks

Agenda - 3 hours

2

1. Introduction 8. Subquery Optimization

2. Break (VM installation) 9. Fulltext Search

3. General Optimizer Improvements 10. GIS Improvements

4. Computed/Virtual Columns 11. Break

5. Query Rewrite Plugins 12. Query Profiling

6. SQL Mode Changes 13. Results and Conclusions

7. JOIN Optimization 14. Q&A

Page 3: Teaser  For the Percona Live London 2014 Tutorial: "Query Optimization with MySQL 5.7 and MariaDB 10: even newer tricks" by DBAHire.com

Query  Optimization  With  MySQL  5.7  and  MariaDB  10:  Even  Newer  Tricks

©  2014  DBAHIRE.COM

INTRODUCTION

Query Optimization With MySQL 5.7 and MariaDB 10: Even Newer Tricks

3

Page 4: Teaser  For the Percona Live London 2014 Tutorial: "Query Optimization with MySQL 5.7 and MariaDB 10: even newer tricks" by DBAHire.com

Query  Optimization  With  MySQL  5.7  and  MariaDB  10:  Even  Newer  Tricks

©  2014  DBAHIRE.COM

This is Me Fighting Bad Query Performance

• MySQL Consultant at DBAHire.com

• Used to work for Oracle (MySQL), Percona

• Loves MySQL query optimization and HA

4

Page 5: Teaser  For the Percona Live London 2014 Tutorial: "Query Optimization with MySQL 5.7 and MariaDB 10: even newer tricks" by DBAHire.com

Query  Optimization  With  MySQL  5.7  and  MariaDB  10:  Even  Newer  Tricks

©  2014  DBAHIRE.COM

MySQL Versions• Oracle MySQL 5.6 (GA) almost 2 years old • MariaDB 10 over 7 months old • Several lab/alpha releases of MySQL 5.7 and

MariaDB 10.1 with great new features – We will focus only on SQL-related ones – We will not perform formal benchmarks or comparisons

5

Page 6: Teaser  For the Percona Live London 2014 Tutorial: "Query Optimization with MySQL 5.7 and MariaDB 10: even newer tricks" by DBAHire.com

Query  Optimization  With  MySQL  5.7  and  MariaDB  10:  Even  Newer  Tricks

©  2014  DBAHIRE.COM

New Query Optimization Features• Index Condition Pushdown • Subquery Optimizations

(materialization and semijoin) • IN-to-EXISTS • JOIN-to-WHERE • Multi-Range Read • Batched Key Access • Persistent InnoDB Statistics • EXPLAIN FORMAT=JSON • EXPLAIN INSERT/UPDATE/DELETE • Hash Join • New cost-based optimizer • Optimizer Trace • Filesort with a short LIMIT

• EXISTS-to-IN • EXPLAIN FOR CONNECTION • Faster eq_ref • Extended secondary keys • Histograms • Improved Spatial Indexes (GIS) • Histograms • Virtual columns • PERFORMANCE_SCHEMA

improvements • Forced strict SQL mode; functional

dependencies in GROUP BY • Query rewrite plugin • Configurable optimizer_search_depth

6

Page 7: Teaser  For the Percona Live London 2014 Tutorial: "Query Optimization with MySQL 5.7 and MariaDB 10: even newer tricks" by DBAHire.com

Query  Optimization  With  MySQL  5.7  and  MariaDB  10:  Even  Newer  Tricks

©  2014  DBAHIRE.COM

I Already Mentioned Some of Those Topics One Year Ago

• Check my presentation here:http://www.slideshare.net/jynus/query-optimization56

7

Page 8: Teaser  For the Percona Live London 2014 Tutorial: "Query Optimization with MySQL 5.7 and MariaDB 10: even newer tricks" by DBAHire.com

Query  Optimization  With  MySQL  5.7  and  MariaDB  10:  Even  Newer  Tricks

©  2014  DBAHIRE.COM

Example Application

• OSM Database is licensed under the Open DataBase License and is Copyright OpenStreetMap Contributors

8

Page 9: Teaser  For the Percona Live London 2014 Tutorial: "Query Optimization with MySQL 5.7 and MariaDB 10: even newer tricks" by DBAHire.com

Query  Optimization  With  MySQL  5.7  and  MariaDB  10:  Even  Newer  Tricks

©  2014  DBAHIRE.COM

100+ slides at Percona Live London 2014

You still have time to attend Percona Live London 2014 and my

tutorial on Query Optimization

Go to http://www.percona.com/live/london-2014/ and register for

tutorial day!9


Recommended