SlideShare a Scribd company logo
1 of 12
Download to read offline
© Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or
disclosure restricted by GSA ADP Schedule Contract. Page 3.
MongoDB Developer’s Notebook -- October 2016 V1.1
Chapter 10. October 2016
Welcome to the October 2016 edition of MongoDB Developer’s Notebook
(MDB-DN). This month we answer the following question(s);
I am new to MongoDB, and am wondering what tools you offer for developers.
Specfically, I am used to using a graphical tool for query plans, SQL style
DML execution, data dictionary exploration (How do you deal with a jagged
row table store ?), etcetera. What can you tell me ?
Excellent question! The Enterprise Advanced license to MongoDB comes
with at least three software components over and above the core database
server.
• MongoDB Compass is the component that you are effectively asking
about, and the component we will detail in this document.
• MongoDB Operations Manager (Ops Mgr) which is mostly similar to
MongoDB Cloud Manager, is also for developers (and operations), and
is centered more on provisioning and administering MongoDB.
• And then MongoDB Connector for Business Intelligence (BI), is a
middleware component that allows you to run SQL against a MongoDB
server instance.
We detailed the MongoDB Connector for BI in the March/2016 edition
of this document.
The primary MongoDB software component used in this edition of MDB-DN is
the MongoDB Compass, currently release1.4.0 beta-0. MongoDB Operations
Manager (Ops Mgr), and/or MongoDB Cloud Manager are also great aids for
developers (specifically the index advisor, provisioning, and monitoring tools),
however; we have to reduce scope or this document would be many more pages.
All of the software referenced is available for download at the URL's specified, in
either trial or community editions.
All of these solutions were developed and tested on a single tier CentOS 7.0
operating system, and a single tier MacOS operating system version 10.11.3,
running in VMWare Fusion version 8.1 virtual machines. The MongoDB server
software is version 3.311, and unless otherwise specified is running on one
node, with no shards and no replicas. All software is 64 bit.
MongoDB Developer’s Notebook -- October 2016 V1.1
© Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or
disclosure restricted by GSA ADP Schedule Contract. Page 4.
10.1 Terms and core concepts
As mentioned above, the focus of this edition of this document is developers, and
the MongoDB Compass software component to the MongoDB Enterprise
Advanced license. MongoDB Operations Manager (Ops Mgr), also has
functionality aimed at developers, which we will list as out of scope for this
document.
MongoDB Compass is a fat client (unlike a thin client, Web browser interface),
and can be installed on MacOS and Windows 7 and higher. The download Url is
here,
https://www.mongodb.com/download-center?jmp=docs#compass
And the online documentation page and release notes are here,
https://docs.mongodb.com/compass/
https://docs.mongodb.com/compass/release-notes/
10.1.1 MongoDB Compass Installation
The installation is ridiculously simple. In this document we are using release
1.4.0 beta-0. Similar to other MongoDB software products, the odd numbered
releases tend to bring features, and the even numbered releases correct defects.
Thus, the 1.4 release has no new customer facing features.
Figure 10-1 displays the release we are using in this document.
Figure 10-1 Release chain for MongoDB Compass.
Double-click the file image above, and follow the prompts. Example as displayed
in Figure 10-2; just drag and drop the MongoDB Compass application to the
Applications folder.
© Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or
disclosure restricted by GSA ADP Schedule Contract. Page 5.
MongoDB Developer’s Notebook -- October 2016 V1.1
Figure 10-2 Installing MongoDB Compass on MacOS.
Figure 10-3 show various prompts you may witness in the install, and need to
click though. In Figure 10-3, you are being informed that your connections history
will be stored in file(s) located under your home directory, should you wish to
cleanse later (delete history later).
MongoDB Developer’s Notebook -- October 2016 V1.1
© Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or
disclosure restricted by GSA ADP Schedule Contract. Page 6.
Figure 10-3 Receiving various click though prompts.
10.1.2 MongoDB Compass Connection Preferences (Connecting)
After the install (and launch), you will receive the Connection Preferences dialog
box, displayed in Figure 10-4.
© Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or
disclosure restricted by GSA ADP Schedule Contract. Page 7.
MongoDB Developer’s Notebook -- October 2016 V1.1
Figure 10-4 Connection preferences dialog box, part of starting the Compass product.
In Figure 10-4, supply your connections preferences information, minimally the
IP address and port of a given MongoDB database server instance, and Click
Connect. This action leads to the display as shown in Figure 10-5.
Note: The left side of this display will offer your connection history, to save
re-entering this data when you re-enter the MongoDB Compass product.
MongoDB Developer’s Notebook -- October 2016 V1.1
© Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or
disclosure restricted by GSA ADP Schedule Contract. Page 8.
Figure 10-5 Database and collections frame, left side of display.
10.1.3 MongoDB Compass, specifying the current collection
Nearly there ! MongoDB Compass operates on collections (and views), and to do
so we need first to choose a database and collection from the left side of the
display. After selecting test_CM:zips from the left panel, we are offered the
display in Figure 10-6.
© Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or
disclosure restricted by GSA ADP Schedule Contract. Page 9.
MongoDB Developer’s Notebook -- October 2016 V1.1
Figure 10-6 (Home page, of sorts), MongoDB Compass.
10.1.4 MongoDB Compass, Navigation Panel, Schema (TAB)
Relative to Figure 10-6, the following is offered:
– In addition to the four TABs (Schema, Documents, Explain Plan, Indexes),
there is the Navigation Panel to the left.
In the Navigation panel, the key features are to make current a new
collection (or view), and call to refresh this list via the circular arrow icon in
the upper right area of this pane.
Should you have too many collections to manage in this panel, there is a
Filter button, as shown.
– The Schema (TAB) was actually the original display from the version 1.0 of
MongoDB Compass. The intent of this frame is to explore the contents of
the current collection-
• What key names are present.
• What values and value types are present for each key.
• Data distributions; how many of a given value are present.
• Interactive query builder-
MongoDB Developer’s Notebook -- October 2016 V1.1
© Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or
disclosure restricted by GSA ADP Schedule Contract. Page 10.
This area of the display is ‘hot’, meaning; as you click on given values
for any of the keys, a query document is built in the address bar. The
address bar displays a “{ }” by default, the empty query document, as
in, return all documents.
The data types for a given key value are used to determine a chart
type, that is; which type of visual control is best for a given type and
distribution of data. In Figure 10-6, MongoDB Compass detected
spatial data in the form of latitude and longitude, and rendered this data
on a drag-able map. Very cool.
Chart types are documented here,
https://docs.mongodb.com/compass/understanding-charts/
10.1.5 MongoDB Compass, Documents (TAB)
The Documents (TAB), displayed in Figure 10-7, allows you to edit individual
documents, add documents and delete documents. The Documents TAB also
shares the address bar with the Schema (TAB), so that you may more quickly
highlight the given document that you wish to view or edit.
– A tool bar to the upper right of this display offers a pen (modify document),
trash can (delete document), and copy/clone document (create a new
document from an existing document as a source).
– A totally net new document insert is available via the Insert button.
– Notice too the overall collection set of statistics; number of documents in
the collection, total document size, average document size, number of
indexes, and more.
Note: This document is using version 1.4.0 beta-0 of MongoDB Compass.
This version of Compass supports the find( ) cursor method.
Version 1.5.0 of MongoDB Compass is expected to add support for the
aggregate( ) cursor method.
© Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or
disclosure restricted by GSA ADP Schedule Contract. Page 11.
MongoDB Developer’s Notebook -- October 2016 V1.1
Figure 10-7 Documents (TAB), editing documents.
– Figure 10-8, displays the Documents (TAB) during a document edit. Notice
that you can add keys, delete keys, and change the key value data type.
How-
Highlighting an existing key will offer an “X” (delete) option in the left
margin.
The key value data type offers a drop down list box with valid key value
types.
Clicking after the last key in the collection offers a new key creation.
Figure 10-8 Documents (TAB) during a document edit.
10.1.6 MongoDB Compass, Explain Plan (TAB)
The June/2016 edition of this document provided a query primer; how to write
queries with MongoDB. The May/2016 edition of this document detailed query
optimizers, and how to tune queries; index negation, query shapes and
processing patterns, predicate selectivity, and more.
The Explain Plan (TAB), displayed in Figure 10-9, offers a graphical interface to
understand your query behavior.
MongoDB Developer’s Notebook -- October 2016 V1.1
© Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or
disclosure restricted by GSA ADP Schedule Contract. Page 12.
In Figure 10-9, we have a single collection find( ) with an “$in” expression.
The collection access method is collection scan (“COLLSCAN”, sequential scan).
29 thousand documents were returned in 11 milliseconds. This query did not use
an index to process the query document because no indexes were available to
do so. (An index on test_CM.zips.state could be a good idea here.)
Figure 10-9 MongoDB Compass, Explain Plan (TAB).
10.1.7 MongoDB Compass, Indexes (TAB)
In Figure 10-10, we display the Indexes (TAB) to MongoDB Compass. This panel
is currently read-only, and displays any indexes in place on the current collection;
keys, direction (ascending or descending), and whether a unique constraint is in
place.
© Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or
disclosure restricted by GSA ADP Schedule Contract. Page 13.
MongoDB Developer’s Notebook -- October 2016 V1.1
Figure 10-10 MongoDB Compass, Indexes (TAB).
10.2 In this document, we reviewed or created:
We detailed install and use of MongoDB Compass, a graphical client for
programmers and administrators to execute queries, understand query plans and
indexes, and perform the four primary SQL style data manipulation commands.
Persons who help this month.
Dave Lutz, and Sam Weaver.
Additional resources:
Free MongoDB training courses,
https://university.mongodb.com/
This document is located here,
https://github.com/farrell0/MongoDB-Developers-Notebook
MongoDB Developer’s Notebook -- October 2016 V1.1
© Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or
disclosure restricted by GSA ADP Schedule Contract. Page 14.

