SlideShare a Scribd company logo
1 / 46
2 / 46
3 / 46
June 2017
MySQL Innovation
Evolution is inevitable
 
 
 
 
Frédéric Descamps - MySQL Community Manager - Oracle
4 / 46
 
Safe Harbor Statement
The following is intended to outline our general product direction. It is intended for
information purpose only, and may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality, and should not be relied up in
making purchasing decisions. The development, release and timing of any features or
functionality described for Oracle´s product remains at the sole discretion of Oracle.
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
5 / 46
about.me/lefred
Who am I ?
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
6 / 46
Frédéric Descamps
@lefred
MySQL Evangelist
Hacking MySQL since 3.23
devops believer
MySQL Community Manager since May
2016
living in Belgium 🇧🇪
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
7 / 46
MySQL 5.7 -> 8.0
Innovation
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
8 / 46
 
 
 
MySQL 5.7 (GA)
3x Better Performance
Replication Enhancements
Optimizer Cost Model
JSON Support
Improved Security
SYS & Performance Schema
GIS
 
 
MySQL InnoDB Cluster (GA)
MySQL Group Replication
MySQL Router
MySQL Shell
MySQL 8.0 (DMR)
Data Dictionary
Roles
Unicode
CTEs
Window Functions
Security
Replication
SysSchema
GIS
MySQL Innovation: 5.7 -> 8.0
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
9 / 46
100%
 
virtually all organizations require their most
critical systems to be highly available !
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
10 / 46
100%
 
virtually all organizations require their most
critical systems to be highly available !
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
11 / 46
 
  "HighAvailabilitybecomesacorefirst
classfeatureofMySQL!"
MySQL InnoDB Cluster
 
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
12 / 46
MySQL InnoDB Cluster: vision
  "Asingleproduct-MySQL-withhighavailabilityandscalingfeaturesbakedin;providing
anintegratedend-to-endsolutionthatiseasytouse."
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
13 / 46
MySQL InnoDB Cluster: vision
  "Asingleproduct-MySQL-withhighavailabilityandscalingfeaturesbakedin;providing
anintegratedend-to-endsolutionthatiseasytouse."
InnoDB
cluster
Ease-of-Use
Extreme Scale-Out
Out-of-Box Solution
Built-in HA
High Performance
Everything Integrated
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
14 / 46
One Product: MySQL
All components created together
Tested together
Packaged together
Easy to Use
One client: MySQL Shell
Easy packaging
Integrated orchestration
Homogenous servers
Flexible and Moden
SQL and NoSQL together
Protocol Buffers
Asynchronous API
Developer friendly
Support Read/Write Scale Out
Shared clusters
Federated systemof N replica sets
supporting cross shard
operations
Each replica set manages a shard
MySQL InnoDB Cluster: goals
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
15 / 46
MySQL powers the Web !
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
16 / 46
MySQL powers the Web !
and many more...
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
17 / 46
Web applications evolution
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
18 / 46
Web applications evolution
Everything is already Mobile first or moving to mobile very soon
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
19 / 46
Web applications evolution
Everything is already Mobile first or moving to mobile very soon
 
 
...and it impacts our roadmap and newfeatures priority
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
20 / 46
Evolution Driving Roadmap: 1995 vs 2017
 
There was no local.
Noweverything is
contextual to me as a
user.
The Internet was
global, but full of
silos. Nowwe are
more connected than
ever.
In the past APIs were
cumbersome,
powered by SOAP and
XML-RPC.
There is nowan
increased focus on
privacy and
protecting
information.
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
21 / 46
Evolution Driving Roadmap: 1995 vs 2017
 
