SlideShare a Scribd company logo
New Data Dictionary: 
An Internal Server API 
That Matters 
Alexander Nozdrin, Principle Software Developer 
Copyright Copyright © © 2014, 2014, Oracle Oracle and/and/or or its its affiliates. affiliates. All All rights rights reserved. reserved. 
|
Safe Harbor Statement 
The following is intended to outline our general product direction. It is intended for 
information purposes 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 upon 
in making purchasing decisions. The development, release, and timing of any features or 
functionality described for Oracle’s products remains at the sole discretion of Oracle. 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
2
MySQL Community Reception @ Oracle OpenWorld 
Mingle with the MySQL community and the MySQL team from Oracle for 
a fun and informative evening! 
• Time: September 30 (Tue) @ 7pm 
• Jillian’s at Metreon 
175 Fourth Street, San Francisco, CA 
At the corner of Howard and 4th st.; only 2-min walk from Moscone Center 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
Agenda 
What is a Data Dictionary? 
The MySQL Traditional Data Dictionary 
New Data Dictionary 
Benefits for users 
Q & A 
1 
2 
3 
4 
5
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
Data Dictionary 
What is it
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
Data Dictionary 
Definition 
• Metadata is information about user data 
– User table structure 
– Column definitions 
– Index definitions 
– Foreign key definitions 
– Stored program definitions 
... 
• Data Dictionary collects all metadata in RDBMS
CREATE PROCEDURE p1(v INT) 
SQL SECURITY INVOKER 
BEGIN 
... 
END 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
Data Dictionary 
Overview 
Data Dictionary 
Table Definitions SP Definitions 
View Definitions Plugins 
Time zones 
Privileges 
CREATE TABLE customers( 
id INT AUTO_INCREMENT 
... 
PRIMARY KEY (id), 
INDEX ... 
FOREIGN KEY ... 
)
SE InnoDB 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
MySQL Server 
Data Dictionary Definition 
8 
The ecosystem 
Query Executor 
Optimizer 
Performance 
Schema 
SQL 
statement 
Client 
Parser 
Result 
Information 
Schema 
Data 
Dictionary
The MySQL Traditional Data Dictionary 
MySQL 5.6 and earlier 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
The MySQL Traditional Data Dictionary 
• A mix of files and tables: 
– File based 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
• Tables: FRM 
• Triggers: TRN, TRG 
... 
– Table based 
• mysql.time_zone 
... 
• InnoDB has a separate data dictionary
The MySQL Traditional Data Dictionary 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
11 
Data Dictionary 
Files 
FRM TRG OPT 
System tables (mysql.) 
user time_zone proc 
InnoDB internal data dictionary 
Archive 
CSV 
InnoDB 
INFORMATION_SCHEMA 
File 
Scan 
Table 
Scan 
Intern. 
Access
The MySQL Traditional Data Dictionary 
• Poor INFORMATION_SCHEMA performance 
• Makes crash-safe / transactional DDL impossible 
• Inconsistencies between files and tables 
• Inconsistencies between DD in InnoDB and the server 
• File-system dependency (lower-case-table-names) 
• Makes replication of DDL statements difficult 
• Too difficult to extend 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
12 
Problems
New Data Dictionary 
A great leap forward 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
New Data Dictionary : Main Features 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
• Stored in InnoDB tables 
• Reliable & crash-safe 
• Single repository of metadata 
– for the MySQL server 
– for Storage Engines 
– for Plugins 
• Redundancy 
• Data Dictionary API 
• INFORMATION_SCHEMA SQL VIEWs 
– Queries can be optimized 
– Improved performance 
• Metadata versioning 
• Extendable 
– Simplify metadata upgrades 
– Designed with plugins in mind
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
New Data Dictionary 
15 
Transition 
Data Dictionary 
Files 
FRM TRG OPT 
System tables (mysql.) 
user time_zone proc 
InnoDB internal dictionary 
Archive 
CSV 
InnoDB 
INFORMATION_SCHEMA 
File 
Scan 
SQL DD Table 
VIEW 
Table 
Scan 
Intern. 
Access
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
New Data Dictionary 
16 
Overview 
InnoDB 
Data Dictionary 
DD Table User Table 
INFORMATION 
SCHEMA 
Views 
Archive 
User Table 
CSV 
User Table
Plugin Plugin Plugin 
Tablespace User Table Storage 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
New Data Dictionary 
InnoDB 
17 
Architecture 
Query Executor 
Parser Optimizer 
Data 
Dictionary 
Tablespace 
Data Dictionary Internal API 
Data Dictionary External API 
Plugin Plugin 
Archive 
Engine 
Storage 
Engine
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
New Data Dictionary 
• WL#6379: Schema definitions for new DD 
• InnoDB Data Dictionary Tablespace 
• Designed with INFORMATION_SCHEMA in mind 
• Ability to store SE-specific data 
• Use PK / FK to ensure consistency 
18 
Data Dictionary tables
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
New Data Dictionary API 
• The only way to access Data Dictionary 
– For the server core 
– For Storage Engines 
– For plugins 
• Hard to misuse 
• Internal API (non-stable) and external API (stable) 
• Provide a way to handle SE specific data 
19 
Design goals
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
New Data Dictionary 
SDI : Serialized Dictionary Information 
20 
Redundancy 
InnoDB 
Single User TS 
User Table 
SDI 
General TS 
User Table 
SDI 
System TS 
User Table 
SDI 
Data Dictionary 
Privileges 
User Table 
Definition 
Stored 
Program
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
New Data Dictionary 
21 
FRM shipping for MySQL Cluster? 
SELECT ... FROM t1 
FSRDMI
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
• No FRM files 
• New INFORMATION_SCHEMA 
• Migrated to InnoDB: 
– time zone tables 
– help tables 
–mysql.plugins 
–mysql.servers 
• Draft of Data Dictionary API 
• http://labs.mysql.com 
– Do NOT use it in production 
– Install on a spare server 
• MTR can be run 
22 
New Data Dictionary : Labs Release
New Data Dictionary 
Why does it matter for YOU? 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
INFORMATION_SCHEMA performance improvements 
Get per table size 
Blog post by Shlomi Noach: http://tinyurl.com/y8cnj7o 
SELECT TABLE_SCHEMA, TABLE_NAME, ENGINE, 
SUM(DATA_LENGTH+INDEX_LENGTH) AS size, 
SUM(INDEX_LENGTH) AS index_size 
FROM INFORMATION_SCHEMA.TABLES 
WHERE TABLE_SCHEMA NOT IN ('mysql', 'INFORMATION_SCHEMA') AND ENGINE IS NOT NULL 
GROUP BY TABLE_SCHEMA, TABLE_NAME; 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
24 
Version Time 
5.7.5-m15 0.38 sec 
Labs Release 0.08 sec
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
Case: server crash 
• There are some data files 
• No / outdated backup 
• FRM files lost 
• How to use those data files? 
25 
The problem
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
Traditional Data Dictionary 
• “Move FRM files around” 
• CREATE TABLE t1 (...) 
• ALTER TABLE t1 
DISCARD TABLESPACE 
• ALTER TABLE t1 
IMPORT TABLESPACE ... 
• Easy to make mistakes 
New Data Dictionary 
• Self-descriptive tablespaces (SDI) 
• Dedicated IMPORT statement 
• Goal: error-proof procedure 
26 
Case: server crash
For Plugin Developers 
• A way to access Data Dictionary 
• Persistent Storage for plugins 
– Store/restore custom data 
• Plugins can extend INFORMATION_SCHEMA & PERFORMANCE_SCHEMA 
– Add new tables 
– Add new columns to existing tables 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
27
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
Data Dictionary 
Summary
Data Dictionary : Takeaways 
• Fundamental component in RDBMS 
• Critical for performance 
• Critical for reliability 
• Critical for scalability 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
29
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
The MySQL Traditional 
Data Dictionary 
• Mix of files and tables 
• Server DD and InnoDB DD 
• Inefficient INFORMATION_SCHEMA 
• Difficult to extend 
New Data Dictionary 
• Crash-safe InnoDB tables 
• Single repository 
• INFORMATION_SCHEMA as VIEWs 
• Designed to be extendable 
• Aims for backward compatibility 
• Huge reengineering 
Data Dictionary : Takeaways
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
Questions?
MySQL Community Reception @ Oracle OpenWorld 
Mingle with the MySQL community and the MySQL team from Oracle for 
a fun and informative evening! 
• Time: September 30 (Tue) @ 7pm 
• Jillian’s at Metreon 
175 Fourth Street, San Francisco, CA 
At the corner of Howard and 4th st.; only 2-min walk from Moscone Center 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Oracle University MySQL Training Services 
Prepare Your Organization to Enable Reliable and High-Performance Web-Based Database Applications 
Top Courses for Administrators and Developers 
Top Certifications 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
“Training and team skill have the most significant impact 
on overall performance of technology and success of 
technology projects.” - IDC, 2013 
Premier Support customers eligible to 
save 20% on learning credits. 
Benefits 
 Expert-led training to support your MySQL learning needs 
 Flexibility to train in the classroom or online 
 Hands-on experience to gain real world experience 
 Key skills needed for database administrators and developers 
