Hello World! This is my brand new post and you are cordially welcome. Here we are about to be introduced with ‘MongoDB’.

MongoDB Image : What is MongoDB ? Progrramers Blog

What is MongoDB?

MongoDB is a general purpose, cross-platform, document-oriented distributed database program with the high flexibility and easy scalability. Unlike SQL MongoDB stores data in JSON like documents with flexibility. The term ‘flexibility’ is used here which means you are not bound to a fixed data field structure or predefined database schema. Field can be differing from document to document. Mongo DB works on the concept of collections and documents.

In SQL database, data stored in relational tabular form where MongoDB is NoSQL database program that provides a mechanism for storage and retrieval of data in documents of tree structured collections.

Before being too much descriptive let’s check out a brief example. Let’s assume we have a data table named persons in SLQ like below image.

SQL Database Example

In above figure there are four fields in table named person - First name, last name, email and age. If people want to feed the entire field then its fine which is shown in case of John Miller but take a close look on Steve Smith row, he doesn’t want to feed the email ID. In this case the email field is left empty in Steve Smith’s row. Next case of Edmond Woods who also wants to feed his address but there is no field of address is predefined therefore he cannot feed his address.  To do so database handler must define an address field in person’s table schema but the problem is that if John Miller and Steve Smith don’t want to feed their address then the address field of their rows will leave empty.

The synopses of the above example that you must predefined the schema of every expected data-field either user fill them or not while working with SQL. This can create lots of null data in your table which occupies small amount of space in your database, even though it is very small but it does.
Now let’s move on and check an example of MongoDB.

MongoDB Database Example

 Above image is showing the persons collection where the data is stored in the form of JSON-Objects.

You can notice the there is no predefined schema of person’s collection. John Miller is updated all the four fields but take a close look once again on Steve Smith he didn’t update the email ID and there is no field is predefined for email. Edmond Woods who updated the address but there is no field named address is defined for John Miller and Steve Smith.

This feature of MongoDB (NoSQL) database make it extreme flexible and worthy. The distributed systems design allows you to intelligently put data where you want it and supports a wide variety of data and queries. It avoids creating useless null data into database.
MongoDB grow horizontally through native sharding. A database shard is a horizontal partition of data in a database. Each individual partition is referred to as a shard or database shard. Each shard is held on a separate database server instance, to spread load. This feature allows scaling the database easily.

It is essential to compare SQL and MongoDB to understand the basic architecture and functionality of the MongoDB (NoSQL) database. Now we have a brief understanding of MongoDB database. To work with MongoDB you must have command over the JavaScript language, especially JavaScript Object and JavaScript Object Notation (JSON).

Related Topics

MongoDb Tutorial : How to Install MongoDB?



Hello friends! Progrramers is a tutorial site of w3 programming. If you like this tutorial site please encourages us by sharing this site links with your friends and nears & dears who want to learn web development and give us like on our Facebook page. If have any question please type in to comment box or send us message on social media sites via below given social links. Thank you, have a nice learning.

Post A Comment:


  1. Visiongain gives income figures to the period 2017-2027 for 2 arrangements of submarkets, to be specific by Sector (Upstream, Midstream, Downstream), and by Type (Hardware, Software, Services). These submarkets are gauge by national markets too. Data Analytics Course

  2. I like viewing web sites which comprehend the price of delivering the excellent useful resource free of charge. I truly adored reading your posting. Thank you!

    data science course


  3. I’m happy I located this blog! From time to time, students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. nice one

    Data Science Course

  4. I am looking for and I love to post a comment that "The content of your post is awesome" Great work!

    I am looking for and I love to post a comment that "The content of your post is awesome" Great work!

  5. An accounting package specifically designed for people in the construction industry is called construction accounting software. If you own a construction company, you will benefit from investing in an accounting package that works well for the construction industry, as it will improve the bottom line of your organization. Note that construction companies do not have to use accounting systems specifically designed for the construction industry, and many find generic packages to be very suitable, but if you are in the construction industry you should at least explore construction industry specific software among your options. empresas de reformas en zaragoza

  6. This is also a very good post which I really enjoyed reading. It is not every day that I have the possibility to see something like this..
    ai course

  7. Nice blog. I learnt something new from this blog. Good work. I enjoyed while reading this article. Keep sharing.
    Artificial Intelligence Course
    Data Science Training

  8. hey should lead pre-concentrate on assessments and when the raising has been done, the post-concentrate on assessment should be finished. la tour condos

  9. EvA side target of this white paper is to animate conversations and sharing of genuine encounters of starting, directing, and the general effect of introducing the approval results.ery one of these significant errands of the approval cycle is a difficult task requiring specialized information and profundity, political mindfulness and individuals the board abilities. arquitectos zaragoza

  10. This was an authentic and useful piece of information. Thank you for giving this useful content.
    Ethical Hacking Techniques
    What Is a Hacker

  11. Good to visit your weblog again, it has been months for me. Nicely this article that i've been waiting for so long. I will need this post to total my assignment in the college, and it has exact same topic together with your write-up. Thanks, good share.
    data science training in hyderabad

  12. This is because if you were to do your own amateur designs they could include elements that are not allowed by local councils. Click this website

  13. The approval cycle is basically about including all partners and getting their acknowledgment and reception of the architecture.

  14. Every one of these viewpoints has its own lifecycle and the proposed framework architecture will comprise of perspectives that are each in an alternate condition of their individual lifecycle.