Introduction about MongoDB

Sachindu Gimhana
3 min readApr 6, 2021

MongoDB is a cross-platform document-oriented database program that is an open-source database. MongoDB is a NoSQL database program that works with JSON-like documents and optional schemas. MongoDB is a database that was created by MongoDB Inc. and is distributed under the Server Side Public License (SSPL).

NoSQL databases

NoSQL databases are non-tabular and store data differently than relational tables. NoSQL databases are classified according to their data model. Document, key-value, wide-column, and graph are the most common types. They have adaptable schemas and can handle large amounts of data and high user loads with ease.

Cluster controls

This is the database management system that enables us to work with MongoDB at a higher level. Databases, Collections, Documents, and Fields are all part of a Cluster.

Documents

Documents in SQL databases are similar to raws. We must use JSON format when creating. Within a collection, we can create several documents and have different values within a document.

We can store a key-value pair and other attributes with their values inside a document. Documents are written in curly brackets and documents are not ordered

Collection

A collection resembles a structural table more or less (SQL DataBase table). But the structural table is a little different. There are documents as entries in the collections. Within a database, we can create several collections.

Creating a MongoDB database

First, we’ve got an account to create. (With Google Authentication we can even log in if needed). We can use the free or paid version when we create an account.

Then a dashboard is available. We must click the Create a new cluster button to create a new cluster under this dashboard.

After filling the fields and typing the name of a new cluster, we can create a new cluster (We can create free clusters for the first stages, but we must pay a certain value to build clusters after more than three or four clusters are made.

Then we navigate with a cluster to the same dashboard.

If the collection button is pressed, we move to the collection interface.

By pressing Create a database button, we can create a database by entering a name in the database and collecting a name.

Advantages of MongoDB

  1. We don’t use SQL in MongoDB, so we don’t need to use multiple statements to connect tables.
  2. MongoDB can be accessed using any language and data structures native to that language.
  3. When we fix the errors and create a process, MongoDB will not interrupt it at any point.
  4. powerful querying and analytics
  5. Horizontal scaling is simple.

Believing MongoDB companies

  1. Google
  2. CISCO
  3. Adobe
  4. Pearson
  5. Barclays etc

Conclusion

In this article, I briefly explain MongoDB. Thank you so much for taking the time to read this. I hope you now have a better understanding of MongoDB and that you enjoyed reading it as much as I enjoyed writing it.

--

--