• MySQL for Beginners 
MySQL for Database Administrators 
MySQL Performance Tuning 
MySQL Cluster – NEW - Register Your Interest! 
MySQL and PHP - Developing Dynamic Web Applications 
MySQL for Developers 
MySQL Developer Techniques 
MySQL 5.6 Database Administrator 
MySQL 5.6 Developer 
To find out more about available MySQL Training & Certification 
offerings, go to: education.oracle.com/mysql 
RECENTLY RELEASED 
ALL NEW! MySQL Cluster Training 
To Register your interest to influence the 
schedule on this newly released course – go to 
education.oracle.com/mysql and click on the 
MySQL Cluster Course
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 
Thank You! 
Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

More Related Content

What's hot

Představení produktové řady Oracle SPARC S7
Představení produktové řady Oracle SPARC S7Představení produktové řady Oracle SPARC S7
Představení produktové řady Oracle SPARC S7
MarketingArrowECS_CZ
 
PDoolan Oracle Overview PPT Version
PDoolan Oracle Overview PPT VersionPDoolan Oracle Overview PPT Version
PDoolan Oracle Overview PPT Version
Peter Doolan
 
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
Dave Segleau
 
Application development with Oracle NoSQL Database 3.0
Application development with Oracle NoSQL Database 3.0Application development with Oracle NoSQL Database 3.0
Application development with Oracle NoSQL Database 3.0
Anuj Sahni
 
