DZone
Open Source Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Open Source Zone > Finding the Right Direction: MongoDB Compass - Community Version

Finding the Right Direction: MongoDB Compass - Community Version

Even though MongoDB's Community Version doesn't include all the bells and whistles, there are some pretty good open source replacements.

Adamo Tonete user avatar by
Adamo Tonete
·
Jun. 29, 18 · Open Source Zone · Analysis
Like (1)
Save
Tweet
6.10K Views

Join the DZone community and get the full member experience.

Join For Free

In this blog post, we will talk a bit about the product MongoDB Compass. This new tool has 3 main versions: Community, Enterprise, and Enterprise Read Only. MongoDB Compass Community is free, but a bit limited. It allows you to connect to your MongoDB Database to run queries, check queries execution plans, manage indexes, and create, drop/create collections and databases. The paid-for version offers some additional features such as Schema Analysis, Real Time Server Stats, and Document Validation.

We will focus on the Community version here, and look at how we can work around its limitations using free open source software.

Of course, MongoDB 3.6 was released in November 2017 and it comes with a lot of new features. We've already covered those in some of our blog posts and webinars, which you might find interesting:

  • What’s new in MongoDB 3.6 – webinar
  • MongoDB 3.6 Transactions – blog post
  • MongoDB 3.6 Change Streams – a Nest Temperature Fan Control Use Case

Using MongoDB Compass Community

The installation is very straightforward and it is available to all operating systems. We used MacOS version as an example but the product looks the same in all supported OS, including Linux with GUI.

Here are the main screens of MongoDB Compass; they are pretty self-explanatory.

Database List

Collection List

Collection Content (Documents)

Query Explained


Indexes

In the community version, we don't have Real Time Server Status, Document Validation, or Schema Analysis available. I've left these features offered by MongoDB Compass Enterprise out of this article.

However, following the philosophy offered in an earlier blog post — why pay if open source has you covered? — I'd like to demonstrate some free tools that offer the same functionality.

I should highlight that Percona doesn't have a partnership with those companies. These examples represent my suggestions of how open source software can deliver the same functionality as enterprise versions. There are other options out there, and if you know any that you think should be here please let us know!

Schema Validation

For schema validation, it is very likely that Compass is running behind the scenes something similar to Variety, an open project from James Cropcho and currently maintained by a few people.

With this tool, users can generate reports about collections, schemas, and their field types.

Schema validator is a wrapper to create collection validation, this blog post from MongoDB explains in details how to create validations

Real-time Server Status

Real-time Server Status shows details about the server itself. It shows the current number of operations, memory used and network throughput. Those metrics can be gathered with open source or "homemade" scripts.

Most of the metrics are based on db.serverStatus().

We also have Percona Monitoring and Management, or PMM, that provides enterprise-grade monitoring features free of charge and not only monitors MongoDB but also MySQL and PostgreSQL see more here.

However, if you didn't like Compass there are a lot of GUI tools available to run queries with IntelliSense, and this search will reveal the most common ones.

In summary, Compass is a great tool. However, with the limitations imposed in the Community version, it is just another user-friendly client. It is up to the user choose Compass over the other options available and if Community Compass is your option I hope you found this discussion useful.



If you enjoyed this article and want to learn more about MongoDB, check out this collection of tutorials and articles on all things MongoDB.

MongoDB Open source Database

Published at DZone with permission of Adamo Tonete, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • The Essential Web3 Tools and Technologies Developers Must Know
  • Build a Java Microservice With AuraDB Free
  • Geo What? A Quick Introduction to Geo-Distributed Apps
  • Shared Kubernetes Clusters for Hybrid and Multi-Cloud

Comments

Open Source Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo