SlideShare una empresa de Scribd logo
1 de 21
MySQL Document Store
Sankalita Chakraborty
Senior Member Technical Staff
sankalita.chakraborty@oracle.com
11th
October 2018
Copyright © 2016, Oracle and/or its affiliates. All rights reserved. |
Safe Harbour Statement
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
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.
Introduction
●
●
Alternative way using the MySQL Database.
●
Allows Users to work with
➔
SQL relational tables
➔
Schema-less JSON collections using CRUD Operation
●
Key features
➔
Flexibility of a NoSQL Database
➔
Consistency of a RDBMS
➔
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
What is a Document ?
●
Set of key value pairs
●
Schema-less
●
Data Structure capable of representing complex information
●
Examples of Documents
➔
JSON
➔
XML
➔
YAML
●
Reasons for using JSON
➔
Compact, Popular and Standardized
➔
Natively available in Python, Javascript etc
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
Document Store Architecture
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
MySQL Document Store –Components
●
MySQL Shell/Connectors
➔
Interactive Shell allowing execution of CRUD operation
➔
Provides DevAPI and Standard API support in Specific Languages
●
X Dev API
➔
New, standard APIs for CRUD and SQL operations on top of X Protocol
➔
Introduces Collections as new Schema object.
●
X Protocol
➔
New MySQL client protocol on top of TCP layer
➔
Uses Protobuf
➔
Works for both CRUD and SQL operations
●
X Plugin
➔
Enables the communication using X Protocol for relational and document operations
➔
Maps CRUD operation to tables
➔
Supports clients that implement X DevAPI and enables use of MySQL as a document
store.
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
MySQL Document Store Flowchart
●
Application generates XPlugin requests using Connector DevAPIs
●
Requests are transported to the XPugin via XProtocol
●
XPlugin generates SQL queries corresponding to the requests
●
Collections are stored as InnoDB tables
●
ACID Compliance, transactions, replications, row locking all work as normal
MySQL
Application
(DevAPI)
XPlugin MySQL(Innodb)Xprotocol (TCP)
Xplugin Requests SQL Queries
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
Document Store DevAPI
●
Set of APIs which enable the usage of MySQL Document store .
●
They are implemented as Native Language APIs by specific Connectors.
●
Abstracts the Relational DataBase aspect
➔
Developer can write queries and DB code directly in Net, Java, Python,
NodeJS, C++
➔
Developer deals directly with Collections as opposed to Table, columns,
schema etc
●
They implement CRUD methods to insert, query, modify and delete JSON documents
●
Relational table support is provided.
●
Simplified Indexes for indexing document fields.
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
JSON Indexing
JSON columns cannot be indexed directly.
Generated columns allow indexing on specific values in JSON documents.
➔ Create a virtual column on the value
➔ Create an index in on the virtual column
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
Collection ADD Function
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
Collection FIND Function
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
Collection MODIFY Function
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
Collection REMOVE Function
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
Examples of CRUD Operation
(using C/JAVA)
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
Create collection
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
Insert Data
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
Find JSON document
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
Modify JSON document
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
Remove JSON document
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
Demo of CRUD Operation
(using C/JAVA)
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
✔ Schemaless or/and Schema
✔ Rapid Prototyping/Simpler APIs
✔ Document Model
✔ Transactions
✔ ACID Properties
Conclusion
MySQL Document Store allows both schema-less and schema in the same technology stack.
Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.

Más contenido relacionado

La actualidad más candente

Xldb2011 tue 1120_youtube_datawarehouse
Xldb2011 tue 1120_youtube_datawarehouseXldb2011 tue 1120_youtube_datawarehouse
Xldb2011 tue 1120_youtube_datawarehouse
liqiang xu
 

La actualidad más candente (20)

Open core summit: Observability for data pipelines with OpenLineage
Open core summit: Observability for data pipelines with OpenLineageOpen core summit: Observability for data pipelines with OpenLineage
Open core summit: Observability for data pipelines with OpenLineage
 
Presto talk @ Global AI conference 2018 Boston
Presto talk @ Global AI conference 2018 BostonPresto talk @ Global AI conference 2018 Boston
Presto talk @ Global AI conference 2018 Boston
 
shark attack on sql-on-hadoop Talk at BerlinBuzzwords 2014
shark attack on sql-on-hadoop Talk at BerlinBuzzwords 2014shark attack on sql-on-hadoop Talk at BerlinBuzzwords 2014
shark attack on sql-on-hadoop Talk at BerlinBuzzwords 2014
 
Presto Summit 2018 - 09 - Netflix Iceberg
Presto Summit 2018  - 09 - Netflix IcebergPresto Summit 2018  - 09 - Netflix Iceberg
Presto Summit 2018 - 09 - Netflix Iceberg
 