There was no local.
Noweverything is
contextual to me as a
user.
The Internet was
global, but full of
silos. Nowwe are
more connected than
ever.
In the past APIs were
cumbersome,
powered by SOAP and
XML-RPC.
There is nowan
increased focus on
privacy and
protecting
information.
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
22 / 46
Evolution Driving Roadmap: MySQL 5.7 recap
Switched to
Boost.Geometry
library
R+Tree indexes for
InnoDB
Spatial Typed for
InnoDB
Optimized InnoDB
Temporary Tables
Optimized Packed
Sort Buffer
Switched InnoDB to
DYNAMIC row format
by default
Native JSON Data
Type
20+ JSON Functions
Generated Columns
for Functional Index
JSON Comparator
Short-hand JSON
operators
Secure by Default
Password Expiration
Password Policy
Remove old
password hash
Encrypted
Tablespaces, TDE
(Enterprise)
Firewall (Enterprise)
Audit (Enterprise)
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
23 / 46
Evolution Driving Roadmap: MySQL 8.0
Geography support
Spatial Reference
System (SRS)
Support
SQL/MM Information
Schema views
Standard compliant
axis ordering in
import/export
functions
Utf8mb4 as default
Up to 16x Faster
Performance
Based on Unicode 9.0
New collations with
Accents/Case sensitivity
Japanese Collation
Aggregate, Table
and Pretty Print
Functions
Sort Performance
Improvements
Optimizer support
for in-place update
JSON Shell
Roles
Encrypted REDO Log
and UNDO Space
Finer grained
system privileges
Atomicity in
Privilege
statements
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
24 / 46
Overview of improvements & new features
What's new in MySQL 8.0 ?
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
25 / 46
Fully Function, Properly Architected
Roles
Create and Drop Roles, Grant to Roles
Grant Roles to Roles. Grant Roles to
Users
Limit Hosts that can use roles, Define
Default Roles
And even visualize Roles with SQL
function ROLES_GRAHPHML()
MySQL 8.0: Security Roles
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
26 / 46
MySQL 8.0 vs MySQL 5.7 utf8mb4
UTF8MB4 is nowthe default charset set !
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
27 / 46
MySQL 8.0 vs MySQL 5.7 utf8mb3
No need to use the short-cut as in 5.7
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
28 / 46
MySQL 8.0: Boosts Developer Productivity
 
Improve support for the SQL standard
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
29 / 46
MySQL 8.0: Boosts Developer Productivity
New! CTEs and Recusrsive CTEs
New! WindowFunctions
New! SKIP LOCKED and NOWAIT
UUIDs and Bitwise Functions
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
30 / 46
WITH RECURSIVE qn AS
( SELECT 1 AS a
UNION ALL
SELECT 1+a FROM qn WHERE a<10
)
SELECT * FROM qn;
MySQL 8.0: recursive CTE (example)
 
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
31 / 46
WITH RECURSIVE qn AS
( SELECT 1 AS a
UNION ALL
SELECT 1+a FROM qn WHERE a<10
)
SELECT * FROM qn;
+------+
| a |
+------+
| 1 |
| 2 |
| 3 |
| 4 |
| 5 |
| 6 |
| 7 |
| 8 |
| 9 |
| 10 |
+------+
10 rows in set (0.01 sec)
MySQL 8.0: recursive CTE (example)
 
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
32 / 46
SELECT seat_no
FROM seats
JOIN seat_rows USING (row_no)
WHERE seat_no IN (3,4)
AND seat_rows.row_no IN (12)
AND booked = 'NO'
FOR UPDATE OF seats SKIP LOCKED
FOR SHARE OF seats_rows NOWAIT;
MySQL 8.0: better handing of hot rows
 
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
33 / 46
SELECT seat_no
FROM seats
JOIN seat_rows USING (row_no)
WHERE seat_no IN (3,4)
AND seat_rows.row_no IN (12)
AND booked = 'NO'
FOR UPDATE OF seats SKIP LOCKED
FOR SHARE OF seats_rows NOWAIT;
SKIP LOCKED = non deterministically
skip over locked rows
NOWAIT = error immediately if a rowis
already locked
MySQL 8.0: better handing of hot rows
 
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
34 / 46
Do more with a fewer number of servers
Take more advantages of newhardware:
SSD
multi-core processors
Greater density per server
Operator Friendliness
Increase Reliability
Improved Replication Throughput
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
35 / 46
MySQL 8.0: Makes Scale Easier
Better Observability: improving PFS (more instruments, better performance)
Newoperations
Higher Reliability: systemtables are nowin InnoDB and is used for Data Dictionary
Parallel Replication
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
36 / 46
MySQL 8.0: Performance Schema
SQL error instrumentation
Indexes
Configuration Variables
New! Data Locks
New! Histograms
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
37 / 46
PFS : Performance Comparison
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
38 / 46
PFS : Performance Comparison
Over 30x faster!
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
39 / 46
MySQL 8.0: Invisible Indexes
Indexes are "hidden" to the MySQL Optimizer
not the same as "disabled indexes"
contents are fully up to date and maintained by DML
Two use cases:
Soft Delete (RecycleBin)
Staged Rollout
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
40 / 46
MySQL 8.0: Persist Configuration
Persist GLOBAL Server Variables
SET PERSIST max_connections = 500;
Examples Include:
Of ine_mode
Read_Only
Requires no filesystemaccess
New! Captures timestamp and change user
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
41 / 46
MySQL 8.0: Parallel Replication
MySQL 5.7 added support for logical clock parallel replication
in early version (<5.7.3), the logical clock is group commit based
in next versions, the logical clock is interval based
MySQL 8.0 adds support for Write Set parallelismidentification
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
42 / 46
MySQL 8.0: Replication Improvements
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
43 / 46
MySQL 8.0: Replication Improvements
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
44 / 46
Source code now documented
with Doxygen
Plugin Infrastructure!
Expanded Query Hints Support
Improved Scan Query Performance
Improved BLOB Storage
Improved Memcached Interface
Cost Model Improvements
Scalabibilty Improvements
Atomicity in Privileges
Parser Refactoring
Improvements to Temporary
Tables
C++11 and Toolchain
Improvements
GTID_PURGED always settable
Persistent Auto Increment
Native InnoDB Data Dictionary
Improved Information Schema
performance
New! SQL Grouping Function
New! Optimizer Trace detailed
sort statistics
New! Descending Indexes
New! Smaller Package Downloads
New! JSON Aggregate, Pretty
print functions
New! JSON performance
improvements
New! Expended Query Hints
New! Improved usability of cost
constant configuration
Group Replication
New! Transaction Save Point
support in Group Replication
New! Improved Replication Applier
Lag Statistics in Performance
Schema
New! Per Multi-source Channel
Replication Filters
New! Atomic DDL extended to the
Binary Log
New! Performance Improvements
on the Replication Applier
New! Parallel Replication Applier
Policy
New! Binary Log Management
Enhancements
New! Additional Metadata into the
Binary Log
All these features plus...
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
45 / 46
Thank you !
Any Questions ?
Copyright @ 2017 Oracle and/or its affiliates. All rights reserved.
46 / 46