MySQL Enterprise Monitor
MySQL Enterprise MonitorMySQL Enterprise Monitor
MySQL Enterprise Monitor
Ted Wennmark
 
Developer day v2
Developer day v2Developer day v2
Developer day v2
AiougVizagChapter
 
Oracle SPARC T7 a M7 servery
Oracle SPARC T7 a M7 serveryOracle SPARC T7 a M7 servery
Oracle SPARC T7 a M7 servery
MarketingArrowECS_CZ
 
REST Enabling Your Oracle Database
REST Enabling Your Oracle DatabaseREST Enabling Your Oracle Database
REST Enabling Your Oracle Database
Jeff Smith
 
Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster
Fran Navarro
 
MySQL 5.7 Replication News
MySQL 5.7 Replication News MySQL 5.7 Replication News
MySQL 5.7 Replication News
Ted Wennmark
 
Security a SPARC M7 CPU
Security a SPARC M7 CPUSecurity a SPARC M7 CPU
Security a SPARC M7 CPU
MarketingArrowECS_CZ
 
Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...
Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...
Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...DataWorks Summit
 
veshaal-singh-ebs-oracle cloud(iaas+paas)
veshaal-singh-ebs-oracle cloud(iaas+paas)veshaal-singh-ebs-oracle cloud(iaas+paas)
veshaal-singh-ebs-oracle cloud(iaas+paas)
aioughydchapter
 
Konsolidace Oracle DB na systémech s procesory M7
Konsolidace Oracle DB na systémech s procesory M7Konsolidace Oracle DB na systémech s procesory M7
Konsolidace Oracle DB na systémech s procesory M7
MarketingArrowECS_CZ
 
Turning Relational Database Tables into Hadoop Datasources by Kuassi Mensah
Turning Relational Database Tables into Hadoop Datasources by Kuassi MensahTurning Relational Database Tables into Hadoop Datasources by Kuassi Mensah
Turning Relational Database Tables into Hadoop Datasources by Kuassi Mensah
Data Con LA
 
Oracle REST Data Services Best Practices/ Overview
Oracle REST Data Services Best Practices/ OverviewOracle REST Data Services Best Practices/ Overview
Oracle REST Data Services Best Practices/ Overview
Kris Rice
 
Meetup Oracle Database MAD_BCN: 1.1 Servicios de Oracle Database en la nube
 Meetup Oracle Database MAD_BCN: 1.1 Servicios de Oracle Database en la nube Meetup Oracle Database MAD_BCN: 1.1 Servicios de Oracle Database en la nube
Meetup Oracle Database MAD_BCN: 1.1 Servicios de Oracle Database en la nube
avanttic Consultoría Tecnológica
 
Oracle super cluster for oracle e business suite
Oracle super cluster for oracle e business suiteOracle super cluster for oracle e business suite
Oracle super cluster for oracle e business suite
OTN Systems Hub
 
Přehled portfolia Oracle Database Appliance a praktických případů v regionu EMEA
Přehled portfolia Oracle Database Appliance a praktických případů v regionu EMEAPřehled portfolia Oracle Database Appliance a praktických případů v regionu EMEA
Přehled portfolia Oracle Database Appliance a praktických případů v regionu EMEA
MarketingArrowECS_CZ
 
Oracle Cloud DBaaS
Oracle Cloud DBaaSOracle Cloud DBaaS
Oracle Cloud DBaaSArush Jain
 

What's hot (20)

Představení produktové řady Oracle SPARC S7
Představení produktové řady Oracle SPARC S7Představení produktové řady Oracle SPARC S7
Představení produktové řady Oracle SPARC S7
 
PDoolan Oracle Overview PPT Version
PDoolan Oracle Overview PPT VersionPDoolan Oracle Overview PPT Version
PDoolan Oracle Overview PPT Version
 
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
Oracle NoSQL Database -- Big Data Bellevue Meetup - 02-18-15
 
Application development with Oracle NoSQL Database 3.0
Application development with Oracle NoSQL Database 3.0Application development with Oracle NoSQL Database 3.0
Application development with Oracle NoSQL Database 3.0
 
MySQL Enterprise Monitor
MySQL Enterprise MonitorMySQL Enterprise Monitor
MySQL Enterprise Monitor
 
Developer day v2
Developer day v2Developer day v2
Developer day v2
 
Oracle SPARC T7 a M7 servery
Oracle SPARC T7 a M7 serveryOracle SPARC T7 a M7 servery
Oracle SPARC T7 a M7 servery
 
REST Enabling Your Oracle Database
REST Enabling Your Oracle DatabaseREST Enabling Your Oracle Database
REST Enabling Your Oracle Database
 
Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster Simplify IT: Oracle SuperCluster
Simplify IT: Oracle SuperCluster
 
MySQL 5.7 Replication News
MySQL 5.7 Replication News MySQL 5.7 Replication News
MySQL 5.7 Replication News
 
