Skip to content
Studio 3T - The professional GUI, IDE and client for MongoDB
  • Tools
    • Aggregation Editor
    • IntelliShell
    • Visual Query Builder
    • Export Wizard
    • Import Wizard
    • Query Code
    • SQL Query
    • Connect
    • Schema Explorer
    • Compare
    • SQL ⇔ MongoDB Migration
    • Data Masking
    • Task Scheduler
    • Reschema
    • More Tools and Features
  • Solutions
  • Resources
    • Knowledge Base
    • MongoDB Tutorials & Courses
    • Tool/Feature Documentation
    • Blog
    • Community
    • Testimonials
    • Whitepapers
    • Reports
  • Contact us
    • Contact
    • Sales Support
    • Feedback and Support
    • Careers
    • About Us
  • Store
    • Buy Now
    • Preferred Resellers
    • Team Pricing
  • Download
  • My 3T
search

5 Reasons You Should Install A Local MongoDB Database

Posted on: 25/10/2021 by Dj Walker-Morgan
Why you should install a local MongoDB

There’s a lot to be said about running a MongoDB database in the cloud. You can get server clusters online, quickly, and all the networking is managed and secure. All your users can be connected up to it and it’ll have automated backups. A service like Atlas is great for this kind of thing. But there are times when you may want to install your own local MongoDB and some good reasons to do so. So, here’s five of them:

1: Free with No Limits

A lot of cloud databases offer you a free tier. The free tier usually has some limits on it. Take MongoDB Atlas’s M0 free tier, where the limitations start with a maximum storage capacity of 512MB and include a range of restrictions because the database is on a shared platform. If you install your own MongoDB locally, your only limits are how much disk space and RAM you can spare to run your database.

2: No need to be online

It may seem obvious but a cloud database means you have to be online on the internet to connect to it. If you are traveling or working somewhere with limited connectivity this can be a problem. Worse still is if that connectivity is on a pay-as-you-go basis and the tariff is high. Every query and set of results will cost you money.

3: Zero lag

When you are running with a cloud database, the latency of the internet will also be in play meaning extra milliseconds on each and every query you make from an application. While it’s hard to spot that lag in a user driven GUI application like Studio 3T, that lag will always be there (unless they get 5G performing the way they’ve been promising… no, don’t hold your breath).

4: As fast as your local machine

Running your database locally means all your local CPU power is available for the more compute intensive tasks. Shared cloud databases have, by design, to be good neighbors to other databases running on the same hosts. So there will be reasonable limits. That or you’ll find that every now and then performance dips when someone else is running a compute intensive task. When you run locally it’s only you competing for resources.

5: Replication Free

Unless you use something like Docker and configure yourself a mini-cluster locally, your local MongoDB will be a single instance of MongoDB. That means it won’t have to replicate data to another instance of MongoDB to make it highly available. And that in turn means more resources that are free for you to consume with your applications.

So who’s this local MongoDB good for? 

  • Anyone doing development who doesn’t need to plug into the production systems. (Studio 3T can help give them real test data too through the use of Data Masking)
  • Anyone who wants to crunch data that’s normally production critical without impacting on the production process. Studio 3T can help export that data to the local database using it’s export features)
  • or who needs a database but is away from the Internet
  • and also everyone who needs an effective free local database

But… the case against local MongoDB

Of course there are caveats to this. 

  • Production –  MongoDB is always going to be a cluster of three machines or more running MongoDB. Running a standalone local MongoDB is great for performance but that’s all.
  • Replication, Latency and Other People – if you are developing on a standalone MongoDB, don’t expect the same performance when you move your application over to running on the cloud. The production cluster will be doing replication, it will be remote and there will be latency, and if you are going to production on a shared platform, there will be other people competing for resources. It’s not a reason not to build locally, more of a reason to make sure you test in the cloud to make sure you haven’t leant on the performance button a bit too much.
  • No backups – Unless you’re well organized and do back up your laptop or desktop, there’ll likely be no backup for your database. If you accidentally corrupt or delete your data, you’ll have to recreate that data.
  • No features like encryption at rest and other enterprise options – Assuming that you go with MongoDB’s Community edition, you won’t be able to use the various enterprise features but, that said, most of them are operational/deployment features for big deployments.
  • Security – you are responsible for it on your local machine. When you install MongoDB now, it binds to the localhost only, but watch out! If you bind to an IP address to give others access to your MongoDB, you’ve opened a can of worms – you’ll need to ensure you have users and authentication set up to manage incoming connections.

Finally

Once you’ve decided to go local and get your local MongoDB set up, you’ll want to connect to it. Studio 3T makes that simple too. Now get querying, aggregating and making more of MongoDB with Studio 3T.


