MongoDB Terminology in Relational Database Terms 316

Introduction A lot companies are making the shift from traditional relational database SQL technologies like Postgres and MySQL to NoSQL technologies like MongoDB. For developers making the shift a hurdle in the learning curve is understanding the new terminology. What is a “Collection”? What is a “Document”? It helps to begin explaining these terms in … Continued

How to Perform Backup and Restore in MongoDB 399

Introduction It’s no surprise that MongoDB is one of the most widely used database systems– not only is it powerful, scalable and reliable, but it’s also easy to manage. If you’re using MongoDB to store and manage your data, it’s important to know how to protect your database and data in the case of a … Continued

How to Optimize a Query in MongoDB

Introduction In this tutorial we’ll show you how to analyze the performance of a MongoDB query and then how to optimize it using indexing. We’ll be using a simple example with a small dataset for simplicity’s sake but the concept is the same with large datasets. In this day and age users will not put … Continued

How to Import a CSV into MongoDB

Introduction This article will show you how to import a CSV into MongoDB through the command line and the MongoDB shell. Maybe you’re making the switch to MongoDB for the first time and migrating your data over, or maybe you have data from some other source that you’d like to have in your database, whatever … Continued

How To Import and Export MongoDB Data Using Pandas In Python

Introduction With the Python Pandas library, you can effortlessly import and export documents. This includes insert documents MongoDB Python, import data MongoDB Pandas, doing a bulk insert PyMongo, and conducting an export data MongoDB Pandas. You can also import data MongoDB Python and insert data MongoDB Pandas. All of these essential tasks allow you to … Continued

Creating Stored Procedures in MongoDB with Stored Javascript

Introduction If you’re working with MongoDB and looking for a how to use stored procedures, you might have a little trouble getting started because MongoDB doesn’t have an exact equivalent to stored procedures but it does offer a feature stored javascript that offers similar functionality. You can store Javascript logic inside of a special collection … Continued

How to Shard in MongoDB

Introduction If you’re working on a production application or are headed in that direction, you’ll need to start worrying about scalability. What happens if you create a social media site that starts going viral and instead of saving 100MB per day you’re now storing 100GB per day. One tool in your MongoDB tool belt will … Continued

How to Save an Image in MongoDB using Java

Introduction MongoDB is widely used to store and manage text data, but its capabilities extend far beyond just text. If you’ve been wondering how to save an image in MongoDB, look no further– it’s actually quite easy to store images and other binary data to MongoDB. In this tutorial, we’ll explain how to use the … Continued

How to Sort in MongoDB Compass Community

Introduction If you’re looking for an easy way to visualize and understand your data, MongoDB Compass Community is a simple solution. MongoDB Compass acts as a GUI for MongoDB, allowing you to navigate through your databases, execute queries and perform various operations. Common database tasks, such as sorting the documents in a collection, can be … Continued

How to Add Fields in a MongoDB Array using Java

Introduction When you’re working with data in MongoDB, it’s likely that you’ll have to add a new field to a document at some point. Fortunately, adding fields in a MongoDB array is a simple task that can be accomplished in just a few lines of code. In this step-by-step tutorial, we’ll show you how to … Continued

Keep in the know!

Subscribe to our emails and we’ll let you know what’s going on at ObjectRocket. We hate spam and make it easy to unsubscribe.