SlideShare a Scribd company logo
Beyond the Basics 3: Introduction to the MongoDB BI Connector
Introduction to the MongoDB
BI Connector
Joe Drumgoole
Director of Developer Advocacy, EMEA
@jdrumgoole
Joe.Drumgoole@mongodb.com
V1.0
3
Context – Business Intelligence (BI)
Business intelligence (BI) is a technology-
driven process for analyzing data and
presenting actionable information to help
corporate executives, business managers
and other end users make more informed
business decisions.
BI encompasses a variety of tools,
applications and methodologies that enable
organizations to collect data from internal
systems and external sources, prepare it for
analysis, develop and run queries against
the data, and create reports, dashboards
and data visualizations to make the
analytical results available to corporate
decision makers as well as operational
workers.
Porta Ultricies
Commodo Porta
4
BI is a BIG Deal!
Gartner Says Worldwide Business Intelligence and Analytics
Market to Reach $16.9 Billion in 2016
Global revenue in the business intelligence (BI) and analytics market is forecast to reach
$16.9 billion in 2016, an increase of 5.2 percent from 2015, according to the latest
forecast from Gartner, Inc.
According to Gartner, the BI and analytics market is in the final stages of a multiyear shift
from IT-led, system-of-record reporting to business-led, self-service analytics. As a result,
the modern business intelligence and analytics (BI&A) platform has emerged to meet
new organizational requirements for accessibility, agility and deeper analytical insight.
Source: Gartner NewsRoom, February, 2016: http://www.gartner.com/newsroom/id/3198917
5
MongoDB Connector for BI
Visualize and explore multi-dimensional
documents using SQL-based BI tools. The
connector does the following:
• Provides the BI tool with the schema of the
MongoDB collection to be visualized
• Translates SQL statements issued by the BI tool
into equivalent MongoDB queries that are sent to
MongoDB for processing
• Converts the results into the tabular format
expected by the BI tool, which can then visualize
the data based on user requirements
6
Location & Flow of Data
MongoDB
BI
Connector
Mapping meta-data Application data
{name:
“Andrew”,
address:
{street:…
}}
DocumentTableAnalytics & visualization
7
Defining Data Mapping
mongodrdl –-host 127.0.0.1 --port 27017 –d=<database_name> –c=<collection_name> -
o schema.drdl
mongosqld --addr=127.0.0.1:3307 --mongo-uri=127.0.0.1:27017 –schema=schema.drdl
DRDL mongodrdl
mongosqld
Localhost:3307 Localhost:27017
MongoDB DRDL
• DRDL – Document Relational Definition Language
• Maps Nested document schema to tabular schema
$ mongodrdl –d=BIMUGS –c=members -o members.drdl
2017-05-03T14:52:09.819+0100 I MONGODRDL Table "audit", column
"info.args.apikey" has no types: ignoring column.
2017-05-03T14:52:09.819+0100 I MONGODRDL Table "audit", column
"info.args.verbose" has no types: ignoring column.
$ ls *.drdl
members.drdl
$
Example Document
{
"batchID" : 1,
"timestamp" : ISODate("2017-05-03T17:49:20.887Z"),
"group" : {
"city" : "Las Vegas",
"who" : "MongoDB LV'ers",
"description" : "…",
"created" : ISODate("2016-05-19T01:04:25Z"),
"country" : "US",
"join_mode" : "open",
"visibility" : "public",
"localized_country_name" : "USA",
"state" : "NV",
"link" : "https://www.meetup.com/Las-Vegas-MongoDB-Meetup/",
"members" : 37,
"timezone" : "US/Pacific",
"urlname" : "Las-Vegas-MongoDB-Meetup",
"id" : 19969928,
"name" : "Las Vegas MongoDB Meetup"
}
}
Example DRDL
schema: # Defines a schema file
- db: BIMUGS # from this database (-d=<database name>)
tables: # which has tables (members)
- table: members
collection: members # created from collection members
pipeline: [] # filter to apply
columns: # mapping from document fields to columns
- Name: _id
MongoType: bson.ObjectId
SqlName: _id
SqlType: varchar
- Name: batchID
MongoType: int
SqlName: batchID
SqlType: int
Demo
• Create DRDL
• Start mongosqld
• Show data in mysql command line
• Show data in Tableau
• Create a basic Tableau report
• Edit the DRDL and rerun tableau
• (Maybe show creating a new pipeline)
12
Optionally Manually Edit DRDL File
• Redact attributes
• Use more appropriate types
(sampling can get it wrong)
• Build new views using
MongoDB Aggregation
Framework
• e.g., $lookup to join 2 tables
- table: homesales
collection: homeSales
pipeline: []
columns:
- name: _id
mongotype: bson.ObjectId
sqlname: _id
sqltype: varchar
- name: address.county
mongotype: string
sqlname: address_county
sqltype: varchar
- name:
address.nameOrNumber
mongotype: int
sqlname:
address_nameornumber
sqltype: varchar
13
Next Steps
➢ Try the MongoDB Connector for BI
https://www.mongodb.com/lp/download/mongodb-enterprise
➢ Review the docs!
https://docs.mongodb.com/bi-connector/current/
➢ FAQ
https://docs.mongodb.org/bi-connector/faq/
Q&A?
Beyond the Basics 3: Introduction to the MongoDB BI Connector