Security a SPARC M7 CPU
Security a SPARC M7 CPUSecurity a SPARC M7 CPU
Security a SPARC M7 CPU
 
Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...
Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...
Big Data Management System: Smart SQL Processing Across Hadoop and your Data ...
 
veshaal-singh-ebs-oracle cloud(iaas+paas)
veshaal-singh-ebs-oracle cloud(iaas+paas)veshaal-singh-ebs-oracle cloud(iaas+paas)
veshaal-singh-ebs-oracle cloud(iaas+paas)
 
Konsolidace Oracle DB na systémech s procesory M7
Konsolidace Oracle DB na systémech s procesory M7Konsolidace Oracle DB na systémech s procesory M7
Konsolidace Oracle DB na systémech s procesory M7
 
Turning Relational Database Tables into Hadoop Datasources by Kuassi Mensah
Turning Relational Database Tables into Hadoop Datasources by Kuassi MensahTurning Relational Database Tables into Hadoop Datasources by Kuassi Mensah
Turning Relational Database Tables into Hadoop Datasources by Kuassi Mensah
 
Oracle REST Data Services Best Practices/ Overview
Oracle REST Data Services Best Practices/ OverviewOracle REST Data Services Best Practices/ Overview
Oracle REST Data Services Best Practices/ Overview
 
Meetup Oracle Database MAD_BCN: 1.1 Servicios de Oracle Database en la nube
 Meetup Oracle Database MAD_BCN: 1.1 Servicios de Oracle Database en la nube Meetup Oracle Database MAD_BCN: 1.1 Servicios de Oracle Database en la nube
Meetup Oracle Database MAD_BCN: 1.1 Servicios de Oracle Database en la nube
 
Oracle super cluster for oracle e business suite
Oracle super cluster for oracle e business suiteOracle super cluster for oracle e business suite
Oracle super cluster for oracle e business suite
 
Přehled portfolia Oracle Database Appliance a praktických případů v regionu EMEA
Přehled portfolia Oracle Database Appliance a praktických případů v regionu EMEAPřehled portfolia Oracle Database Appliance a praktických případů v regionu EMEA
Přehled portfolia Oracle Database Appliance a praktických případů v regionu EMEA
 
Oracle Cloud DBaaS
Oracle Cloud DBaaSOracle Cloud DBaaS
Oracle Cloud DBaaS
 

Viewers also liked

Building a Cloud API Server using Play(SCALA) & Riak
Building a Cloud API Server using  Play(SCALA) & Riak Building a Cloud API Server using  Play(SCALA) & Riak
Building a Cloud API Server using Play(SCALA) & Riak
RajthilakMCA
 
WSO2 - Identity Server & API Manager - TeamOpenBravo - IF4050
WSO2 - Identity Server & API Manager - TeamOpenBravo - IF4050WSO2 - Identity Server & API Manager - TeamOpenBravo - IF4050
WSO2 - Identity Server & API Manager - TeamOpenBravo - IF4050
Mochammad Dikra Prasetya
 
Leveraging federation capabilities of identity server for api gateway
Leveraging federation capabilities  of identity server for api gatewayLeveraging federation capabilities  of identity server for api gateway
Leveraging federation capabilities of identity server for api gateway
Pushpalanka Jayawardhana
 
What is a DATA DICTIONARY?
What is a DATA DICTIONARY?What is a DATA DICTIONARY?
What is a DATA DICTIONARY?
Leela Vasundara D K
 
WSO2Con USA 2015: End-to-end Microservice Architecture with WSO2 Identity Ser...
WSO2Con USA 2015: End-to-end Microservice Architecture with WSO2 Identity Ser...WSO2Con USA 2015: End-to-end Microservice Architecture with WSO2 Identity Ser...
WSO2Con USA 2015: End-to-end Microservice Architecture with WSO2 Identity Ser...
WSO2
 
Systems Analyst and Design - Data Dictionary
Systems Analyst and Design -  Data DictionarySystems Analyst and Design -  Data Dictionary
Systems Analyst and Design - Data Dictionary
Kimberly Coquilla
 
Internet Of Things in Automobile Industry
Internet Of Things in Automobile IndustryInternet Of Things in Automobile Industry
Internet Of Things in Automobile Industry
IEI GSC
 
Data dictionary
Data dictionaryData dictionary
Data dictionary
Surbhi Panhalkar
 

Viewers also liked (8)

Building a Cloud API Server using Play(SCALA) & Riak
Building a Cloud API Server using  Play(SCALA) & Riak Building a Cloud API Server using  Play(SCALA) & Riak
Building a Cloud API Server using Play(SCALA) & Riak
 
WSO2 - Identity Server & API Manager - TeamOpenBravo - IF4050
WSO2 - Identity Server & API Manager - TeamOpenBravo - IF4050WSO2 - Identity Server & API Manager - TeamOpenBravo - IF4050
WSO2 - Identity Server & API Manager - TeamOpenBravo - IF4050
 
Leveraging federation capabilities of identity server for api gateway
Leveraging federation capabilities  of identity server for api gatewayLeveraging federation capabilities  of identity server for api gateway
Leveraging federation capabilities of identity server for api gateway
 
What is a DATA DICTIONARY?
What is a DATA DICTIONARY?What is a DATA DICTIONARY?
What is a DATA DICTIONARY?
 