More Related Content

Viewers also liked

What are cosmic rays and where do they comes from
What are cosmic rays and where do they comes fromWhat are cosmic rays and where do they comes from
What are cosmic rays and where do they comes fromMatloob Bukhari
 
Design of Cities - Edmund Bacon V2
Design of Cities - Edmund Bacon V2Design of Cities - Edmund Bacon V2
Design of Cities - Edmund Bacon V2Proyectar Ciudad
 
Contemporary literature features
Contemporary literature featuresContemporary literature features
Contemporary literature featurestotaaalupiii
 
Gothic Vocabulary
Gothic VocabularyGothic Vocabulary
Gothic VocabularyAliClaps
 

Viewers also liked (6)

What are cosmic rays and where do they comes from
What are cosmic rays and where do they comes fromWhat are cosmic rays and where do they comes from
What are cosmic rays and where do they comes from
 
Design of Cities - Edmund Bacon V2
Design of Cities - Edmund Bacon V2Design of Cities - Edmund Bacon V2
Design of Cities - Edmund Bacon V2
 
Contemporary literature features
Contemporary literature featuresContemporary literature features
Contemporary literature features
 
Gothic Vocabulary
Gothic VocabularyGothic Vocabulary
Gothic Vocabulary
 
Variables ppt
Variables pptVariables ppt
Variables ppt
 