More Related Content

PDF
Webinar: Introducing the MongoDB Connector for BI 2.0 with Tableau
PPTX
Webinar: Live Data Visualisation with Tableau and MongoDB
PPTX
Jumpstart: Introduction to MongoDB
PPTX
How Insurance Companies Use MongoDB
PPTX
Data Analytics: Understanding Your MongoDB Data
PPTX
Jumpstart: Introduction to Schema Design
PDF
MongoDB .local Paris 2020: Les bonnes pratiques pour travailler avec les donn...
PDF
MongoDB .local Toronto 2019: MongoDB – Powering the new age data demands
Webinar: Introducing the MongoDB Connector for BI 2.0 with Tableau
Webinar: Live Data Visualisation with Tableau and MongoDB
Jumpstart: Introduction to MongoDB
How Insurance Companies Use MongoDB
Data Analytics: Understanding Your MongoDB Data
Jumpstart: Introduction to Schema Design
MongoDB .local Paris 2020: Les bonnes pratiques pour travailler avec les donn...
MongoDB .local Toronto 2019: MongoDB – Powering the new age data demands

What's hot (20)

PPTX
Addressing Your Backup Needs Using Ops Manager and Atlas
PPTX
[MongoDB.local Bengaluru 2018] Jumpstart: Introduction to Schema Design
PDF
MongoDB .local Munich 2019: MongoDB Atlas Data Lake Technical Deep Dive
PDF
MongoDB .local Munich 2019: Managing a Heterogeneous Stack with MongoDB & SQL
PPTX
Tutorial: Building Your First App with MongoDB Stitch
PPTX
Online MongoDB Training by Easylearning.guru
PPTX
Accelerating a Path to Digital With a Cloud Data Strategy
PDF
MongoDB .local Paris 2020: Devenez explorateur de données avec MongoDB Charts
PPTX
The Right (and Wrong) Use Cases for MongoDB
PDF
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
PPTX
Event-Based Subscription with MongoDB
PDF
MongoDB Atlas Workshop - Singapore
PDF
MongoDB .local Chicago 2019: Using MongoDB Transactions to Implement Cryptogr...
PPTX
L’architettura di Classe Enterprise di Nuova Generazione
PDF
MongoDB .local Munich 2019: MongoDB Atlas Auto-Scaling
PPTX
[MongoDB.local Bengaluru 2018] The Path to Truly Understanding Your MongoDB Data
PPTX
Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB
PDF
MongoDB .local Munich 2019: A Complete Methodology to Data Modeling for MongoDB
PDF
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
PDF
MongoDB .local Toronto 2019: MongoDB Atlas Jumpstart
Addressing Your Backup Needs Using Ops Manager and Atlas
[MongoDB.local Bengaluru 2018] Jumpstart: Introduction to Schema Design
MongoDB .local Munich 2019: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB .local Munich 2019: Managing a Heterogeneous Stack with MongoDB & SQL
Tutorial: Building Your First App with MongoDB Stitch
Online MongoDB Training by Easylearning.guru
Accelerating a Path to Digital With a Cloud Data Strategy
MongoDB .local Paris 2020: Devenez explorateur de données avec MongoDB Charts
The Right (and Wrong) Use Cases for MongoDB
MongoDB SoCal 2020: Go on a Data Safari with MongoDB Charts!
Event-Based Subscription with MongoDB
MongoDB Atlas Workshop - Singapore
MongoDB .local Chicago 2019: Using MongoDB Transactions to Implement Cryptogr...
L’architettura di Classe Enterprise di Nuova Generazione
MongoDB .local Munich 2019: MongoDB Atlas Auto-Scaling
[MongoDB.local Bengaluru 2018] The Path to Truly Understanding Your MongoDB Data
Business Jumpstart: The Right (and Wrong) Use Cases for MongoDB
MongoDB .local Munich 2019: A Complete Methodology to Data Modeling for MongoDB
MongoDB .local San Francisco 2020: Powering the new age data demands [Infosys]
MongoDB .local Toronto 2019: MongoDB Atlas Jumpstart
Ad