WSO2Con USA 2015: End-to-end Microservice Architecture with WSO2 Identity Ser...
WSO2Con USA 2015: End-to-end Microservice Architecture with WSO2 Identity Ser...WSO2Con USA 2015: End-to-end Microservice Architecture with WSO2 Identity Ser...
WSO2Con USA 2015: End-to-end Microservice Architecture with WSO2 Identity Ser...
 
Systems Analyst and Design - Data Dictionary
Systems Analyst and Design -  Data DictionarySystems Analyst and Design -  Data Dictionary
Systems Analyst and Design - Data Dictionary
 
Internet Of Things in Automobile Industry
Internet Of Things in Automobile IndustryInternet Of Things in Automobile Industry
Internet Of Things in Automobile Industry
 
Data dictionary
Data dictionaryData dictionary
Data dictionary
 

Similar to New data dictionary an internal server api that matters

NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQLNoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
Andrew Morgan
 
Oracle Database Cloud Service
Oracle Database Cloud ServiceOracle Database Cloud Service
Oracle Database Cloud Service
Jean-Philippe PINTE
 
Oracle database in cloud, dr in cloud and overview of oracle database 18c
Oracle database in cloud, dr in cloud and overview of oracle database 18cOracle database in cloud, dr in cloud and overview of oracle database 18c
Oracle database in cloud, dr in cloud and overview of oracle database 18c
AiougVizagChapter
 
OUG Scotland 2014 - NoSQL and MySQL - The best of both worlds
OUG Scotland 2014 - NoSQL and MySQL - The best of both worldsOUG Scotland 2014 - NoSQL and MySQL - The best of both worlds
OUG Scotland 2014 - NoSQL and MySQL - The best of both worlds
Andrew Morgan
 
Tame Big Data with Oracle Data Integration
Tame Big Data with Oracle Data IntegrationTame Big Data with Oracle Data Integration
Tame Big Data with Oracle Data Integration
Michael Rainey
 
20140722 Taiwan MySQL User Group Meeting Tech Updates
20140722 Taiwan MySQL User Group Meeting Tech Updates20140722 Taiwan MySQL User Group Meeting Tech Updates
20140722 Taiwan MySQL User Group Meeting Tech Updates
Ryusuke Kajiyama
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
Mario Beck
 
MySQL Enterprise Portfolio
MySQL Enterprise PortfolioMySQL Enterprise Portfolio
MySQL Enterprise Portfolio
Abel Flórez
 
Introduction to MySQL
Introduction to MySQLIntroduction to MySQL
Introduction to MySQL
Ted Wennmark
 
Using MySQL Enterprise Monitor for Continuous Performance Improvement
Using MySQL Enterprise Monitor for Continuous Performance ImprovementUsing MySQL Enterprise Monitor for Continuous Performance Improvement
Using MySQL Enterprise Monitor for Continuous Performance Improvement
Mark Matthews
 
Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...
Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...
Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...
jdijcks
 
MySQL London Tech Tour March 2015 - Embedded Database of Choice
MySQL London Tech Tour March 2015 - Embedded Database of ChoiceMySQL London Tech Tour March 2015 - Embedded Database of Choice
MySQL London Tech Tour March 2015 - Embedded Database of Choice
Mark Swarbrick
 
Novinky v Oracle Database 18c
Novinky v Oracle Database 18cNovinky v Oracle Database 18c
Novinky v Oracle Database 18c
MarketingArrowECS_CZ
 
Data dictionary pl17
Data dictionary pl17Data dictionary pl17
Data dictionary pl17
Ståle Deraas
 
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014Manuel Contreras
 
20150110 my sql-performanceschema
20150110 my sql-performanceschema20150110 my sql-performanceschema
20150110 my sql-performanceschema
Ivan Ma
 
MySQL Fabric - High Availability & Automated Sharding for MySQL
MySQL Fabric - High Availability & Automated Sharding for MySQLMySQL Fabric - High Availability & Automated Sharding for MySQL
MySQL Fabric - High Availability & Automated Sharding for MySQL
Ted Wennmark
 
MySQL & Oracle Linux Keynote at Open Source India 2014
MySQL & Oracle Linux Keynote at Open Source India 2014MySQL & Oracle Linux Keynote at Open Source India 2014
MySQL & Oracle Linux Keynote at Open Source India 2014
Sanjay Manwani
 
Unlocking Big Data Insights with MySQL
Unlocking Big Data Insights with MySQLUnlocking Big Data Insights with MySQL
Unlocking Big Data Insights with MySQL
Matt Lord
 
Oracle Office Hours - Exposing REST services with APEX and ORDS
Oracle Office Hours - Exposing REST services with APEX and ORDSOracle Office Hours - Exposing REST services with APEX and ORDS
Oracle Office Hours - Exposing REST services with APEX and ORDS
Doug Gault
 

Similar to New data dictionary an internal server api that matters (20)

NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQLNoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
NoSQL and SQL - Why Choose? Enjoy the best of both worlds with MySQL
 
Oracle Database Cloud Service
Oracle Database Cloud ServiceOracle Database Cloud Service
Oracle Database Cloud Service
 