More Related Content

PDF
MySQL InnoDB Cluster - A complete High Availability solution for MySQL
Olivier DASINI
 
PPTX
Windows Azure Blob Storage
ylew15
 
PDF
MySQL Group Replication - Ready For Production? (2018-04)
Kenny Gryp
 
PPTX
Azure Networking (1).pptx
Razith2
 
PDF
New features in ProxySQL 2.0 (updated to 2.0.9) by Rene Cannao (ProxySQL)
Altinity Ltd
 
PPTX
차세대 데이터센터 네트워크 전략
Woo Hyung Choi
 
PDF
LG전자 - Amazon Aurora 및 RDS 블루/그린 배포를 이용한 데이터베이스 업그레이드 안정성 확보 - 발표자: 이은경 책임, L...
Amazon Web Services Korea
 
PPTX
VMware Advance Troubleshooting Workshop - Day 4
Vepsun Technologies
 
MySQL InnoDB Cluster - A complete High Availability solution for MySQL
Olivier DASINI
 
Windows Azure Blob Storage
ylew15
 
MySQL Group Replication - Ready For Production? (2018-04)
Kenny Gryp
 
Azure Networking (1).pptx
Razith2
 
New features in ProxySQL 2.0 (updated to 2.0.9) by Rene Cannao (ProxySQL)
Altinity Ltd
 
차세대 데이터센터 네트워크 전략
Woo Hyung Choi
 
LG전자 - Amazon Aurora 및 RDS 블루/그린 배포를 이용한 데이터베이스 업그레이드 안정성 확보 - 발표자: 이은경 책임, L...
Amazon Web Services Korea
 
VMware Advance Troubleshooting Workshop - Day 4
Vepsun Technologies
 

What's hot (20)

PPTX
Azure Storage
Mustafa
 