Running complex data queries in a distributed system
Running complex data queries in a distributed systemRunning complex data queries in a distributed system
Running complex data queries in a distributed system
 
Redux vs GraphQL
Redux vs GraphQLRedux vs GraphQL
Redux vs GraphQL
 
Data pipelines observability: OpenLineage & Marquez
Data pipelines observability:  OpenLineage & MarquezData pipelines observability:  OpenLineage & Marquez
Data pipelines observability: OpenLineage & Marquez
 
Data lineage and observability with Marquez - subsurface 2020
Data lineage and observability with Marquez - subsurface 2020Data lineage and observability with Marquez - subsurface 2020
Data lineage and observability with Marquez - subsurface 2020
 
ArangoML Pipeline Cloud - Managed Machine Learning Metadata
ArangoML Pipeline Cloud - Managed Machine Learning MetadataArangoML Pipeline Cloud - Managed Machine Learning Metadata
ArangoML Pipeline Cloud - Managed Machine Learning Metadata
 
DataXDay - Real-Time Access log analysis
DataXDay - Real-Time Access log analysis DataXDay - Real-Time Access log analysis
DataXDay - Real-Time Access log analysis
 
Building an open data platform with apache iceberg
Building an open data platform with apache icebergBuilding an open data platform with apache iceberg
Building an open data platform with apache iceberg
 
Exploring MongoDB & Elasticsearch: Better Together
Exploring MongoDB & Elasticsearch: Better TogetherExploring MongoDB & Elasticsearch: Better Together
Exploring MongoDB & Elasticsearch: Better Together
 
Nikhil summer internship 2016
Nikhil   summer internship 2016Nikhil   summer internship 2016
Nikhil summer internship 2016
 
Intro elasticsearch taswarbhatti
Intro elasticsearch taswarbhattiIntro elasticsearch taswarbhatti
Intro elasticsearch taswarbhatti
 
Logical Diagrams Using AutoCAD
Logical Diagrams Using AutoCADLogical Diagrams Using AutoCAD
Logical Diagrams Using AutoCAD
 
Biojs
BiojsBiojs
Biojs
 
Provenance as a building block for an open science infrastructure
Provenance as a building block for an open science infrastructureProvenance as a building block for an open science infrastructure
Provenance as a building block for an open science infrastructure
 
Real-time Data Analytics mit Elasticsearch
Real-time Data Analytics mit ElasticsearchReal-time Data Analytics mit Elasticsearch
Real-time Data Analytics mit Elasticsearch
 
Querying a Complex Web-Based KB for Cultural Heritage Preservation
Querying a Complex Web-Based KB  for Cultural Heritage PreservationQuerying a Complex Web-Based KB  for Cultural Heritage Preservation
Querying a Complex Web-Based KB for Cultural Heritage Preservation
 
Xldb2011 tue 1120_youtube_datawarehouse
Xldb2011 tue 1120_youtube_datawarehouseXldb2011 tue 1120_youtube_datawarehouse
Xldb2011 tue 1120_youtube_datawarehouse
 

Similar a Doc store

MySQL Day Paris 2018 - MySQL JSON Document Store
MySQL Day Paris 2018 - MySQL JSON Document StoreMySQL Day Paris 2018 - MySQL JSON Document Store
MySQL Day Paris 2018 - MySQL JSON Document Store
Olivier DASINI
 
2018: State of the Dolphin, MySQL Keynote at Percona Live Europe 2018, Frankf...
2018: State of the Dolphin, MySQL Keynote at Percona Live Europe 2018, Frankf...2018: State of the Dolphin, MySQL Keynote at Percona Live Europe 2018, Frankf...
2018: State of the Dolphin, MySQL Keynote at Percona Live Europe 2018, Frankf...
Geir Høydalsvik
 

Similar a Doc store (20)

MySQL Day Paris 2018 - What’s New in MySQL 8.0 ?
MySQL Day Paris 2018 - What’s New in MySQL 8.0 ?MySQL Day Paris 2018 - What’s New in MySQL 8.0 ?
MySQL Day Paris 2018 - What’s New in MySQL 8.0 ?
 
Node.js and the MySQL Document Store
Node.js and the MySQL Document StoreNode.js and the MySQL Document Store
Node.js and the MySQL Document Store
 
MySQL Document Store (Oracle Code Warsaw 2018)
MySQL Document Store (Oracle Code Warsaw 2018)MySQL Document Store (Oracle Code Warsaw 2018)
MySQL Document Store (Oracle Code Warsaw 2018)
 
MySQL Document Store and Node.JS
MySQL Document Store and Node.JSMySQL Document Store and Node.JS
MySQL Document Store and Node.JS
 
