Thursday, March 26, 2015

Introduction to MongoDB

Let's start our journey in the MongoDB Way...

The first information, everyone is eager to have is,

What is MongoDB ?
MongoDB is a Non Relational JSON Document Database.

Now, each part of the definition has a weight, let's see each of the separately,

Non Relational: MongoDB is a NoSQL database which does not support relations between different collections (tables in RDBMS analogy). In RDBMS we have multiple tables connected to each other by different references in them. The tables can be joined to fetch data. In MongoDB, joins are not allowed.

JSON: JSON is JavaScript Object Notation. JSON is a text based, lightweight, data-interchange format, built based on a subset of JavaScript Programming language and is easy to read write for humans while easy for machine parsing as well. JSON is represented as key-value pairs. Following is an example,

    street:"Sukanta Nagar",  

More detail on JSON is available in JSON Website.

Document Database: We already have gone through Document Database. If you want to refresh your knowledge, you are encouraged to review the topic once again.

MongoDB Features: As of now, we know that, MongoDB is a document database. Let's see what it offers,
  • MongoDB is highly scalable
  • MongoDB is JSON based which is highly familiar with native programming languages.So, ideally you can store anything into it as long as it supports JSON architecture
  • MongoDB supports dynamic schema, By this we mean, no specified format of the schema. So, you can put anything in a collection. No need to worry about the structure of the data. You can view the following video from MongoDB University,
  • MongoDB is highly efficient
  • MongoDB is easy to use
On the other hand, it lacks some of the features from RDBMS like,
  • MongoDB does not support joins
  • MongoDB does not support transactions

To get a more detailed insight, you can check out here or you can watch the following video from MongoDB University,

Hope this article helps you get info on MongoDB, Now its time to set your system up for MongoDB usage. Here is the resource, you will need to have to set up MongoDB.

Prev     Next
Palash Kanti Kundu

No comments:

Post a Comment