Indexes are important aspects while reading or fetching the documents. If we do not have indexes set up, we must scan every document of the collection to find and fetch the document that matches the query statement. Doing full scan degrades the performance of the application and is very inefficient considering when we are dealing […]

Read More »

In the last article, you have learned about creating and dropping database in MongoDB. In this, we will discuss MongoDB create collection command with the example. Before moving forward, let’s see what exactly collections are. In simple terms, collections are like a container for related documents. In SQL databases, we have TABLES. Similarly, in MongoDB […]

Read More »

In previous articles, you have learned how to install and get started with MongoDB. In today’s article, you will learn about MongoDB Create Database & Drop database command. Before proceeding with the article, I assume that you have MongoDB installed successfully on your system and are familiar with mongo shell. I will use the mongo […]

Read More »