MySQL Document Store - A Document Store with all the benefts of a Transactona...
MySQL Document Store - A Document Store with all the benefts of a Transactona...MySQL Document Store - A Document Store with all the benefts of a Transactona...
MySQL Document Store - A Document Store with all the benefts of a Transactona...
 
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document Store
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document StoreConnector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document Store
Connector/J Beyond JDBC: the X DevAPI for Java and MySQL as a Document Store
 
MySQL Day Paris 2018 - MySQL JSON Document Store
MySQL Day Paris 2018 - MySQL JSON Document StoreMySQL Day Paris 2018 - MySQL JSON Document Store
MySQL Day Paris 2018 - MySQL JSON Document Store
 
MySQL 8.0, what's new ? - Forum PHP 2018
MySQL 8.0, what's new ? - Forum PHP 2018MySQL 8.0, what's new ? - Forum PHP 2018
MySQL 8.0, what's new ? - Forum PHP 2018
 
Oracle Code Event - MySQL JSON Document Store
Oracle Code Event - MySQL JSON Document StoreOracle Code Event - MySQL JSON Document Store
Oracle Code Event - MySQL JSON Document Store
 
ADBA (Asynchronous Database Access)
ADBA (Asynchronous Database Access)ADBA (Asynchronous Database Access)
ADBA (Asynchronous Database Access)
 
MySQL Connector/J in the Making of Modern Applications
MySQL Connector/J in the Making of Modern ApplicationsMySQL Connector/J in the Making of Modern Applications
MySQL Connector/J in the Making of Modern Applications
 
MySQL 8 loves JavaScript
MySQL 8 loves JavaScript MySQL 8 loves JavaScript
MySQL 8 loves JavaScript
 
2018: State of the Dolphin, MySQL Keynote at Percona Live Europe 2018, Frankf...
2018: State of the Dolphin, MySQL Keynote at Percona Live Europe 2018, Frankf...2018: State of the Dolphin, MySQL Keynote at Percona Live Europe 2018, Frankf...
2018: State of the Dolphin, MySQL Keynote at Percona Live Europe 2018, Frankf...
 
MySQL Connector/Node.js and the X DevAPI
MySQL Connector/Node.js and the X DevAPIMySQL Connector/Node.js and the X DevAPI
MySQL Connector/Node.js and the X DevAPI
 
MySQL 8.0 - What's New ?
MySQL 8.0 - What's New ?MySQL 8.0 - What's New ?
MySQL 8.0 - What's New ?
 
MySQL JSON Document Store - A Document Store with all the benefits of a Trans...
MySQL JSON Document Store - A Document Store with all the benefits of a Trans...MySQL JSON Document Store - A Document Store with all the benefits of a Trans...
MySQL JSON Document Store - A Document Store with all the benefits of a Trans...
 
Jakarta EE Meets NoSQL in the Cloud Age [DEV6109]
Jakarta EE Meets NoSQL in the Cloud Age [DEV6109]Jakarta EE Meets NoSQL in the Cloud Age [DEV6109]
Jakarta EE Meets NoSQL in the Cloud Age [DEV6109]
 
Graph Analytics on Data from Meetup.com
Graph Analytics on Data from Meetup.comGraph Analytics on Data from Meetup.com
Graph Analytics on Data from Meetup.com
 
Oracle NoSQL
Oracle NoSQLOracle NoSQL
Oracle NoSQL
 
Serverless patterns
Serverless patternsServerless patterns
Serverless patterns
 

Más de Mysql User Camp

Mysql User Camp : 20-June-14 : Mysql Fabric
Mysql User Camp : 20-June-14 : Mysql FabricMysql User Camp : 20-June-14 : Mysql Fabric
Mysql User Camp : 20-June-14 : Mysql Fabric
Mysql User Camp
 

Más de Mysql User Camp (10)

Json improvements in my sql 8.0
Json improvements in my sql 8.0  Json improvements in my sql 8.0
Json improvements in my sql 8.0
 
EXPERIENCE WITH MYSQL HA SOLUTION AND GROUP REPLICATION
EXPERIENCE WITH MYSQL HA SOLUTION AND GROUP REPLICATIONEXPERIENCE WITH MYSQL HA SOLUTION AND GROUP REPLICATION
EXPERIENCE WITH MYSQL HA SOLUTION AND GROUP REPLICATION
 
My sql8 innodb_cluster
My sql8 innodb_clusterMy sql8 innodb_cluster
My sql8 innodb_cluster
 
Mysql8for blr usercamp
Mysql8for blr usercampMysql8for blr usercamp
Mysql8for blr usercamp
 
MySQL docker with demo by Ramana Yeruva
MySQL docker with demo by Ramana YeruvaMySQL docker with demo by Ramana Yeruva
MySQL docker with demo by Ramana Yeruva
 
Customer Experience: InnoDB Cluster Implementation by PR Karthik
Customer Experience: InnoDB Cluster Implementation by PR KarthikCustomer Experience: InnoDB Cluster Implementation by PR Karthik
Customer Experience: InnoDB Cluster Implementation by PR Karthik
 