17chapter 3cells (part2)
17chapter 3cells (part2)17chapter 3cells (part2)
17chapter 3cells (part2)
 

Similar to Mdb dn 2016_10_compass

Mdb dn 2016_07_elastic_search
Mdb dn 2016_07_elastic_searchMdb dn 2016_07_elastic_search
Mdb dn 2016_07_elastic_searchDaniel M. Farrell
 
Mdb dn 2017_17_bi_connector2
Mdb dn 2017_17_bi_connector2Mdb dn 2017_17_bi_connector2
Mdb dn 2017_17_bi_connector2Daniel M. Farrell
 
Mdb dn 2016_04_check_constraints
Mdb dn 2016_04_check_constraintsMdb dn 2016_04_check_constraints
Mdb dn 2016_04_check_constraintsDaniel M. Farrell
 
MongoDB Developer's Notebook, March 2016 -- MongoDB Connector for Business In...
MongoDB Developer's Notebook, March 2016 -- MongoDB Connector for Business In...MongoDB Developer's Notebook, March 2016 -- MongoDB Connector for Business In...
MongoDB Developer's Notebook, March 2016 -- MongoDB Connector for Business In...Daniel M. Farrell
 
Mdb dn 2017_18_query_hackathon
Mdb dn 2017_18_query_hackathonMdb dn 2017_18_query_hackathon
Mdb dn 2017_18_query_hackathonDaniel M. Farrell
 
upload.txt
upload.txtupload.txt
upload.txtIshNexus
 
Mdb dn 2017_14b_cloud_foundry
Mdb dn 2017_14b_cloud_foundryMdb dn 2017_14b_cloud_foundry
Mdb dn 2017_14b_cloud_foundryDaniel M. Farrell
 
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYCHands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYCLaura Ventura
 

Similar to Mdb dn 2016_10_compass (20)

Mdb dn 2016_07_elastic_search
Mdb dn 2016_07_elastic_searchMdb dn 2016_07_elastic_search
Mdb dn 2016_07_elastic_search
 