How helpful was this article?
This article was hideous
This article was bad
This article was ok
This article was good
This article was great
Thank you for your feedback!

About The Author

Dj Walker-Morgan

Dj has been around since Commodore had Pets and Apples grew everywhere. With a background in Unix and development, he's been around the technology business writing code or writing content ever since.

Related articles

  • MongoDB, A Database with Porpoise – When You Have a Whale of a Performance Problem
  • How and when should I add timestamps to my MongoDB documents #Studio3T_AMA
  • I’ve been invited to use Studio 3T – What should I do next?
  • Meet Studio 3T at MongoDB.local London
  • MongoDB.local London 2022 Roundup

Tags

2022 academy aggregation AMA atlas Certification christmas community connections culture date tags events export features hackolade import intellishell In Use JSON knowledge base migration modelling mongodb mongoodb mongosh My 3T productivity query regex releases schema security SQL Studio 3T tasks time series tips updates webinar windows

Browse by MongoDB topic

  • Connecting to MongoDB
  • Database Administration & Security
  • Getting Started with MongoDB
  • Getting Started with Studio 3T
  • Import/Export
  • Job Automation & Scheduling
  • MongoDB Aggregation Framework
  • MongoDB/Studio 3T Workshops
  • Performance
  • Query & CRUD Operations
  • Reference
  • Schema
  • Studio 3T Licensing
  • Support and other resources
  • Working with MongoDB & SQL
  • Working with MongoDB Atlas

Studio 3T

MongoDB Enterprise Certified Technology PartnerSince 2014, 3T has been helping thousands of MongoDB developers and administrators with their everyday jobs by providing the finest MongoDB tools on the market. We guarantee the best compatibility with current and legacy releases of MongoDB, continue to deliver new features with every new software release, and provide high quality support.

Find us on FacebookFind us on TwitterFind us on YouTubeFind us on LinkedIn

Education

  • Free MongoDB Tutorials
  • Connect to MongoDB
  • Connect to MongoDB Atlas
  • Import Data to MongoDB
  • Export MongoDB Data
  • Build Aggregation Queries
  • Query MongoDB with SQL
  • Migrate from SQL to MongoDB

Resources

  • Feedback and Support
  • Sales Support
  • Knowledge Base
  • FAQ
  • Reports
  • White Papers
  • Testimonials
  • Discounts

Company

  • About Us
  • Blog
  • Careers
  • Legal
  • Press
  • Privacy Policy
  • EULA

© 2023 3T Software Labs Ltd. All rights reserved.

  • Privacy Policy
  • Cookie settings
  • Impressum

We value your privacy

With your consent, we and third-party providers use cookies and similar technologies on our website to analyse your use of our site for market research or advertising purposes ("analytics and marketing") and to provide you with additional functions (“functional”). This may result in the creation of pseudonymous usage profiles and the transfer of personal data to third countries, including the USA, which may have no adequate level of protection for the processing of personal data.

By clicking “Accept all”, you consent to the storage of cookies and the processing of personal data for these purposes, including any transfers to third countries. By clicking on “Decline all”, you do not give your consent and we will only store cookies that are necessary for our website. You can customize the cookies we store on your device or change your selection at any time - thus also revoking your consent with effect for the future - under “Manage Cookies”, or “Cookie Settings” at the bottom of the page. You can find further information in our Privacy Policy.
Accept all
Decline all
Manage cookies
✕

Privacy Preference Center

With your consent, we and third-party providers use cookies and similar technologies on our website to analyse your use of our site for market research or advertising purposes ("analytics and marketing") and to provide you with additional functions (“functional”). This may result in the creation of pseudonymous usage profiles and the transfer of personal data to third countries, including the USA, which may have no adequate level of protection for the processing of personal data. Please choose for which purposes you wish to give us your consent and store your preferences by clicking on “Accept selected”. You can find further information in our Privacy Policy.

Accept all cookies

Manage consent preferences

Essential cookies are strictly necessary to provide an online service such as our website or a service on our website which you have requested. The website or service will not work without them.

Performance cookies allow us to collect information such as number of visits and sources of traffic. This information is used in aggregate form to help us understand how our websites are being used, allowing us to improve both our website’s performance and your experience.

Google Analytics

Google Ads

Bing Ads

Facebook

LinkedIn

Quora

Hotjar

Reddit

Functional cookies collect information about your preferences and choices and make using the website a lot easier and more relevant. Without these cookies, some of the site functionality may not work as intended.

HubSpot

Social media cookies are cookies used to share user behaviour information with a third-party social media platform. They may consequently effect how social media sites present you with information in the future.

Accept selected