Optimizer overviewoow2014
Optimizer overviewoow2014Optimizer overviewoow2014
Optimizer overviewoow2014
 
Multi source replication pdf
Multi source replication pdfMulti source replication pdf
Multi source replication pdf
 
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
 Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
Mysql User Camp : 20-June-14 : Mysql New features and NoSQL Support
 
Mysql User Camp : 20-June-14 : Mysql Fabric
Mysql User Camp : 20-June-14 : Mysql FabricMysql User Camp : 20-June-14 : Mysql Fabric
Mysql User Camp : 20-June-14 : Mysql Fabric
 

Último

VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 

Último (20)

VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 

Doc store

  • 1. MySQL Document Store Sankalita Chakraborty Senior Member Technical Staff sankalita.chakraborty@oracle.com 11th October 2018
  • 2. Copyright © 2016, Oracle and/or its affiliates. All rights reserved. | Safe Harbour Statement Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved. 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.
  • 3. Introduction ● ● Alternative way using the MySQL Database. ● Allows Users to work with ➔ SQL relational tables ➔ Schema-less JSON collections using CRUD Operation ● Key features ➔ Flexibility of a NoSQL Database ➔ Consistency of a RDBMS ➔ Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
  • 4. What is a Document ? ● Set of key value pairs ● Schema-less ● Data Structure capable of representing complex information ● Examples of Documents ➔ JSON ➔ XML ➔ YAML ● Reasons for using JSON ➔ Compact, Popular and Standardized ➔ Natively available in Python, Javascript etc Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
  • 5. Document Store Architecture Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
  • 6. MySQL Document Store –Components ● MySQL Shell/Connectors ➔ Interactive Shell allowing execution of CRUD operation ➔ Provides DevAPI and Standard API support in Specific Languages ● X Dev API ➔ New, standard APIs for CRUD and SQL operations on top of X Protocol ➔ Introduces Collections as new Schema object. ● X Protocol ➔ New MySQL client protocol on top of TCP layer ➔ Uses Protobuf ➔ Works for both CRUD and SQL operations ● X Plugin ➔ Enables the communication using X Protocol for relational and document operations ➔ Maps CRUD operation to tables ➔ Supports clients that implement X DevAPI and enables use of MySQL as a document store. Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
  • 7. MySQL Document Store Flowchart ● Application generates XPlugin requests using Connector DevAPIs ● Requests are transported to the XPugin via XProtocol ● XPlugin generates SQL queries corresponding to the requests ● Collections are stored as InnoDB tables ● ACID Compliance, transactions, replications, row locking all work as normal MySQL Application (DevAPI) XPlugin MySQL(Innodb)Xprotocol (TCP) Xplugin Requests SQL Queries Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
  • 8. Document Store DevAPI ● Set of APIs which enable the usage of MySQL Document store . ● They are implemented as Native Language APIs by specific Connectors. ● Abstracts the Relational DataBase aspect ➔ Developer can write queries and DB code directly in Net, Java, Python, NodeJS, C++ ➔ Developer deals directly with Collections as opposed to Table, columns, schema etc ● They implement CRUD methods to insert, query, modify and delete JSON documents ● Relational table support is provided. ● Simplified Indexes for indexing document fields. Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
  • 9. JSON Indexing JSON columns cannot be indexed directly. Generated columns allow indexing on specific values in JSON documents. ➔ Create a virtual column on the value ➔ Create an index in on the virtual column Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
  • 10. Collection ADD Function Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
  • 11. Collection FIND Function Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
  • 12. Collection MODIFY Function Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
  • 13. Collection REMOVE Function Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
  • 14. Examples of CRUD Operation (using C/JAVA) Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
  • 15. Create collection Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
  • 16. Insert Data Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
  • 17. Find JSON document Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
  • 18. Modify JSON document Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
  • 19. Remove JSON document Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
  • 20. Demo of CRUD Operation (using C/JAVA) Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.
  • 21. ✔ Schemaless or/and Schema ✔ Rapid Prototyping/Simpler APIs ✔ Document Model ✔ Transactions ✔ ACID Properties Conclusion MySQL Document Store allows both schema-less and schema in the same technology stack. Copyright (c) 2018 Oracle and/or its affiliates. All rights reserved.

Notas del editor

  1. Growing roster of users running Cluster – lots of telcos, fastest growth web and enterprise, see social gaming, online ecomm properties, content delivery PayPal spoke earlier in the month at MySQL Connect conf how they built new payment fraud detection system out of MySQL, deployed globally across AWS, enabling them to read any write from anywhere in the world in under 1 sec, so grown from a specialisation in telco to serve a broad selection of use cases – now gojng into detail on next major step forward – Cluster 7.3 Pass to Andrew <number>