Data analytics can offer insights into your business and help take it to the next level. In this talk you'll learn about MongoDB tools for building visualizations, dashboards and interacting with your data. We'll start with exploratory data analysis using MongoDB Compass.
2. JANE FINE
Director of Product Marketing,
Analytics
jane.fine@mongodb.com
@janeuyvova
SETH PAYNE
Product Manager
seth.payne@mongodb.com
3. Data Analytics with MongoDB
Custom Code +
Charting
Libraries
ETL +
3rd Party BI
Tools
MongoDB BI Connector
+
3rd Party BI Tools
MongoDB
Charts
MongoDB
Compass
4. What To Expect
MongoDB Connector for BI
MongoDB Charts
MongoDB Aggregation Pipeline / MongoDB Compass
…
Lots of demos
6. MongoDB BI Connector
Visualize and explore MongoDB
data in SQL-based BI tools:
Automatically discovers the schema
Translates complex SQL statements
issued by the BI tool into MongoDB
aggregation queries
Converts the results into a tabular
format for rendering inside the BI tool
10. MongoDB BI Connector - When to Use
• Want to speak SQL to MongoDB
• Multi data sources (not just MongoDB)
• Business analysts
• Reporting only
• Powerful but you lose some benefits of schema flexibility
12. Options for Visualizing MongoDB Data
Custom Code +
Charting Libraries
ETL + 3rd Party
BI Tools
BI Connector +
3rd Party BI Tools
13. Wouldn’t it be nice if...
You could visualize your MongoDB Data…
without needing to write your own code
without needing to move your data into a different repository
without needing to purchase and configure third-party tools
without losing the richness of the Document Model
14. MongoDB Charts beta
The fastest way to build
visualizations over your
MongoDB data
Built for the MongoDB Document
Model
Visualize live data from on-prem
or Atlas DB
15. Charts Basic Concepts
A data source is a reference to a MongoDB collection or view that
contains data you want to visualize.
A chart is a visualization of data from a single data source.
A dashboard is a collection of charts which you manage as a unit
(name, layout, sharing)
16. What to Expect
Common chart types
Aggregation functions
Filtering
Sample Mode
Binning
Sorting
Type handling
Polymorphic collections
Nested documents
Array reductions
Charting Capabilities Document Model Support
17. MongoDB Charts - When to Use
• The fastest way to build visualizations over your MongoDB
data
• Ad hoc analyses
• Benefit from the Document Model
• Collaboration
• Self-service
• Intuitive enough for domain experts, non-devs to use!
19. Rich Queries
Point | Range | Geospatial | Faceted Search | Aggregations | JOINs |
Graph Traversals
JSON Documents Tabular Key-Value Text GraphGeospatial
MongoDB Aggregation Framework
20. MongoDB
{ customer_id : 1,
first_name : "Mark",
last_name : "Smith",
city : "San Francisco",
phones: [ {
number : "1-212-777-1212",
type : "work"
},
{
number : "1-212-777-1213",
type : "cell"
}]
...
Expressive
Queries
Find anyone with phone # “1-212…”
Check if the person with number “555…” is on the “do not call” list
Geospatial
Find the best offer for the customer at geo coordinates of 42nd St.
and 6th Ave
Text Search Find all tweets that mention the firm within the last 2 days
Aggregation
Count and sort number of customers by city, compute min, max, and
average spend
Native Binary
JSON Support
Add an additional phone number to Mark Smith’s record without
rewriting the document
Update just 2 phone numbers out of 10
Sort on the modified date
JOIN
($lookup)
Query for all San Francisco residences, lookup their transactions,
and sum the amount by person
Graph Queries
($graphLookup)
Query for all people within 3 degrees of separation from Mark
Rich query functionality
23. MongoDB Compass
Developer / Data Analyst Tool
Data management and manipulation
document view
table view
Visual schema analyzer
with query builder
export to language
Aggregation pipeline builder
A good place to start
24. MongoDB Compass - When to Use
• Exploratory data analysis
• Data preparation & basic manipulation
• Data ingestion via JSON or CSV import
• Day-to-day development/operations
• Adding and understanding indexes
• Adding validation rules
• Authoring & troubleshooting aggregation pipelines
• Viewing real-time server stats
• 10,000 → 1ft view of data
25. Range of Possibilities
Custom Code +
Charting
Libraries
ETL +
3rd Party BI
Tools
MongoDB BI
Connector +
3rd Party BI
Tools
MongoDB
Charts
MongoDB
Compass
26. analyst
data engineer
developer
analyst
analyst
Range of Possibilities
Custom Code +
Charting Libraries
ETL +
3rd Party BI Tools
MongoDB BI
Connector +
3rd Party BI Tools
MongoDB
Charts
MongoDB
Compass
developer
data scientist
developer
analyst
data scientist data engineer