PDF
MySQL Group Replication
Kenny Gryp
 
PDF
AWS
ARYA TM
 
PPT
MySQL Enterprise Edition
MySQL Brasil
 
PDF
Understanding Azure AD
New Horizons Ireland
 
PPSX
Brocade Administration & troubleshooting
prakashjjaya
 
PDF
MySQL High Availability with Group Replication
Nuno Carvalho
 
PPTX
MySQL Slow Query log Monitoring using Beats & ELK
YoungHeon (Roy) Kim
 
PDF
[오픈소스컨설팅] 서비스 메쉬(Service mesh)
Open Source Consulting
 
PPTX
Azure IAAS architecture with High Availability for beginners and developers -...
Malleswar Reddy
 
PPTX
Azure Database Services for MySQL PostgreSQL and MariaDB
Nicholas Vossburg
 
PDF
デスクトップ仮想化の実践 - powered by Windows Server 2016 & Azure - (Microsoft de:code 2016)
Takamasa Maejima
 
PPTX
Containerization in microsoft azure
Mohit Chhabra
 
PDF
The Complete Guide to Service Mesh
Aspen Mesh
 
PPTX
MySQL enterprise edition
Mark Swarbrick
 
ODP
Kvm virtualization platform
Ahmad Hafeezi
 
PDF
MariaDB MaxScale
MariaDB plc
 
PDF
ProxySQL High Availability (Clustering)
Mydbops
 
PDF
MySQL/MariaDB Proxy Software Test
I Goo Lee
 
PPTX
Azure Site Recovery
Lalit Rawat
 
Azure Storage
Mustafa
 
MySQL Group Replication
Kenny Gryp
 
AWS
ARYA TM
 
MySQL Enterprise Edition
MySQL Brasil
 
Understanding Azure AD
New Horizons Ireland
 
Brocade Administration & troubleshooting
prakashjjaya
 
MySQL High Availability with Group Replication
Nuno Carvalho
 
MySQL Slow Query log Monitoring using Beats & ELK
YoungHeon (Roy) Kim
 
[오픈소스컨설팅] 서비스 메쉬(Service mesh)
Open Source Consulting
 
Azure IAAS architecture with High Availability for beginners and developers -...
Malleswar Reddy
 
Azure Database Services for MySQL PostgreSQL and MariaDB
Nicholas Vossburg
 
デスクトップ仮想化の実践 - powered by Windows Server 2016 & Azure - (Microsoft de:code 2016)
Takamasa Maejima
 
Containerization in microsoft azure
Mohit Chhabra
 
The Complete Guide to Service Mesh
Aspen Mesh
 
MySQL enterprise edition
Mark Swarbrick
 
Kvm virtualization platform
Ahmad Hafeezi
 
MariaDB MaxScale
MariaDB plc
 
ProxySQL High Availability (Clustering)
Mydbops
 
MySQL/MariaDB Proxy Software Test
I Goo Lee
 
Azure Site Recovery
Lalit Rawat
 
Ad

Similar to MySQL Innovation from 5.7 to 8.0 (20)

PDF
MySQL Community Meetup in China : Innovation driven by the Community
Frederic Descamps
 
PDF
20191001 bkk-secret-of inno-db_clusterv1
Ivan Ma
 
PDF
What's New in MySQL 8.0 @ HKOSC 2017
Ivan Ma
 
PDF
Mysql User Camp : 20th June - Mysql New Features
Tarique Saleem
 
PDF
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
Mysql User Camp
 
PPTX
MySQL 8.0 in a nutshell
OracleMySQL
 
PPTX
State ofdolphin short
Mandy Ang
 
PDF
Introduction to MySQL InnoDB Cluster
Frederic Descamps
 
PDF
Netherlands Tech Tour - 07 MySQL Whats upcoming in 5.7
Mark Swarbrick
 
PDF
MySQL InnoDB Cluster - Meetup Oracle MySQL / AFUP Paris
Olivier DASINI
 
PDF
DataOps Barcelona - MySQL HA so easy... that's insane !
Frederic Descamps
 
PDF
MySQL no Paypal Tesla e Uber
MySQL Brasil
 
PDF
Introduction to MySQL InnoDB Cluster
Frederic Descamps
 