Mdb dn 2017_13_single_view
Mdb dn 2017_13_single_viewMdb dn 2017_13_single_view
Mdb dn 2017_13_single_view
 
Mdb dn 2016_08_tools
Mdb dn 2016_08_toolsMdb dn 2016_08_tools
Mdb dn 2016_08_tools
 
Mdb dn 2017_17_bi_connector2
Mdb dn 2017_17_bi_connector2Mdb dn 2017_17_bi_connector2
Mdb dn 2017_17_bi_connector2
 
Mdb dn 2017_15_monitoringb
Mdb dn 2017_15_monitoringbMdb dn 2017_15_monitoringb
Mdb dn 2017_15_monitoringb
 
Mdb dn 2016_12_single_view
Mdb dn 2016_12_single_viewMdb dn 2016_12_single_view
Mdb dn 2016_12_single_view
 
Mdb dn 2016_11_ops_mgr
Mdb dn 2016_11_ops_mgrMdb dn 2016_11_ops_mgr
Mdb dn 2016_11_ops_mgr
 
Mdb dn 2016_04_check_constraints
Mdb dn 2016_04_check_constraintsMdb dn 2016_04_check_constraints
Mdb dn 2016_04_check_constraints
 
Mdb dn 2017_16_iot
Mdb dn 2017_16_iotMdb dn 2017_16_iot
Mdb dn 2017_16_iot
 
MongoDB Developer's Notebook, March 2016 -- MongoDB Connector for Business In...
MongoDB Developer's Notebook, March 2016 -- MongoDB Connector for Business In...MongoDB Developer's Notebook, March 2016 -- MongoDB Connector for Business In...
MongoDB Developer's Notebook, March 2016 -- MongoDB Connector for Business In...
 
Mdb dn 2017_18_query_hackathon
Mdb dn 2017_18_query_hackathonMdb dn 2017_18_query_hackathon
Mdb dn 2017_18_query_hackathon
 
Mdb dn 2016_09_34_features
Mdb dn 2016_09_34_featuresMdb dn 2016_09_34_features
Mdb dn 2016_09_34_features
 
upload.txt
upload.txtupload.txt
upload.txt
 
upload.txt
upload.txtupload.txt
upload.txt
 
upload.txt
upload.txtupload.txt
upload.txt
 
uploaded at 10:56
uploaded at 10:56uploaded at 10:56
uploaded at 10:56
 
edit and approve 2
edit and approve 2edit and approve 2
edit and approve 2
 
upload.txt
upload.txtupload.txt
upload.txt
 
Mdb dn 2017_14b_cloud_foundry
Mdb dn 2017_14b_cloud_foundryMdb dn 2017_14b_cloud_foundry
Mdb dn 2017_14b_cloud_foundry
 
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYCHands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
Hands on Big Data Analysis with MongoDB - Cloud Expo Bootcamp NYC
 

Recently uploaded

