48
Yoshiaki Yamasaki / 山﨑 由章 MySQL Principal Solution Engineer, Asia Pacific and Japan MySQL開発最新動向 Oracle MySQL Cloud Serviceの最新情報もご紹介 2019/11/09 オープンソースカンファレンス 2019 Fukuoka 1

Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

Yoshiaki Yamasaki / 山﨑 由章 MySQL Principal Solution Engineer, Asia Pacific and Japan

MySQL開発最新動向 Oracle MySQL Cloud Serviceの最新情報もご紹介

2019/11/09 オープンソースカンファレンス 2019 Fukuoka

1

Page 2: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

Safe harbor statement

2

Page 3: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

8.0.11 2018-04-19

(General Availability)

3

Page 4: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

4

MySQL 8.0: Fast Adoption

MySQL 8.0

26%

MySQL 5.7

47%

MySQL 5.6

24%

MySQL 5.5

3% MySQL 8.0

5%

MySQL 5.7

66%

MySQL 5.6

25%

MySQL 5.5

4%

April 2018 (8.0 GA) August 2019

Page 5: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

5

NoSQL JSON ドキュメント

スキーマレス JSON コレクション

MySQL リレーショナルテーブル

外部キー

X Dev API SQL

CRUD

MySQL

ドキュメント ストア

Page 6: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL Document Store: SQL + NoSQL = MySQL

6

Relational Tables

MySQL 8.0

{ } JSON Documents

X DevAPI SQL + CRUD API

Page 7: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

7

MySQL : アプリケーション開発者に柔軟性を

ハイブリッドAPI SQL 関数 データ型 { } ();

Page 8: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

8

MySQL : モバイルアプリとの親和性

•••

••

� � � �

Page 9: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

9

MySQL : データ分析処理の効率向上

Window 関数 共通テーブル式 (CTEs)

•••

WITH tickets_filtered AS ( SELECT tickets.*, seats.doc FROM tickets INNER JOIN seats ON tickets.seat_id = seats.id WHERE tickets.event_id = 3 ) SELECT * FROM tickets_filtered WHERE doc->"$.section" = 201¥G

SELECT name, dept_id, salary, RANK() OVER w AS `rank` FROM employee WINDOW w AS (PARTITION BY dept_id ORDER BY salary DESC);

Page 10: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

InnoDB Cluster

App Servers with MySQL Router

MySQL Group Replication

MySQL Shell Setup, Manage,

Orchestrate

10

Page 11: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL InnoDB Cluster

11

Page 12: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL InnoDB Cluster Update

group_replication_consistency 8.0.14

group_replication_communication_max_message_size 8.0.16

Clone Plugin 8.0.17

12

App Servers with MySQL Router

MySQL Group Replication

MySQL Shell Setup, Manage,

Orchestrate

Page 13: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL Shellを知っていますか?

13

Page 14: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL Shellの歩み

14

5.7.12

2015/4/8

5.7GA (5.7.9)

2016/4/11 2017/4/11

5.7.18

2017/4/12

1.0.9

MySQL Server

MySQL Shell

1.0.3 初版

2016/4/11 2019/7/2

2

8.0.17

2017/4/18

8.0GA (8.0.11)

2019/7/22

8.0.17

2017/4/18

8.0.11

Page 15: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL Shellの特徴

③ MySQLユーティリティ

・アップグレードチェッカー

・JSONインポート

・高速データロード

② 実行形式を選択可能

・バッチ

・インタラクティブ

④ 統合されたAPI

・ドキュメントストア操作

・InnoDBクラスタ管理

① 多言語をサポート

・JavaScript

・Python

・SQL

15

Page 16: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL 8.0: Upgrade Checker

16

Page 17: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

Oracle OpenWorld 2019 & Oracle Code One 2019での 主要なMySQL関連トピックス

17

Page 18: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

State of the Dolphin

Rich Mason, SVP & GM, MySQL GBU

18

Page 19: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL 8.0

Tomas Ulin, VP, MySQL Engineering

Page 20: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL 8.0 Highlights

MySQL Document Store