PDF
My sql5.7 whatsnew_presentedatgids2015
Sanjay Manwani
 
PDF
MySQL InnoDB Cluster and NDB Cluster
Mario Beck
 
PDF
What's New in MySQL 5.7
Olivier DASINI
 
PDF
MySQL InnoDB Cluster in a Nutshell - Hands-on Lab
Frederic Descamps
 
PDF
TWJUG August, What's new in MySQL 5.7 RC
Ryusuke Kajiyama
 
PDF
MySQL 5.7 InnoDB Cluster (Jan 2018)
Olivier DASINI
 
PPT
MySQL in Oracle environment : Quick start guide for Oracle DBA (Part 1)
OracleMySQL
 
MySQL Community Meetup in China : Innovation driven by the Community
Frederic Descamps
 
20191001 bkk-secret-of inno-db_clusterv1
Ivan Ma
 
What's New in MySQL 8.0 @ HKOSC 2017
Ivan Ma
 
Mysql User Camp : 20th June - Mysql New Features
Tarique Saleem
 
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
Mysql User Camp
 
MySQL 8.0 in a nutshell
OracleMySQL
 
State ofdolphin short
Mandy Ang
 
Introduction to MySQL InnoDB Cluster
Frederic Descamps
 
Netherlands Tech Tour - 07 MySQL Whats upcoming in 5.7
Mark Swarbrick
 
MySQL InnoDB Cluster - Meetup Oracle MySQL / AFUP Paris
Olivier DASINI
 
DataOps Barcelona - MySQL HA so easy... that's insane !
Frederic Descamps
 
MySQL no Paypal Tesla e Uber
MySQL Brasil
 
Introduction to MySQL InnoDB Cluster
Frederic Descamps
 
My sql5.7 whatsnew_presentedatgids2015
Sanjay Manwani
 
MySQL InnoDB Cluster and NDB Cluster
Mario Beck
 
What's New in MySQL 5.7
Olivier DASINI
 
MySQL InnoDB Cluster in a Nutshell - Hands-on Lab
Frederic Descamps
 
TWJUG August, What's new in MySQL 5.7 RC
Ryusuke Kajiyama
 
MySQL 5.7 InnoDB Cluster (Jan 2018)
Olivier DASINI
 
MySQL in Oracle environment : Quick start guide for Oracle DBA (Part 1)
OracleMySQL
 
Ad

More from Frederic Descamps (20)

PDF
MySQL Innovation & Cloud Day - Document Store avec MySQL HeatWave Database Se...
Frederic Descamps
 
PDF
MySQL Day Roma - MySQL Shell and Visual Studio Code Extension
Frederic Descamps
 
PDF
RivieraJUG - MySQL Indexes and Histograms
Frederic Descamps
 
PDF
RivieraJUG - MySQL 8.0 - What's new for developers.pdf
Frederic Descamps
 
PDF
MySQL User Group NL - MySQL 8
Frederic Descamps
 
PDF
State of the Dolphin - May 2022
Frederic Descamps
 
PDF
Percona Live 2022 - MySQL Shell for Visual Studio Code
Frederic Descamps
 
PDF
Percona Live 2022 - The Evolution of a MySQL Database System
Frederic Descamps
 
PDF
Percona Live 2022 - MySQL Architectures
Frederic Descamps
 
PDF
LinuxFest Northwest 2022 - The Evolution of a MySQL Database System
Frederic Descamps
 
PDF
Open Source 101 2022 - MySQL Indexes and Histograms
Frederic Descamps
 
PDF
Pi Day 2022 - from IoT to MySQL HeatWave Database Service
Frederic Descamps
 
PDF
Confoo 2022 - le cycle d'une instance MySQL
Frederic Descamps
 
PDF
FOSDEM 2022 MySQL Devroom: MySQL 8.0 - Logical Backups, Snapshots and Point-...
Frederic Descamps
 
PDF
Les nouveautés de MySQL 8.0
Frederic Descamps
 
PDF
Les nouveautés de MySQL 8.0
Frederic Descamps
 
PDF
State of The Dolphin - May 2021
Frederic Descamps
 
PDF
MySQL Shell for DBAs
Frederic Descamps
 