Similar to Beyond the Basics 3: Introduction to the MongoDB BI Connector (20)

PPTX
Webinar: MongoDB and Analytics: Building Solutions with the MongoDB BI Connector
PPTX
Business Intelligence Overview
PPTX
Webinar on MongoDB BI Connectors
PDF
Internet of Things in Tbilisi
PPTX
Business Process Improvement plan - SQL
PDF
LDM Webinar: Data Modeling & Business Intelligence
PPT
Business Intelligence 9 11 08 Cio Breakfast 1
PDF
MongoDB company and case studies - john hong
PDF
Advantages Of Using Power BI For Your Business
PDF
Big dataclasses 2019_nosql
PPTX
L’architettura di classe enterprise di nuova generazione
PDF
Wizdee_Trends BI2017
PDF
How cloud os network is delivered trough triple c
PPTX
25 6-2013 - abecon inspiratiedag - breinwave bi solutions
PDF
DevTalks Keynote Powering interactive data analysis with Google BigQuery
PPTX
Reporting with cloud solutions from SAP
PPTX
KDD 2019 IADSS Workshop - Research Updates from Usama Fayyad & Hamit Hamutcu
PDF
Powering Real-Time Analytics with Data Virtualization on AWS (ASEAN & ANZ)
PPTX
Verso le trusted smart statistics - prospettive di sviluppo e risultati del e...
Webinar: MongoDB and Analytics: Building Solutions with the MongoDB BI Connector
Business Intelligence Overview
Webinar on MongoDB BI Connectors
Internet of Things in Tbilisi
Business Process Improvement plan - SQL
LDM Webinar: Data Modeling & Business Intelligence
Business Intelligence 9 11 08 Cio Breakfast 1
MongoDB company and case studies - john hong
Advantages Of Using Power BI For Your Business
Big dataclasses 2019_nosql
L’architettura di classe enterprise di nuova generazione
Wizdee_Trends BI2017
How cloud os network is delivered trough triple c
25 6-2013 - abecon inspiratiedag - breinwave bi solutions
DevTalks Keynote Powering interactive data analysis with Google BigQuery
Reporting with cloud solutions from SAP
KDD 2019 IADSS Workshop - Research Updates from Usama Fayyad & Hamit Hamutcu
Powering Real-Time Analytics with Data Virtualization on AWS (ASEAN & ANZ)
Verso le trusted smart statistics - prospettive di sviluppo e risultati del e...
Ad

More from MongoDB (20)