Oracle database in cloud, dr in cloud and overview of oracle database 18c
Oracle database in cloud, dr in cloud and overview of oracle database 18cOracle database in cloud, dr in cloud and overview of oracle database 18c
Oracle database in cloud, dr in cloud and overview of oracle database 18c
 
OUG Scotland 2014 - NoSQL and MySQL - The best of both worlds
OUG Scotland 2014 - NoSQL and MySQL - The best of both worldsOUG Scotland 2014 - NoSQL and MySQL - The best of both worlds
OUG Scotland 2014 - NoSQL and MySQL - The best of both worlds
 
Tame Big Data with Oracle Data Integration
Tame Big Data with Oracle Data IntegrationTame Big Data with Oracle Data Integration
Tame Big Data with Oracle Data Integration
 
20140722 Taiwan MySQL User Group Meeting Tech Updates
20140722 Taiwan MySQL User Group Meeting Tech Updates20140722 Taiwan MySQL User Group Meeting Tech Updates
20140722 Taiwan MySQL User Group Meeting Tech Updates
 
MySQL for Oracle DBAs
MySQL for Oracle DBAsMySQL for Oracle DBAs
MySQL for Oracle DBAs
 
MySQL Enterprise Portfolio
MySQL Enterprise PortfolioMySQL Enterprise Portfolio
MySQL Enterprise Portfolio
 
Introduction to MySQL
Introduction to MySQLIntroduction to MySQL
Introduction to MySQL
 
Using MySQL Enterprise Monitor for Continuous Performance Improvement
Using MySQL Enterprise Monitor for Continuous Performance ImprovementUsing MySQL Enterprise Monitor for Continuous Performance Improvement
Using MySQL Enterprise Monitor for Continuous Performance Improvement
 
Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...
Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...
Oracle Openworld Presentation with Paul Kent (SAS) on Big Data Appliance and ...
 
MySQL London Tech Tour March 2015 - Embedded Database of Choice
MySQL London Tech Tour March 2015 - Embedded Database of ChoiceMySQL London Tech Tour March 2015 - Embedded Database of Choice
MySQL London Tech Tour March 2015 - Embedded Database of Choice
 
Novinky v Oracle Database 18c
Novinky v Oracle Database 18cNovinky v Oracle Database 18c
Novinky v Oracle Database 18c
 
Data dictionary pl17
Data dictionary pl17Data dictionary pl17
Data dictionary pl17
 
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
Oracle MySQL Tutorial -- MySQL NoSQL Cloud Buenos Aires Nov, 13 2014
 
20150110 my sql-performanceschema
20150110 my sql-performanceschema20150110 my sql-performanceschema
20150110 my sql-performanceschema
 
MySQL Fabric - High Availability & Automated Sharding for MySQL
MySQL Fabric - High Availability & Automated Sharding for MySQLMySQL Fabric - High Availability & Automated Sharding for MySQL
MySQL Fabric - High Availability & Automated Sharding for MySQL
 
MySQL & Oracle Linux Keynote at Open Source India 2014
MySQL & Oracle Linux Keynote at Open Source India 2014MySQL & Oracle Linux Keynote at Open Source India 2014
MySQL & Oracle Linux Keynote at Open Source India 2014
 
Unlocking Big Data Insights with MySQL
Unlocking Big Data Insights with MySQLUnlocking Big Data Insights with MySQL
Unlocking Big Data Insights with MySQL
 
Oracle Office Hours - Exposing REST services with APEX and ORDS
Oracle Office Hours - Exposing REST services with APEX and ORDSOracle Office Hours - Exposing REST services with APEX and ORDS
Oracle Office Hours - Exposing REST services with APEX and ORDS
 

Recently uploaded

Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
timtebeek1
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
abdulrafaychaudhry
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
 
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptxText-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
ShamsuddeenMuhammadA
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
Alina Yurenko
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
Boni García
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Globus
 
AI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website CreatorAI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website Creator
Google
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
Drona Infotech
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
lorraineandreiamcidl
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Mind IT Systems
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
Deuglo Infosystem Pvt Ltd
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
Max Andersen
 
Game Development with Unity3D (Game Development lecture 3)
Game Development  with Unity3D (Game Development lecture 3)Game Development  with Unity3D (Game Development lecture 3)
Game Development with Unity3D (Game Development lecture 3)
abdulrafaychaudhry
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
Aftab Hussain
 

Recently uploaded (20)

Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
 
Lecture 1 Introduction to games development
Lecture 1 Introduction to games developmentLecture 1 Introduction to games development
Lecture 1 Introduction to games development
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
 
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptxText-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
Text-Summarization-of-Breaking-News-Using-Fine-tuning-BART-Model.pptx
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
 
APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)APIs for Browser Automation (MoT Meetup 2024)
APIs for Browser Automation (MoT Meetup 2024)
 
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
Climate Science Flows: Enabling Petabyte-Scale Climate Analysis with the Eart...
 
AI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website CreatorAI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website Creator
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024Globus Connect Server Deep Dive - GlobusWorld 2024
Globus Connect Server Deep Dive - GlobusWorld 2024
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
 
Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024Globus Compute wth IRI Workflows - GlobusWorld 2024
Globus Compute wth IRI Workflows - GlobusWorld 2024
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
Quarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden ExtensionsQuarkus Hidden and Forbidden Extensions
Quarkus Hidden and Forbidden Extensions
 
