Presentation about how to extend MySQL Shell for DBA daily tasks and Innotop like processlist overview.
This presentation was delivered during the pre-FOSDEM MySQL Day on Feb 1st 2019
MySQL InnoDB Cluster and Group Replication in a Nutshell: hands-on tutorialFrederic Descamps
If you are trying to migrate from asynchronous Master-Slave environment to a full HA solution using MySQL InnoDB Cluster 8.0, this tutorial shows you how to proceed and how to manage and monitor your cluster.
How to use the new MySQL 8.0 Document Store with Python.
Easy CRUD operations, JSON validations, analytics with SQL only when needed, full ACID and more !
Presentation about how to extend MySQL Shell for DBA daily tasks and Innotop like processlist overview.
This presentation was delivered during the pre-FOSDEM MySQL Day on Feb 1st 2019
MySQL InnoDB Cluster and Group Replication in a Nutshell: hands-on tutorialFrederic Descamps
If you are trying to migrate from asynchronous Master-Slave environment to a full HA solution using MySQL InnoDB Cluster 8.0, this tutorial shows you how to proceed and how to manage and monitor your cluster.
How to use the new MySQL 8.0 Document Store with Python.
Easy CRUD operations, JSON validations, analytics with SQL only when needed, full ACID and more !
OpenExpo Virtual Experience 2020: MySQL 8.0 Document Store - Discovery of a n...Frederic Descamps
MySQL Document Store enables us to work with SQL relational tables and schema-less JSON collections. So instead of having a mixed bag of databases, you can just rely on MySQL, where the JSON documents can be stored in collections and managed with CRUD operations. All you need to do is install the X plugin. In this session, you will learn what a document store is, how to install and use it, and all the reasons for considering it. We will also see several specific features helping developers and illustrate how the usual MySQL DBA can manage this new world.
MySQL InnoDB Cluster - Advanced Configuration & OperationsFrederic Descamps
MySQL InnoDB Cluster is a very easy HA solution to deploy. However it's also a very customizable solution able to respond to most needs. During this session I will give an overview of settings that you may tune like those related to quorum lost, level of consistency, but also some you may not know like how to change recovery system, effect of increasing the event horizon. We will also discus about maintenance operations like how to stream large transactions, how to deal with DDL in multi-primary environments...
UAE MySQL Users Group Meet-up : MySQL Shell Document Store & more...Frederic Descamps
Discover MySQL 8.0 Document Store and how to use CRUD operations from the MySQL Shell. Also discover how to extend the MySQL Shell with User Defined Reports and Plugins
State of the Dolphin 2020 - 25th Anniversary of MySQL with 8.0.20Frederic Descamps
This is the online live version of the State of The Dolphin during Percona Live Online in May 2020.Discover what's new in MySQL 8.0, the Document Store, CTEs, Window Functions, Lateral, JSON_TABLE, the new Volcano Iterator, EXPLAIN ANLYZE, HASH JOIN, the new double write buffer, binlog compression, InnoDB Cluster, InnoDB ReplicaSet, DNS-SRV.... and last but not least our Contributors who made MySQL 8.0 so Great !
MySQL Tech Café #8: MySQL 8.0 for Python DevelopersFrederic Descamps
Usually it seems Python developers don't always think about MySQL as their first choice.... However when test test it with the right connector and MySQL 8.0 they love it !
Join this talk to learn how Python with mysql-connector-python can take advantages of MySQL 8.0.
This means using Standard MySQL Protocol but much nicer the X Protocol. During this session you will see how you can use MySQL Document Store and MySQL as RDBMS on the same session to benefits from both worlds.
OpenExpo Virtual Experience 2020: MySQL 8.0 Document Store - Discovery of a n...Frederic Descamps
MySQL Document Store enables us to work with SQL relational tables and schema-less JSON collections. So instead of having a mixed bag of databases, you can just rely on MySQL, where the JSON documents can be stored in collections and managed with CRUD operations. All you need to do is install the X plugin. In this session, you will learn what a document store is, how to install and use it, and all the reasons for considering it. We will also see several specific features helping developers and illustrate how the usual MySQL DBA can manage this new world.
MySQL InnoDB Cluster - Advanced Configuration & OperationsFrederic Descamps
MySQL InnoDB Cluster is a very easy HA solution to deploy. However it's also a very customizable solution able to respond to most needs. During this session I will give an overview of settings that you may tune like those related to quorum lost, level of consistency, but also some you may not know like how to change recovery system, effect of increasing the event horizon. We will also discus about maintenance operations like how to stream large transactions, how to deal with DDL in multi-primary environments...
UAE MySQL Users Group Meet-up : MySQL Shell Document Store & more...Frederic Descamps
Discover MySQL 8.0 Document Store and how to use CRUD operations from the MySQL Shell. Also discover how to extend the MySQL Shell with User Defined Reports and Plugins
State of the Dolphin 2020 - 25th Anniversary of MySQL with 8.0.20Frederic Descamps
This is the online live version of the State of The Dolphin during Percona Live Online in May 2020.Discover what's new in MySQL 8.0, the Document Store, CTEs, Window Functions, Lateral, JSON_TABLE, the new Volcano Iterator, EXPLAIN ANLYZE, HASH JOIN, the new double write buffer, binlog compression, InnoDB Cluster, InnoDB ReplicaSet, DNS-SRV.... and last but not least our Contributors who made MySQL 8.0 so Great !
MySQL Tech Café #8: MySQL 8.0 for Python DevelopersFrederic Descamps
Usually it seems Python developers don't always think about MySQL as their first choice.... However when test test it with the right connector and MySQL 8.0 they love it !
Join this talk to learn how Python with mysql-connector-python can take advantages of MySQL 8.0.
This means using Standard MySQL Protocol but much nicer the X Protocol. During this session you will see how you can use MySQL Document Store and MySQL as RDBMS on the same session to benefits from both worlds.
MySQL 8.0 : High Availability Solution for EverybodyFrederic Descamps
WePay & MySQL Virtual Meetup: check how easy it's do deploy and High Available Solution for your MySQL Database using MySQL Shell.
Abandon complex architectures and opt for turnkey solutions supported by MySQL.
A solution for all your needs and constraints...
MySQL 8.0 is the latest Generally Available version of MySQL. This session will help you upgrade from older versions, understand what utilities are available to make the process smoother and also understand what you need to bear in mind with the new version and considerations for possible behavior changes and solutions.
MySQL InnoDB cluster provides a complete high availability solution for MySQL. MySQL Shell includes AdminAPI which enables you to easily configure and administer a group of at least three MySQL server instances to function as an InnoDB cluster. Each MySQL server instance runs MySQL Group Replication, which provides the mechanism to replicate data within InnoDB clusters, with built-in failover. In the presentation, we will learn on how to set up InnoDB cluster using the official MySQL Docker containers and run them with docker-compose. This presentation covers a demo, including how to connect to the cluster through MySQL Router using a simple application.
2007 MySQL Conference and Expo 90 minute presentation specifically targeting Oracle Developers and DBAs. Topics included.
*DBA Tips, Tricks, Gotcha's & Tools
* Key Differences for Developers
* Migrating from Oracle to MySQL
O MySQL é o banco de dados open source mais popular do mundo, usado em grandes sites como Facebook, Youtube, Twitter, Globo.com e também em aplicações mobile e embarcadas. Frequentemente estas aplicações precisam armazenar e realizar cálculos com dados geográficos e isto é cada vez mais comum conforme cresce a utilização de dispositivos com GPS embutidos. Nesta palestra abordaremos como o MySQL suporta dados geográficos, sua compatibilidade com o padrão OpenGIS e casos de sucesso do uso desta tecnologia.
MySQL Router - Explore The Secrets (MySQL Belgian Days 2024)Miguel Araújo
Talk given at MySQL Belgian Days 2024.
The goal of this talk is to describe Router's architecture, highlight its role/features in MySQL Architectures, and go through other features that are less known and/or new, namely:
- Group Replication notifications
- Connection sharing/reuse
- TLS Session caching
- REST API
- MRS
- RW Splitting
MySQL for Oracle Developers and the companion MySQL for Oracle DBA's were two presentations for the 2006 MySQL Conference and Expo. These were specifically designed for Oracle resources to understand the usage, syntax and differences between MySQL and Oracle.
MySQL Database Architectures - MySQL InnoDB ClusterSet 2021-11Kenny Gryp
Oracle's MySQL solutions make it easy to setup various database architectures and achieve high availability with the introduction MySQL InnoDB Cluster and MySQL InnoDB ReplicaSet meeting various high availability requirements. MySQL InnoDB ClusterSet provides a popular disaster recovery solution.
Completely built in-house and supported by Oracle, many enterprises large and small have adopted these solutions into business critical applications.
In this presentation the various database architecture solutions for high availability and disaster recovery will be covered and help you choose the right solutions based on your business requirements.
MySQL Community Meetup in China : Innovation driven by the CommunityFrederic Descamps
Presenting MySQL Innovation in Shenzen:
- evolution is inevitable & why the MySQL Users Base's feedback is important
- from 5.7 to 8.0
- InnoDB Cluster
- Document Store
MySQL Database Service Webinar: Installing Drupal in oci with mdsFrederic Descamps
How to Install Drupal in OCI using MySQL Database Service.
Discover in this talk two ways to install Drupal on OCI using MDS:
- easy way: using Resource Manager Stacks
- usual way: creating everything manually
Similar to MySQL 8.0 Document Store - how to mix NoSQL & SQL in MySQL 8.0 (20)
MySQL Innovation & Cloud Day - Document Store avec MySQL HeatWave Database Se...Frederic Descamps
Découvrez un nouveau monde où l'on peut gérer ses données sans la moindre ligne de SQL.
MySQL Document Store utilise le nouveau protocol MySQL X, qui est également présent avec MySQL Database Service sur OCI, et permet aux développeurs d'écrire du code simple et efficace.
Mais attention, si nécessaire, MySQL Document Store peut également traiter les document JSON comme s'ils étaient des tables relationnelles et permettre des requêtes très poussées...
Percona Live 2022 - The Evolution of a MySQL Database SystemFrederic Descamps
From a single MySQL instance to multi-site high availability, this is what you will find out in this presentation. You will learn how to make this transition and which solutions best suit changing business requirements (RPO, RTO). Recently, MySQL has extended the possibilities for easy deployment of architecture with integrated tools. Come and discover these open source solutions that are part of MySQL.
In this tutorial, we cover the different deployment possibilities of the MySQL architecture depending on the business requirements for the data. We also deploy some architecture and see how to evolve to the next one.
The tutorial covers the new MySQL Solutions like InnoDB ReplicaSet, InnoDB Cluster, and InnoDB ClusterSet.
LinuxFest Northwest 2022 - The Evolution of a MySQL Database SystemFrederic Descamps
At the beginning of a project, the database is just a single MySQL instance (maybe not even running on its own hardware)... but with the evolution of the business requirements, the database must change to also meet the new targets of data loss and uptime. During this session we will follow the journey of a single MySQL server from the simple instance to a High Available Architecture with multi-site Disaster Recovery. We will discover easy manageable native solutions like MySQL InnoDB ReplicaSet, MySQL InnoDB Cluster and MySQL InnoDB ClusterSet. The session is also illustrated with commands and examples.
Open Source 101 2022 - MySQL Indexes and HistogramsFrederic Descamps
Nobody complains that the database is too fast. But when things slow down, the complaints come quickly. The two most popular approaches to speeding up queries are indexes and histograms. But there are so many options and types on indexes that it can get confusing. Histograms are fairly new to MySQL but they do not work for all types of data. This talk covers how indexes and histograms work and show you how to test just how effective they are so you can measure the performance of your queries.
Pi Day 2022 - from IoT to MySQL HeatWave Database ServiceFrederic Descamps
HeatWave is a massively parallel, high performance, in-memory query accelerator for Oracle MySQL Database Service that accelerates MySQL performance by orders of magnitude for analytics and mixed workloads. But how do you collect data from an Internet of Things Environment so you can use HeatWave to process it? In one hour you will see how data collected by a Raspberry PI or other Internet of Things device can be uploaded to the MySQL Database Service and then processed by HeatWave.
D'une simple instance MysQL à une haute-disponibilité multi-sites, voici ce que vous décrouvrirez dans cette présentation. Comment effectuer cette transition et quelles solutions conviennent les mieux aux évolutions des exigences commerciales (RPO, RTO). Récemment, MySQL a étendu les possibilités de déploiement aisé d'architecture avec des outils intégrés. Venez découvrir ces solution Open Source qui font partie de MySQL.
FOSDEM 2022 MySQL Devroom: MySQL 8.0 - Logical Backups, Snapshots and Point-...Frederic Descamps
Logical dumps are becoming popular again. MySQL Shell parallel dump & load utility changed to way to deal with logical dumps, certainly when using instances in the cloud. MySQL 8.0 released also an awesome physical snapshot feature with CLONE.
In this session, I will show how to use these two ways of saving your data and how to use the generated backup to perform point-in-time recovery like a rockstar with MySQL 8.0 in 2022 !
Présentation de MySQL 8.0 est des nouveautés récentes dans les toutes dernières versions ainsi que des informations sur la prochaine beta du MySQL Operator for Kubernetes
This presentation by Morris Kleiner (University of Minnesota), was made during the discussion “Competition and Regulation in Professions and Occupations” held at the Working Party No. 2 on Competition and Regulation on 10 June 2024. More papers and presentations on the topic can be found out at oe.cd/crps.
This presentation was uploaded with the author’s consent.
This presentation, created by Syed Faiz ul Hassan, explores the profound influence of media on public perception and behavior. It delves into the evolution of media from oral traditions to modern digital and social media platforms. Key topics include the role of media in information propagation, socialization, crisis awareness, globalization, and education. The presentation also examines media influence through agenda setting, propaganda, and manipulative techniques used by advertisers and marketers. Furthermore, it highlights the impact of surveillance enabled by media technologies on personal behavior and preferences. Through this comprehensive overview, the presentation aims to shed light on how media shapes collective consciousness and public opinion.
Sharpen existing tools or get a new toolbox? Contemporary cluster initiatives...Orkestra
UIIN Conference, Madrid, 27-29 May 2024
James Wilson, Orkestra and Deusto Business School
Emily Wise, Lund University
Madeline Smith, The Glasgow School of Art
0x01 - Newton's Third Law: Static vs. Dynamic AbusersOWASP Beja
f you offer a service on the web, odds are that someone will abuse it. Be it an API, a SaaS, a PaaS, or even a static website, someone somewhere will try to figure out a way to use it to their own needs. In this talk we'll compare measures that are effective against static attackers and how to battle a dynamic attacker who adapts to your counter-measures.
About the Speaker
===============
Diogo Sousa, Engineering Manager @ Canonical
An opinionated individual with an interest in cryptography and its intersection with secure software development.
Have you ever wondered how search works while visiting an e-commerce site, internal website, or searching through other types of online resources? Look no further than this informative session on the ways that taxonomies help end-users navigate the internet! Hear from taxonomists and other information professionals who have first-hand experience creating and working with taxonomies that aid in navigation, search, and discovery across a range of disciplines.
Acorn Recovery: Restore IT infra within minutesIP ServerOne
Introducing Acorn Recovery as a Service, a simple, fast, and secure managed disaster recovery (DRaaS) by IP ServerOne. A DR solution that helps restore your IT infra within minutes.
MySQL 8.0 Document Store - how to mix NoSQL & SQL in MySQL 8.0
1. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 1/70
1 / 70
2. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 2/70
2 / 702 / 702 / 70
3. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 3/70
MyMySQLSQL 8.0 Document Store8.0 Document Store
How to Mix NoSQL & SQL inHow to Mix NoSQL & SQL in MyMySQLSQL 8.08.0
Frédéric Descamps - MySQL Community Manager - OracleOracle
3 / 70
4. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 4/70
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 @ 2019 Oracle and/or its affiliates. All rights reserved.
4 / 70
5. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 5/70
about me - http://about.me/lefred
Who am I ?Who am I ?
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
5 / 70
6. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 6/70
Frédéric
Descamps
@lefred
MySQL Evangelist
Hacking MySQL since
3.23
devops believer
living in Belgium
🇧🇪
http://lefred.be
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
6 / 70
7. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 7/70
Why ?
Developers don't really like SQLSQL
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
7 / 70
8. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 8/70
Why ?
SQL can be complicated and slows down the initial
development
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
8 / 70
9. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 9/70
easy operations
What do developers want ?What do developers want ?
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
9 / 70
10. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 10/70
Use Objects / Documents
Developers want to just use objects (that's why they
usually love what DBAs hates: ORMs !).
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
10 / 70
11. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 11/70
Use Objects / Documents
Developers want to just use objects (that's why they
usually love what DBAs hates: ORMs !).
They want to deal with these objects easily (CRUD
operations) and they don't want to think about
schema design (slows down the initial development
process).
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
11 / 70
12. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 12/70
Use Objects / Documents
Developers want to just use objects (that's why they
usually love what DBAs hates: ORMs !).
They want to deal with these objects easily (CRUD
operations) and they don't want to think about
schema design (slows down the initial development
process).
But they also want to keep their data safe and use
transactions.
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
12 / 70
13. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 13/70
ready for some fun?
Let's start !Let's start !
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
13 / 70
14. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 14/70
Migration from MongoDB to
MySQL DS
For this example, I will use the well known
collection:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
14 / 70
15. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 15/70
Migration from MongoDB to
MySQL DS
For this example, I will use the well known
collection:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
15 / 70
16. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 16/70
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
16 / 70
17. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 17/70
Let's query
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
17 / 70
18. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 18/70
Let's query
That's too much records to show it here... let's
limit it
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
18 / 70
19. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 19/70
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
19 / 70
20. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 20/70
Some more examples
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
20 / 70
21. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 21/70
Some more examples
Let's add a selection criteria:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
21 / 70
22. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 22/70
Using IN...
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
22 / 70
23. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 23/70
And for developers ?
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
23 / 70
24. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 24/70
And for developers ?
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
24 / 70
25. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 25/70
And for developers ?
Easy, using only CRUD operations !
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
25 / 70
26. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 26/70
MySQL Document Store
Objects
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
26 / 70
27. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 27/70
CRUD operations
Add
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
27 / 70
28. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 28/70
CRUD operations
Add
Remove
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
28 / 70
29. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 29/70
CRUD operations
Modify
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
29 / 70
30. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 30/70
All you need to know is here:
https://dev.mysql.com/doc/x-devapi-
userguide/en/crud-operations-overview.html
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
30 / 70
31. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 31/70
we do care about your data
MyMySQLSQL Document StoreDocument Store is Full ACIDis Full ACID
CompliantCompliant
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
31 / 70
32. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 32/70
Document Store Full ACID !
It relies on the proven MySQL InnoDB's strength &
robustness:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
32 / 70
33. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 33/70
Document Store Full ACID !
It relies on the proven MySQL InnoDB's strength &
robustness:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
33 / 70
34. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 34/70
Document Store Full ACID !
It relies on the proven MySQL InnoDB's strength &
robustness:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
34 / 70
35. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 35/70
Document Store Full ACID !
It relies on the proven MySQL InnoDB's strength &
robustness:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
35 / 70
36. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 36/70
Document Store Full ACID !
It relies on the proven MySQL InnoDB's strength &
robustness:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
36 / 70
37. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 37/70
Document Store Full ACID !
It relies on the proven MySQL InnoDB's strength &
robustness:
We do care about your data
!
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
37 / 70
38. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 38/70
MySQL DS - ACID
Transactions support
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
38 / 70
39. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 39/70
MySQL DS - ACID
Transactions support
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
39 / 70
40. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 40/70
OK we have Document Store, CRUD and ACID
but what makesbut what makes MyMySQLSQL DocumentDocument
StoreStore unique ?unique ?
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
40 / 70
41. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 41/70
Challenge: list the best
restaurant of each type of
food and show the top 10,
with the best one first !
don't forget that all these restaurants are just
JSON documents
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
41 / 70
42. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 42/70
NoSQL as SQL - aggregation
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
42 / 70
43. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 43/70
NoSQL as SQL - aggregation
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
43 / 70
44. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 44/70
NoSQL as SQL - aggregation
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
44 / 70
45. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 45/70
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
45 / 70
46. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 46/70
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
46 / 70
47. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 47/70
Virtual Columns, Indexes, ...
And for the DBA ?And for the DBA ?
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
47 / 70
48. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 48/70
DS for DBAs: JSON
The DBAs can benefit from all JSON functions and
capabilities.
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
48 / 70
49. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 49/70
DS for DBAs: JSON
The DBAs can benefit from all JSON functions and
capabilities.
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
49 / 70
50. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 50/70
DS for DBAs: JSON
The DBAs can benefit from all JSON functions and
capabilities.
same as:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
50 / 70
51. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 51/70
DS for DBAs: JSON
The DBAs can benefit from all JSON functions and
capabilities.
same as:
we can use it in SQL:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
51 / 70
52. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 52/70
SQL and JSON: validation
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
52 / 70
53. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 53/70
SQL and JSON: validation
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
53 / 70
54. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 54/70
SQL and JSON: validation
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
54 / 70
55. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 55/70
SQL & JSON
But what for ?But what for ?
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
55 / 70
56. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 56/70
Example
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
56 / 70
57. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 57/70
Example (2)
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
57 / 70
58. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 58/70
Example (3) - Index
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
58 / 70
59. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 59/70
Example (4) - Index
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
59 / 70
60. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 60/70
Indexes in Document Store
It's also possible to create indexes without using
SQL syntax:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
60 / 70
61. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 61/70
Indexes in Document Store
It's also possible to create indexes without using
SQL syntax:
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
61 / 70
62. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 62/70
Example (5): arrays
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
62 / 70
63. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 63/70
Example (5): arrays
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
63 / 70
64. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 64/70
Example (5): arrays
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
64 / 70
65. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 65/70
Example (5): arrays
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
65 / 70
66. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 66/70
Example (5): JSON_TABLE
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
66 / 70
67. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 67/70
what do I gain ?
ConclusionConclusion
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
67 / 70
68. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 68/70
schemaless
flexible data
structure
easy to start (CRUD)
Conclusion
This is the best of the two worlds in one product !
Data integrity
ACID Compliant
Transactions
SQL
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
68 / 70
69. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 69/70
69 / 70
70. 2/6/2019 FOSDEM MySQL, MariaDB & Friends Devroom: MySQL 8.0 Document Store - How to Mix NoSQL & SQL in MySQL 8.0
file:///home/fred/ownCloud/Presentations/ORACLE/FOSDEM2019/MySQL%208.0%20Document%20Store/pres.html#1 70/70
Thank you !
Any Questions ?
share your 💕 for MySQL on social media using
Copyright @ 2019 Oracle and/or its affiliates. All rights reserved.
70 / 70