MySQL Security

MySQL InnoDB Cluster

MySQL Shell

20

Page 21: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL 8.0: One Giant Leap for SQL

“This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma. Among a few other standard SQL features, MySQL now supports window functions (over) and common table expressions (with). Without a doubt, these are the two most important post-SQL-92 features.”

https://modern-sql.com/blog/2018-04/mysql-8.0

21

Page 22: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL 8.0: Hash Join

• Typically faster than nested loop for large result sets

• In-memory if possible

• Spill to disk if necessary

• Used for inner equi-joins

– Extendable to outer, semi and anti joins

• Replaces BNL in query plans

• Hints to force use of hash join or nested loop

8.0.18

22

Page 23: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL 8.0: EXPLAIN ANALYZE

• Instruments and executes the query

– Estimated cost

– Actual execution statistics

• Time to return first row

• Time to return all rows

• Number of rows returned

• Number of loops

• Uses the new tree output format also available in EXPLAIN

8.0.18

23

Page 24: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL InnoDB Cluster

CLONE: Automatic Full Data Snapshot Provisioning

MySQL Group Replication

New! Automatic Node Provisioning with CLONE plugin

Joining Member

24

Page 25: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL NDB Cluster

• Built on MySQL 8.0

• Increased capacity to hundreds of terabyte, more data nodes

• Support for 3 and 4 replicas

• Auto-config with real-time resource pools

• Faster and robust disk data

• Improved SQL performance, parallel backups, larger rows

MySQL’s highest throughput real-time datastore

8.0.18 RC

25

Page 26: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

Oracle Cloud MySQL as a Service

Page 27: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

27

Oracle Cloud World Map

Page 28: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL as a Service

• Developed & Operated by the MySQL

Engineering Team

• MySQL 8.0 Enterprise Edition

• Oracle Cloud Infrastructure Gen 2

• 24x7 Oracle Premier Support

• Exclusive! MySQL Analytics Service

28

Page 29: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

RAPID: Rapid Analytics Processing In DRAM

Interconnect

RAPID Pushdown

DBMS

RAPID Pushdown

RAPID Pushdown

RAPID Pushdown

RAPID nodes

DBMS DBMS DBMS

• Push down as much of the query as possible • Extreme performance for analytic operators on a single node • Extreme (near linear) scalability across nodes

29

Page 30: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

商用版MySQLについて

30

Page 31: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL License

31

Page 32: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL Enterprise Edition

32

Page 33: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL Support Standard Edition / Enterprise Edition / MySQL Cluster Carrier Grade Edition

33

Page 34: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL Enterprise Security Enterprise Edition / MySQL Cluster Carrier Grade Edition

34

Page 35: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL Enterprise Security Enterprise Edition / MySQL Cluster Carrier Grade Edition

35

Page 36: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL Subscription

36

Page 37: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

37

Page 38: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

38

Page 39: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

安心してMySQLをご利用ください

39

Page 40: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

【MySQL お問い合わせ窓口】 0120-065556

【受付時間】 平日 9:00-12:00/13:00-17:00 (祝日及び年末年始休業日を除きます) [email protected]

40

Page 41: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

MySQL Innovation Dayについて

41

Page 42: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

11/7(木):東京、11/8(金):大阪で MySQL Innovation Dayを開催しました

42

Page 43: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

来日ゲストのご紹介

43

Page 44: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

44

Kenny Gryp MySQL Principal Product Manager

“I love Junmai Daiginjo!!”

Page 45: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

Frederic Descamps MySQL Community Manager

“<3 totoro”

45

Page 46: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

Mike Frank MySQL Product Management Director

“10 plus years with MySQL Secuity, NoSQL, Backup, Tools focused 4 successful startups”

46

Page 47: Please install fonts before using - OSPN...MySQL 8.0: One Giant Leap for SQL “This is a landmark release as MySQL eventually evolved beyond SQL-92 and the purely relational dogma

47

Nipun Agarwal Vice President, Research & Advanced Development, Oracle Labs

“Very Impressive Uptake of Oracle Cloud”