Game Development with Unity3D (Game Development lecture 3)
Game Development  with Unity3D (Game Development lecture 3)Game Development  with Unity3D (Game Development lecture 3)
Game Development with Unity3D (Game Development lecture 3)
 
Graspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code AnalysisGraspan: A Big Data System for Big Code Analysis
Graspan: A Big Data System for Big Code Analysis
 

New data dictionary an internal server api that matters

  • 1. New Data Dictionary: An Internal Server API That Matters Alexander Nozdrin, Principle Software Developer Copyright Copyright © © 2014, 2014, Oracle Oracle and/and/or or its its affiliates. affiliates. All All rights rights reserved. reserved. |
  • 2. Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes 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 upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 2
  • 3. MySQL Community Reception @ Oracle OpenWorld Mingle with the MySQL community and the MySQL team from Oracle for a fun and informative evening! • Time: September 30 (Tue) @ 7pm • Jillian’s at Metreon 175 Fourth Street, San Francisco, CA At the corner of Howard and 4th st.; only 2-min walk from Moscone Center Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
  • 4. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Agenda What is a Data Dictionary? The MySQL Traditional Data Dictionary New Data Dictionary Benefits for users Q & A 1 2 3 4 5
  • 5. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Data Dictionary What is it
  • 6. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Data Dictionary Definition • Metadata is information about user data – User table structure – Column definitions – Index definitions – Foreign key definitions – Stored program definitions ... • Data Dictionary collects all metadata in RDBMS
  • 7. CREATE PROCEDURE p1(v INT) SQL SECURITY INVOKER BEGIN ... END Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Data Dictionary Overview Data Dictionary Table Definitions SP Definitions View Definitions Plugins Time zones Privileges CREATE TABLE customers( id INT AUTO_INCREMENT ... PRIMARY KEY (id), INDEX ... FOREIGN KEY ... )
  • 8. SE InnoDB Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | MySQL Server Data Dictionary Definition 8 The ecosystem Query Executor Optimizer Performance Schema SQL statement Client Parser Result Information Schema Data Dictionary
  • 9. The MySQL Traditional Data Dictionary MySQL 5.6 and earlier Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
  • 10. The MySQL Traditional Data Dictionary • A mix of files and tables: – File based Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | • Tables: FRM • Triggers: TRN, TRG ... – Table based • mysql.time_zone ... • InnoDB has a separate data dictionary
  • 11. The MySQL Traditional Data Dictionary Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 11 Data Dictionary Files FRM TRG OPT System tables (mysql.) user time_zone proc InnoDB internal data dictionary Archive CSV InnoDB INFORMATION_SCHEMA File Scan Table Scan Intern. Access
  • 12. The MySQL Traditional Data Dictionary • Poor INFORMATION_SCHEMA performance • Makes crash-safe / transactional DDL impossible • Inconsistencies between files and tables • Inconsistencies between DD in InnoDB and the server • File-system dependency (lower-case-table-names) • Makes replication of DDL statements difficult • Too difficult to extend Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 12 Problems
  • 13. New Data Dictionary A great leap forward Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
  • 14. New Data Dictionary : Main Features Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | • Stored in InnoDB tables • Reliable & crash-safe • Single repository of metadata – for the MySQL server – for Storage Engines – for Plugins • Redundancy • Data Dictionary API • INFORMATION_SCHEMA SQL VIEWs – Queries can be optimized – Improved performance • Metadata versioning • Extendable – Simplify metadata upgrades – Designed with plugins in mind
  • 15. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | New Data Dictionary 15 Transition Data Dictionary Files FRM TRG OPT System tables (mysql.) user time_zone proc InnoDB internal dictionary Archive CSV InnoDB INFORMATION_SCHEMA File Scan SQL DD Table VIEW Table Scan Intern. Access
  • 16. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | New Data Dictionary 16 Overview InnoDB Data Dictionary DD Table User Table INFORMATION SCHEMA Views Archive User Table CSV User Table
  • 17. Plugin Plugin Plugin Tablespace User Table Storage Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | New Data Dictionary InnoDB 17 Architecture Query Executor Parser Optimizer Data Dictionary Tablespace Data Dictionary Internal API Data Dictionary External API Plugin Plugin Archive Engine Storage Engine
  • 18. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | New Data Dictionary • WL#6379: Schema definitions for new DD • InnoDB Data Dictionary Tablespace • Designed with INFORMATION_SCHEMA in mind • Ability to store SE-specific data • Use PK / FK to ensure consistency 18 Data Dictionary tables
  • 19. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | New Data Dictionary API • The only way to access Data Dictionary – For the server core – For Storage Engines – For plugins • Hard to misuse • Internal API (non-stable) and external API (stable) • Provide a way to handle SE specific data 19 Design goals
  • 20. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | New Data Dictionary SDI : Serialized Dictionary Information 20 Redundancy InnoDB Single User TS User Table SDI General TS User Table SDI System TS User Table SDI Data Dictionary Privileges User Table Definition Stored Program
  • 21. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | New Data Dictionary 21 FRM shipping for MySQL Cluster? SELECT ... FROM t1 FSRDMI
  • 22. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | • No FRM files • New INFORMATION_SCHEMA • Migrated to InnoDB: – time zone tables – help tables –mysql.plugins –mysql.servers • Draft of Data Dictionary API • http://labs.mysql.com – Do NOT use it in production – Install on a spare server • MTR can be run 22 New Data Dictionary : Labs Release
  • 23. New Data Dictionary Why does it matter for YOU? Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
  • 24. INFORMATION_SCHEMA performance improvements Get per table size Blog post by Shlomi Noach: http://tinyurl.com/y8cnj7o SELECT TABLE_SCHEMA, TABLE_NAME, ENGINE, SUM(DATA_LENGTH+INDEX_LENGTH) AS size, SUM(INDEX_LENGTH) AS index_size FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA NOT IN ('mysql', 'INFORMATION_SCHEMA') AND ENGINE IS NOT NULL GROUP BY TABLE_SCHEMA, TABLE_NAME; Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 24 Version Time 5.7.5-m15 0.38 sec Labs Release 0.08 sec
  • 25. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Case: server crash • There are some data files • No / outdated backup • FRM files lost • How to use those data files? 25 The problem
  • 26. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Traditional Data Dictionary • “Move FRM files around” • CREATE TABLE t1 (...) • ALTER TABLE t1 DISCARD TABLESPACE • ALTER TABLE t1 IMPORT TABLESPACE ... • Easy to make mistakes New Data Dictionary • Self-descriptive tablespaces (SDI) • Dedicated IMPORT statement • Goal: error-proof procedure 26 Case: server crash
  • 27. For Plugin Developers • A way to access Data Dictionary • Persistent Storage for plugins – Store/restore custom data • Plugins can extend INFORMATION_SCHEMA & PERFORMANCE_SCHEMA – Add new tables – Add new columns to existing tables Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 27
  • 28. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Data Dictionary Summary
  • 29. Data Dictionary : Takeaways • Fundamental component in RDBMS • Critical for performance • Critical for reliability • Critical for scalability Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | 29
  • 30. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | The MySQL Traditional Data Dictionary • Mix of files and tables • Server DD and InnoDB DD • Inefficient INFORMATION_SCHEMA • Difficult to extend New Data Dictionary • Crash-safe InnoDB tables • Single repository • INFORMATION_SCHEMA as VIEWs • Designed to be extendable • Aims for backward compatibility • Huge reengineering Data Dictionary : Takeaways
  • 31. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Questions?
  • 32. MySQL Community Reception @ Oracle OpenWorld Mingle with the MySQL community and the MySQL team from Oracle for a fun and informative evening! • Time: September 30 (Tue) @ 7pm • Jillian’s at Metreon 175 Fourth Street, San Francisco, CA At the corner of Howard and 4th st.; only 2-min walk from Moscone Center Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
  • 33. Oracle University MySQL Training Services Prepare Your Organization to Enable Reliable and High-Performance Web-Based Database Applications Top Courses for Administrators and Developers Top Certifications Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | “Training and team skill have the most significant impact on overall performance of technology and success of technology projects.” - IDC, 2013 Premier Support customers eligible to save 20% on learning credits. Benefits  Expert-led training to support your MySQL learning needs  Flexibility to train in the classroom or online  Hands-on experience to gain real world experience  Key skills needed for database administrators and developers • MySQL for Beginners MySQL for Database Administrators MySQL Performance Tuning MySQL Cluster – NEW - Register Your Interest! MySQL and PHP - Developing Dynamic Web Applications MySQL for Developers MySQL Developer Techniques MySQL 5.6 Database Administrator MySQL 5.6 Developer To find out more about available MySQL Training & Certification offerings, go to: education.oracle.com/mysql RECENTLY RELEASED ALL NEW! MySQL Cluster Training To Register your interest to influence the schedule on this newly released course – go to education.oracle.com/mysql and click on the MySQL Cluster Course
  • 34. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. | Thank You! Copyright © 2014, Oracle and/or its affiliates. All rights reserved.