{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceSapana Sha
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998YohFuh
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一fhwihughh
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFAAndrei Kaleshka
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...ThinkInnovation
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 

Recently uploaded (20)

{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts Service
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998RA-11058_IRR-COMPRESS Do 198 series of 1998
RA-11058_IRR-COMPRESS Do 198 series of 1998
 
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
办理学位证纽约大学毕业证(NYU毕业证书)原版一比一
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
How we prevented account sharing with MFA
How we prevented account sharing with MFAHow we prevented account sharing with MFA
How we prevented account sharing with MFA
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 

Mdb dn 2016_10_compass

  • 1. © Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or disclosure restricted by GSA ADP Schedule Contract. Page 3. MongoDB Developer’s Notebook -- October 2016 V1.1 Chapter 10. October 2016 Welcome to the October 2016 edition of MongoDB Developer’s Notebook (MDB-DN). This month we answer the following question(s); I am new to MongoDB, and am wondering what tools you offer for developers. Specfically, I am used to using a graphical tool for query plans, SQL style DML execution, data dictionary exploration (How do you deal with a jagged row table store ?), etcetera. What can you tell me ? Excellent question! The Enterprise Advanced license to MongoDB comes with at least three software components over and above the core database server. • MongoDB Compass is the component that you are effectively asking about, and the component we will detail in this document. • MongoDB Operations Manager (Ops Mgr) which is mostly similar to MongoDB Cloud Manager, is also for developers (and operations), and is centered more on provisioning and administering MongoDB. • And then MongoDB Connector for Business Intelligence (BI), is a middleware component that allows you to run SQL against a MongoDB server instance. We detailed the MongoDB Connector for BI in the March/2016 edition of this document. The primary MongoDB software component used in this edition of MDB-DN is the MongoDB Compass, currently release1.4.0 beta-0. MongoDB Operations Manager (Ops Mgr), and/or MongoDB Cloud Manager are also great aids for developers (specifically the index advisor, provisioning, and monitoring tools), however; we have to reduce scope or this document would be many more pages. All of the software referenced is available for download at the URL's specified, in either trial or community editions. All of these solutions were developed and tested on a single tier CentOS 7.0 operating system, and a single tier MacOS operating system version 10.11.3, running in VMWare Fusion version 8.1 virtual machines. The MongoDB server software is version 3.311, and unless otherwise specified is running on one node, with no shards and no replicas. All software is 64 bit.
  • 2. MongoDB Developer’s Notebook -- October 2016 V1.1 © Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or disclosure restricted by GSA ADP Schedule Contract. Page 4. 10.1 Terms and core concepts As mentioned above, the focus of this edition of this document is developers, and the MongoDB Compass software component to the MongoDB Enterprise Advanced license. MongoDB Operations Manager (Ops Mgr), also has functionality aimed at developers, which we will list as out of scope for this document. MongoDB Compass is a fat client (unlike a thin client, Web browser interface), and can be installed on MacOS and Windows 7 and higher. The download Url is here, https://www.mongodb.com/download-center?jmp=docs#compass And the online documentation page and release notes are here, https://docs.mongodb.com/compass/ https://docs.mongodb.com/compass/release-notes/ 10.1.1 MongoDB Compass Installation The installation is ridiculously simple. In this document we are using release 1.4.0 beta-0. Similar to other MongoDB software products, the odd numbered releases tend to bring features, and the even numbered releases correct defects. Thus, the 1.4 release has no new customer facing features. Figure 10-1 displays the release we are using in this document. Figure 10-1 Release chain for MongoDB Compass. Double-click the file image above, and follow the prompts. Example as displayed in Figure 10-2; just drag and drop the MongoDB Compass application to the Applications folder.
  • 3. © Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or disclosure restricted by GSA ADP Schedule Contract. Page 5. MongoDB Developer’s Notebook -- October 2016 V1.1 Figure 10-2 Installing MongoDB Compass on MacOS. Figure 10-3 show various prompts you may witness in the install, and need to click though. In Figure 10-3, you are being informed that your connections history will be stored in file(s) located under your home directory, should you wish to cleanse later (delete history later).
  • 4. MongoDB Developer’s Notebook -- October 2016 V1.1 © Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or disclosure restricted by GSA ADP Schedule Contract. Page 6. Figure 10-3 Receiving various click though prompts. 10.1.2 MongoDB Compass Connection Preferences (Connecting) After the install (and launch), you will receive the Connection Preferences dialog box, displayed in Figure 10-4.
  • 5. © Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or disclosure restricted by GSA ADP Schedule Contract. Page 7. MongoDB Developer’s Notebook -- October 2016 V1.1 Figure 10-4 Connection preferences dialog box, part of starting the Compass product. In Figure 10-4, supply your connections preferences information, minimally the IP address and port of a given MongoDB database server instance, and Click Connect. This action leads to the display as shown in Figure 10-5. Note: The left side of this display will offer your connection history, to save re-entering this data when you re-enter the MongoDB Compass product.
  • 6. MongoDB Developer’s Notebook -- October 2016 V1.1 © Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or disclosure restricted by GSA ADP Schedule Contract. Page 8. Figure 10-5 Database and collections frame, left side of display. 10.1.3 MongoDB Compass, specifying the current collection Nearly there ! MongoDB Compass operates on collections (and views), and to do so we need first to choose a database and collection from the left side of the display. After selecting test_CM:zips from the left panel, we are offered the display in Figure 10-6.
  • 7. © Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or disclosure restricted by GSA ADP Schedule Contract. Page 9. MongoDB Developer’s Notebook -- October 2016 V1.1 Figure 10-6 (Home page, of sorts), MongoDB Compass. 10.1.4 MongoDB Compass, Navigation Panel, Schema (TAB) Relative to Figure 10-6, the following is offered: – In addition to the four TABs (Schema, Documents, Explain Plan, Indexes), there is the Navigation Panel to the left. In the Navigation panel, the key features are to make current a new collection (or view), and call to refresh this list via the circular arrow icon in the upper right area of this pane. Should you have too many collections to manage in this panel, there is a Filter button, as shown. – The Schema (TAB) was actually the original display from the version 1.0 of MongoDB Compass. The intent of this frame is to explore the contents of the current collection- • What key names are present. • What values and value types are present for each key. • Data distributions; how many of a given value are present. • Interactive query builder-
  • 8. MongoDB Developer’s Notebook -- October 2016 V1.1 © Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or disclosure restricted by GSA ADP Schedule Contract. Page 10. This area of the display is ‘hot’, meaning; as you click on given values for any of the keys, a query document is built in the address bar. The address bar displays a “{ }” by default, the empty query document, as in, return all documents. The data types for a given key value are used to determine a chart type, that is; which type of visual control is best for a given type and distribution of data. In Figure 10-6, MongoDB Compass detected spatial data in the form of latitude and longitude, and rendered this data on a drag-able map. Very cool. Chart types are documented here, https://docs.mongodb.com/compass/understanding-charts/ 10.1.5 MongoDB Compass, Documents (TAB) The Documents (TAB), displayed in Figure 10-7, allows you to edit individual documents, add documents and delete documents. The Documents TAB also shares the address bar with the Schema (TAB), so that you may more quickly highlight the given document that you wish to view or edit. – A tool bar to the upper right of this display offers a pen (modify document), trash can (delete document), and copy/clone document (create a new document from an existing document as a source). – A totally net new document insert is available via the Insert button. – Notice too the overall collection set of statistics; number of documents in the collection, total document size, average document size, number of indexes, and more. Note: This document is using version 1.4.0 beta-0 of MongoDB Compass. This version of Compass supports the find( ) cursor method. Version 1.5.0 of MongoDB Compass is expected to add support for the aggregate( ) cursor method.
  • 9. © Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or disclosure restricted by GSA ADP Schedule Contract. Page 11. MongoDB Developer’s Notebook -- October 2016 V1.1 Figure 10-7 Documents (TAB), editing documents. – Figure 10-8, displays the Documents (TAB) during a document edit. Notice that you can add keys, delete keys, and change the key value data type. How- Highlighting an existing key will offer an “X” (delete) option in the left margin. The key value data type offers a drop down list box with valid key value types. Clicking after the last key in the collection offers a new key creation. Figure 10-8 Documents (TAB) during a document edit. 10.1.6 MongoDB Compass, Explain Plan (TAB) The June/2016 edition of this document provided a query primer; how to write queries with MongoDB. The May/2016 edition of this document detailed query optimizers, and how to tune queries; index negation, query shapes and processing patterns, predicate selectivity, and more. The Explain Plan (TAB), displayed in Figure 10-9, offers a graphical interface to understand your query behavior.
  • 10. MongoDB Developer’s Notebook -- October 2016 V1.1 © Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or disclosure restricted by GSA ADP Schedule Contract. Page 12. In Figure 10-9, we have a single collection find( ) with an “$in” expression. The collection access method is collection scan (“COLLSCAN”, sequential scan). 29 thousand documents were returned in 11 milliseconds. This query did not use an index to process the query document because no indexes were available to do so. (An index on test_CM.zips.state could be a good idea here.) Figure 10-9 MongoDB Compass, Explain Plan (TAB). 10.1.7 MongoDB Compass, Indexes (TAB) In Figure 10-10, we display the Indexes (TAB) to MongoDB Compass. This panel is currently read-only, and displays any indexes in place on the current collection; keys, direction (ascending or descending), and whether a unique constraint is in place.
  • 11. © Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or disclosure restricted by GSA ADP Schedule Contract. Page 13. MongoDB Developer’s Notebook -- October 2016 V1.1 Figure 10-10 MongoDB Compass, Indexes (TAB). 10.2 In this document, we reviewed or created: We detailed install and use of MongoDB Compass, a graphical client for programmers and administrators to execute queries, understand query plans and indexes, and perform the four primary SQL style data manipulation commands. Persons who help this month. Dave Lutz, and Sam Weaver. Additional resources: Free MongoDB training courses, https://university.mongodb.com/ This document is located here, https://github.com/farrell0/MongoDB-Developers-Notebook
  • 12. MongoDB Developer’s Notebook -- October 2016 V1.1 © Copyright 2016 All Rights Reserved. US Government Users Restricted Rights-Use, duplication or disclosure restricted by GSA ADP Schedule Contract. Page 14.