PDF
Deploying Magento on OCI with MDS
Frederic Descamps
 
PDF
MySQL Router REST API
Frederic Descamps
 
MySQL Innovation & Cloud Day - Document Store avec MySQL HeatWave Database Se...
Frederic Descamps
 
MySQL Day Roma - MySQL Shell and Visual Studio Code Extension
Frederic Descamps
 
RivieraJUG - MySQL Indexes and Histograms
Frederic Descamps
 
RivieraJUG - MySQL 8.0 - What's new for developers.pdf
Frederic Descamps
 
MySQL User Group NL - MySQL 8
Frederic Descamps
 
State of the Dolphin - May 2022
Frederic Descamps
 
Percona Live 2022 - MySQL Shell for Visual Studio Code
Frederic Descamps
 
Percona Live 2022 - The Evolution of a MySQL Database System
Frederic Descamps
 
Percona Live 2022 - MySQL Architectures
Frederic Descamps
 
LinuxFest Northwest 2022 - The Evolution of a MySQL Database System
Frederic Descamps
 
Open Source 101 2022 - MySQL Indexes and Histograms
Frederic Descamps
 
Pi Day 2022 - from IoT to MySQL HeatWave Database Service
Frederic Descamps
 
Confoo 2022 - le cycle d'une instance MySQL
Frederic Descamps
 
FOSDEM 2022 MySQL Devroom: MySQL 8.0 - Logical Backups, Snapshots and Point-...
Frederic Descamps
 
Les nouveautés de MySQL 8.0
Frederic Descamps
 
Les nouveautés de MySQL 8.0
Frederic Descamps
 
State of The Dolphin - May 2021
Frederic Descamps
 
MySQL Shell for DBAs
Frederic Descamps
 
Deploying Magento on OCI with MDS
Frederic Descamps
 
MySQL Router REST API
Frederic Descamps
 

Recently uploaded (20)

PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PPTX
Simple and concise overview about Quantum computing..pptx
mughal641
 
PDF
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Doc9.....................................
SofiaCollazos
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Make GenAI investments go further with the Dell AI Factory
Principled Technologies
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
Simple and concise overview about Quantum computing..pptx
mughal641
 
Get More from Fiori Automation - What’s New, What Works, and What’s Next.pdf
Precisely
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Doc9.....................................
SofiaCollazos
 