Editor's Notes

  1. This is a Safe Harbor Front slide, one of two Safe Harbor Statement slides included in this template. One of the Safe Harbor slides must be used if your presentation covers material affected by Oracle’s Revenue Recognition Policy To learn more about this policy, e-mail: Revrec-americasiebc_us@oracle.com For internal communication, Safe Harbor Statements are not required. However, there is an applicable disclaimer (Exhibit E) that should be used, found in the Oracle Revenue Recognition Policy for Future Product Communications. Copy and paste this link into a web browser, to find out more information.   http://my.oracle.com/site/fin/gfo/GlobalProcesses/cnt452504.pdf For all external communications such as press release, roadmaps, PowerPoint presentations, Safe Harbor Statements are required. You can refer to the link mentioned above to find out additional information/disclaimers required depending on your audience.
  2. This is a sample Picture with Caption Layout slide ideal for including a picture with a brief descriptive statement. To Replace the Picture on this Sample Slide (this applies to all slides in this template that contain replaceable pictures) Select the sample picture and press Delete. Click the icon inside the shape to open the Insert Picture dialog box. Navigate to the location where the picture is stored, select desired picture and click on the Insert button to fit the image proportionally within the shape. Note: Do not right-click the image to change the picture inside the picture placeholder. This will change the frame size of the picture placeholder. Instead, follow the steps outlined above.