PDF
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
PDF
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
PDF
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
PDF
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
PDF
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
PDF
MongoDB SoCal 2020: MongoDB Atlas Jump Start
PDF
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
PDF
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
PDF
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
PDF
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
PDF
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
PDF
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
PDF
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
PDF
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
PDF
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
PDF
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
PDF
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
PDF
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
PDF
MongoDB .local Paris 2020: Les bonnes pratiques pour sécuriser MongoDB
PDF
MongoDB .local Paris 2020: Tout savoir sur le moteur de recherche Full Text S...
MongoDB SoCal 2020: Migrate Anything* to MongoDB Atlas
MongoDB SoCal 2020: Using MongoDB Services in Kubernetes: Any Platform, Devel...
MongoDB SoCal 2020: A Complete Methodology of Data Modeling for MongoDB
MongoDB SoCal 2020: From Pharmacist to Analyst: Leveraging MongoDB for Real-T...
MongoDB SoCal 2020: Best Practices for Working with IoT and Time-series Data
MongoDB SoCal 2020: MongoDB Atlas Jump Start
MongoDB .local San Francisco 2020: Using Client Side Encryption in MongoDB 4.2
MongoDB .local San Francisco 2020: Using MongoDB Services in Kubernetes: any ...
MongoDB .local San Francisco 2020: Go on a Data Safari with MongoDB Charts!
MongoDB .local San Francisco 2020: From SQL to NoSQL -- Changing Your Mindset
MongoDB .local San Francisco 2020: MongoDB Atlas Jumpstart
MongoDB .local San Francisco 2020: Tips and Tricks++ for Querying and Indexin...
MongoDB .local San Francisco 2020: Aggregation Pipeline Power++
MongoDB .local San Francisco 2020: A Complete Methodology of Data Modeling fo...
MongoDB .local San Francisco 2020: MongoDB Atlas Data Lake Technical Deep Dive
MongoDB .local San Francisco 2020: Developing Alexa Skills with MongoDB & Golang
MongoDB .local Paris 2020: Realm : l'ingrédient secret pour de meilleures app...
MongoDB .local Paris 2020: Upply @MongoDB : Upply : Quand le Machine Learning...
MongoDB .local Paris 2020: Les bonnes pratiques pour sécuriser MongoDB
MongoDB .local Paris 2020: Tout savoir sur le moteur de recherche Full Text S...

Recently uploaded (20)

PDF
Fluorescence-microscope_Botany_detailed content
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PDF
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PDF
Business Analytics and business intelligence.pdf
PPTX
Business Ppt On Nestle.pptx huunnnhhgfvu
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PPTX
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PDF
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PPTX
Introduction to Knowledge Engineering Part 1
PPTX
Introduction to machine learning and Linear Models
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
Fluorescence-microscope_Botany_detailed content
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
Recruitment and Placement PPT.pdfbjfibjdfbjfobj
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Business Analytics and business intelligence.pdf
Business Ppt On Nestle.pptx huunnnhhgfvu
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
Microsoft-Fabric-Unifying-Analytics-for-the-Modern-Enterprise Solution.pptx
Data_Analytics_and_PowerBI_Presentation.pptx
22.Patil - Early prediction of Alzheimer’s disease using convolutional neural...
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
Introduction to Knowledge Engineering Part 1
Introduction to machine learning and Linear Models
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Introduction to Firewall Analytics - Interfirewall and Transfirewall.pptx
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj

Beyond the Basics 3: Introduction to the MongoDB BI Connector

  • 2. Introduction to the MongoDB BI Connector Joe Drumgoole Director of Developer Advocacy, EMEA @jdrumgoole Joe.Drumgoole@mongodb.com V1.0
  • 3. 3 Context – Business Intelligence (BI) Business intelligence (BI) is a technology- driven process for analyzing data and presenting actionable information to help corporate executives, business managers and other end users make more informed business decisions. BI encompasses a variety of tools, applications and methodologies that enable organizations to collect data from internal systems and external sources, prepare it for analysis, develop and run queries against the data, and create reports, dashboards and data visualizations to make the analytical results available to corporate decision makers as well as operational workers. Porta Ultricies Commodo Porta
  • 4. 4 BI is a BIG Deal! Gartner Says Worldwide Business Intelligence and Analytics Market to Reach $16.9 Billion in 2016 Global revenue in the business intelligence (BI) and analytics market is forecast to reach $16.9 billion in 2016, an increase of 5.2 percent from 2015, according to the latest forecast from Gartner, Inc. According to Gartner, the BI and analytics market is in the final stages of a multiyear shift from IT-led, system-of-record reporting to business-led, self-service analytics. As a result, the modern business intelligence and analytics (BI&A) platform has emerged to meet new organizational requirements for accessibility, agility and deeper analytical insight. Source: Gartner NewsRoom, February, 2016: http://www.gartner.com/newsroom/id/3198917
  • 5. 5 MongoDB Connector for BI Visualize and explore multi-dimensional documents using SQL-based BI tools. The connector does the following: • Provides the BI tool with the schema of the MongoDB collection to be visualized • Translates SQL statements issued by the BI tool into equivalent MongoDB queries that are sent to MongoDB for processing • Converts the results into the tabular format expected by the BI tool, which can then visualize the data based on user requirements
  • 6. 6 Location & Flow of Data MongoDB BI Connector Mapping meta-data Application data {name: “Andrew”, address: {street:… }} DocumentTableAnalytics & visualization
  • 7. 7 Defining Data Mapping mongodrdl –-host 127.0.0.1 --port 27017 –d=<database_name> –c=<collection_name> - o schema.drdl mongosqld --addr=127.0.0.1:3307 --mongo-uri=127.0.0.1:27017 –schema=schema.drdl DRDL mongodrdl mongosqld Localhost:3307 Localhost:27017
  • 8. MongoDB DRDL • DRDL – Document Relational Definition Language • Maps Nested document schema to tabular schema $ mongodrdl –d=BIMUGS –c=members -o members.drdl 2017-05-03T14:52:09.819+0100 I MONGODRDL Table "audit", column "info.args.apikey" has no types: ignoring column. 2017-05-03T14:52:09.819+0100 I MONGODRDL Table "audit", column "info.args.verbose" has no types: ignoring column. $ ls *.drdl members.drdl $
  • 9. Example Document { "batchID" : 1, "timestamp" : ISODate("2017-05-03T17:49:20.887Z"), "group" : { "city" : "Las Vegas", "who" : "MongoDB LV'ers", "description" : "…", "created" : ISODate("2016-05-19T01:04:25Z"), "country" : "US", "join_mode" : "open", "visibility" : "public", "localized_country_name" : "USA", "state" : "NV", "link" : "https://www.meetup.com/Las-Vegas-MongoDB-Meetup/", "members" : 37, "timezone" : "US/Pacific", "urlname" : "Las-Vegas-MongoDB-Meetup", "id" : 19969928, "name" : "Las Vegas MongoDB Meetup" } }
  • 10. Example DRDL schema: # Defines a schema file - db: BIMUGS # from this database (-d=<database name>) tables: # which has tables (members) - table: members collection: members # created from collection members pipeline: [] # filter to apply columns: # mapping from document fields to columns - Name: _id MongoType: bson.ObjectId SqlName: _id SqlType: varchar - Name: batchID MongoType: int SqlName: batchID SqlType: int
  • 11. Demo • Create DRDL • Start mongosqld • Show data in mysql command line • Show data in Tableau • Create a basic Tableau report • Edit the DRDL and rerun tableau • (Maybe show creating a new pipeline)
  • 12. 12 Optionally Manually Edit DRDL File • Redact attributes • Use more appropriate types (sampling can get it wrong) • Build new views using MongoDB Aggregation Framework • e.g., $lookup to join 2 tables - table: homesales collection: homeSales pipeline: [] columns: - name: _id mongotype: bson.ObjectId sqlname: _id sqltype: varchar - name: address.county mongotype: string sqlname: address_county sqltype: varchar - name: address.nameOrNumber mongotype: int sqlname: address_nameornumber sqltype: varchar
  • 13. 13 Next Steps ➢ Try the MongoDB Connector for BI https://www.mongodb.com/lp/download/mongodb-enterprise ➢ Review the docs! https://docs.mongodb.com/bi-connector/current/ ➢ FAQ https://docs.mongodb.org/bi-connector/faq/
  • 14. Q&A?