MySQL Innovation from 5.7 to 8.0

  • 4. June 2017 MySQL Innovation Evolution is inevitable         Frédéric Descamps - MySQL Community Manager - Oracle 4 / 46
  • 5.   Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purpose only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied up in making purchasing decisions. The development, release and timing of any features or functionality described for Oracle´s product remains at the sole discretion of Oracle. Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 5 / 46
  • 6. about.me/lefred Who am I ? Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 6 / 46
  • 7. Frédéric Descamps @lefred MySQL Evangelist Hacking MySQL since 3.23 devops believer MySQL Community Manager since May 2016 living in Belgium 🇧🇪 Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 7 / 46
  • 8. MySQL 5.7 -> 8.0 Innovation Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 8 / 46
  • 9.       MySQL 5.7 (GA) 3x Better Performance Replication Enhancements Optimizer Cost Model JSON Support Improved Security SYS & Performance Schema GIS     MySQL InnoDB Cluster (GA) MySQL Group Replication MySQL Router MySQL Shell MySQL 8.0 (DMR) Data Dictionary Roles Unicode CTEs Window Functions Security Replication SysSchema GIS MySQL Innovation: 5.7 -> 8.0 Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 9 / 46
  • 10. 100%   virtually all organizations require their most critical systems to be highly available ! Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 10 / 46
  • 11. 100%   virtually all organizations require their most critical systems to be highly available ! Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 11 / 46
  • 12.     "HighAvailabilitybecomesacorefirst classfeatureofMySQL!" MySQL InnoDB Cluster   Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 12 / 46
  • 13. MySQL InnoDB Cluster: vision   "Asingleproduct-MySQL-withhighavailabilityandscalingfeaturesbakedin;providing anintegratedend-to-endsolutionthatiseasytouse." Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 13 / 46
  • 14. MySQL InnoDB Cluster: vision   "Asingleproduct-MySQL-withhighavailabilityandscalingfeaturesbakedin;providing anintegratedend-to-endsolutionthatiseasytouse." InnoDB cluster Ease-of-Use Extreme Scale-Out Out-of-Box Solution Built-in HA High Performance Everything Integrated Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 14 / 46
  • 15. One Product: MySQL All components created together Tested together Packaged together Easy to Use One client: MySQL Shell Easy packaging Integrated orchestration Homogenous servers Flexible and Moden SQL and NoSQL together Protocol Buffers Asynchronous API Developer friendly Support Read/Write Scale Out Shared clusters Federated systemof N replica sets supporting cross shard operations Each replica set manages a shard MySQL InnoDB Cluster: goals Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 15 / 46
  • 16. MySQL powers the Web ! Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 16 / 46
  • 17. MySQL powers the Web ! and many more... Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 17 / 46
  • 18. Web applications evolution Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 18 / 46
  • 19. Web applications evolution Everything is already Mobile first or moving to mobile very soon Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 19 / 46
  • 20. Web applications evolution Everything is already Mobile first or moving to mobile very soon     ...and it impacts our roadmap and newfeatures priority Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 20 / 46
  • 21. Evolution Driving Roadmap: 1995 vs 2017   There was no local. Noweverything is contextual to me as a user. The Internet was global, but full of silos. Nowwe are more connected than ever. In the past APIs were cumbersome, powered by SOAP and XML-RPC. There is nowan increased focus on privacy and protecting information. Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 21 / 46
  • 22. Evolution Driving Roadmap: 1995 vs 2017   There was no local. Noweverything is contextual to me as a user. The Internet was global, but full of silos. Nowwe are more connected than ever. In the past APIs were cumbersome, powered by SOAP and XML-RPC. There is nowan increased focus on privacy and protecting information. Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 22 / 46
  • 23. Evolution Driving Roadmap: MySQL 5.7 recap Switched to Boost.Geometry library R+Tree indexes for InnoDB Spatial Typed for InnoDB Optimized InnoDB Temporary Tables Optimized Packed Sort Buffer Switched InnoDB to DYNAMIC row format by default Native JSON Data Type 20+ JSON Functions Generated Columns for Functional Index JSON Comparator Short-hand JSON operators Secure by Default Password Expiration Password Policy Remove old password hash Encrypted Tablespaces, TDE (Enterprise) Firewall (Enterprise) Audit (Enterprise) Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 23 / 46
  • 24. Evolution Driving Roadmap: MySQL 8.0 Geography support Spatial Reference System (SRS) Support SQL/MM Information Schema views Standard compliant axis ordering in import/export functions Utf8mb4 as default Up to 16x Faster Performance Based on Unicode 9.0 New collations with Accents/Case sensitivity Japanese Collation Aggregate, Table and Pretty Print Functions Sort Performance Improvements Optimizer support for in-place update JSON Shell Roles Encrypted REDO Log and UNDO Space Finer grained system privileges Atomicity in Privilege statements Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 24 / 46
  • 25. Overview of improvements & new features What's new in MySQL 8.0 ? Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 25 / 46
  • 26. Fully Function, Properly Architected Roles Create and Drop Roles, Grant to Roles Grant Roles to Roles. Grant Roles to Users Limit Hosts that can use roles, Define Default Roles And even visualize Roles with SQL function ROLES_GRAHPHML() MySQL 8.0: Security Roles Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 26 / 46
  • 27. MySQL 8.0 vs MySQL 5.7 utf8mb4 UTF8MB4 is nowthe default charset set ! Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 27 / 46
  • 28. MySQL 8.0 vs MySQL 5.7 utf8mb3 No need to use the short-cut as in 5.7 Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 28 / 46
  • 29. MySQL 8.0: Boosts Developer Productivity   Improve support for the SQL standard Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 29 / 46
  • 30. MySQL 8.0: Boosts Developer Productivity New! CTEs and Recusrsive CTEs New! WindowFunctions New! SKIP LOCKED and NOWAIT UUIDs and Bitwise Functions Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 30 / 46
  • 31. WITH RECURSIVE qn AS ( SELECT 1 AS a UNION ALL SELECT 1+a FROM qn WHERE a<10 ) SELECT * FROM qn; MySQL 8.0: recursive CTE (example)   Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 31 / 46
  • 32. WITH RECURSIVE qn AS ( SELECT 1 AS a UNION ALL SELECT 1+a FROM qn WHERE a<10 ) SELECT * FROM qn; +------+ | a | +------+ | 1 | | 2 | | 3 | | 4 | | 5 | | 6 | | 7 | | 8 | | 9 | | 10 | +------+ 10 rows in set (0.01 sec) MySQL 8.0: recursive CTE (example)   Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 32 / 46
  • 33. SELECT seat_no FROM seats JOIN seat_rows USING (row_no) WHERE seat_no IN (3,4) AND seat_rows.row_no IN (12) AND booked = 'NO' FOR UPDATE OF seats SKIP LOCKED FOR SHARE OF seats_rows NOWAIT; MySQL 8.0: better handing of hot rows   Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 33 / 46
  • 34. SELECT seat_no FROM seats JOIN seat_rows USING (row_no) WHERE seat_no IN (3,4) AND seat_rows.row_no IN (12) AND booked = 'NO' FOR UPDATE OF seats SKIP LOCKED FOR SHARE OF seats_rows NOWAIT; SKIP LOCKED = non deterministically skip over locked rows NOWAIT = error immediately if a rowis already locked MySQL 8.0: better handing of hot rows   Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 34 / 46
  • 35. Do more with a fewer number of servers Take more advantages of newhardware: SSD multi-core processors Greater density per server Operator Friendliness Increase Reliability Improved Replication Throughput Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 35 / 46
  • 36. MySQL 8.0: Makes Scale Easier Better Observability: improving PFS (more instruments, better performance) Newoperations Higher Reliability: systemtables are nowin InnoDB and is used for Data Dictionary Parallel Replication Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 36 / 46
  • 37. MySQL 8.0: Performance Schema SQL error instrumentation Indexes Configuration Variables New! Data Locks New! Histograms Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 37 / 46
  • 38. PFS : Performance Comparison Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 38 / 46
  • 39. PFS : Performance Comparison Over 30x faster! Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 39 / 46
  • 40. MySQL 8.0: Invisible Indexes Indexes are "hidden" to the MySQL Optimizer not the same as "disabled indexes" contents are fully up to date and maintained by DML Two use cases: Soft Delete (RecycleBin) Staged Rollout Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 40 / 46
  • 41. MySQL 8.0: Persist Configuration Persist GLOBAL Server Variables SET PERSIST max_connections = 500; Examples Include: Of ine_mode Read_Only Requires no filesystemaccess New! Captures timestamp and change user Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 41 / 46
  • 42. MySQL 8.0: Parallel Replication MySQL 5.7 added support for logical clock parallel replication in early version (<5.7.3), the logical clock is group commit based in next versions, the logical clock is interval based MySQL 8.0 adds support for Write Set parallelismidentification Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 42 / 46
  • 43. MySQL 8.0: Replication Improvements Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 43 / 46
  • 44. MySQL 8.0: Replication Improvements Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 44 / 46
  • 45. Source code now documented with Doxygen Plugin Infrastructure! Expanded Query Hints Support Improved Scan Query Performance Improved BLOB Storage Improved Memcached Interface Cost Model Improvements Scalabibilty Improvements Atomicity in Privileges Parser Refactoring Improvements to Temporary Tables C++11 and Toolchain Improvements GTID_PURGED always settable Persistent Auto Increment Native InnoDB Data Dictionary Improved Information Schema performance New! SQL Grouping Function New! Optimizer Trace detailed sort statistics New! Descending Indexes New! Smaller Package Downloads New! JSON Aggregate, Pretty print functions New! JSON performance improvements New! Expended Query Hints New! Improved usability of cost constant configuration Group Replication New! Transaction Save Point support in Group Replication New! Improved Replication Applier Lag Statistics in Performance Schema New! Per Multi-source Channel Replication Filters New! Atomic DDL extended to the Binary Log New! Performance Improvements on the Replication Applier New! Parallel Replication Applier Policy New! Binary Log Management Enhancements New! Additional Metadata into the Binary Log All these features plus... Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 45 / 46
  • 46. Thank you ! Any Questions ? Copyright @ 2017 Oracle and/or its affiliates. All rights reserved. 46 / 46