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.
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?

progrramers-logo

progrramers

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:

34 comments:

  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

    ReplyDelete
  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

    ReplyDelete
  3. I feel very grateful that I read this. It is very helpful and very informative and I really learned a lot from it.

    Simple Linear Regression

    Correlation vs Covariance

    ReplyDelete
  4. 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!

    Simple Linear Regression

    Correlation vs Covariance

    ReplyDelete

  5. 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

    ReplyDelete
  6. I recently came across your article and have been reading along. I want to express my admiration of your writing skill and ability to make readers read from the beginning to the end. I would like to read newer posts and to share my thoughts with you.

    Data Science Training

    ReplyDelete
  7. Your blog is in a convincing manner, thanks for sharing such an information with lots of your effort and time
    mongodb online training India
    mongodb online training Hyderabad

    ReplyDelete
  8. I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post. Hats off to you! The information that you have provided is very helpful.

    data science interview questions

    ReplyDelete
  9. Great post i must say and thanks for the information. Education is definitely a sticky subject. However, is still among the leading topics of our time. I appreciate your post and look forward to more.

    Simple Linear Regression

    Correlation vs Covariance

    ReplyDelete
  10. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.
    Correlation vs Covariance
    Simple linear regression
    data science interview questions

    ReplyDelete
  11. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.
    Correlation vs Covariance
    Simple linear regression
    data science interview questions

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

    Simple Linear Regression

    Correlation vs covariance

    KNN Algorithm

    Logistic Regression explained

    ReplyDelete
  13. 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!

    ReplyDelete
  14. very well explained .I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.
    Simple Linear Regression
    Correlation vs covariance
    data science interview questions
    KNN Algorithm
    Logistic Regression explained

    ReplyDelete
  15. very well explained .I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.
    Simple Linear Regression
    Correlation vs covariance
    data science interview questions
    KNN Algorithm
    Logistic Regression explained

    ReplyDelete
  16. This is a wonderful article, Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more ... good luck.

    Simple Linear Regression

    Correlation vs Covariance

    ReplyDelete
  17. very well explained. I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.
    Logistic Regression explained
    Correlation vs Covariance
    Simple Linear Regression
    data science interview questions
    KNN Algorithm

    ReplyDelete
  18. very well explained. I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.
    Logistic Regression explained
    Correlation vs Covariance
    Simple Linear Regression
    data science interview questions
    KNN Algorithm

    ReplyDelete
  19. 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

    ReplyDelete
  20. This was definitely one of my favorite blogs. Every post published did impress me. ExcelR Data Analytics Course

    ReplyDelete
  21. Honestly speaking this blog is absolutely amazing in learning the subject that is building up the knowledge of every individual and enlarging to develop the skills which can be applied in to practical one. Finally, thanking the blogger to launch more further too.
    Data Analytics online course

    ReplyDelete
  22. Thanks for posting the best information and the blog is very helpful.data science interview questions and answers

    ReplyDelete
  23. Extraordinary blog filled with an amazing content which no one has touched this subject before. Thanking the blogger for all the terrific efforts put in to develop such an awesome content. Expecting to deliver similar content further too and keep sharing as always.

    data science training

    ReplyDelete
  24. Stupendous blog huge applause to the blogger and hoping you to come up with such an extraordinary content in future. Surely, this post will inspire many aspirants who are very keen in gaining the knowledge. Expecting many more contents with lot more curiosity further.

    data science certification in bhilai

    ReplyDelete
  25. 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

    ReplyDelete
  26. 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

    ReplyDelete
  27. I was basically inspecting through the web filtering for certain data and ran over your blog. I am flabbergasted by the data that you have on this blog. It shows how well you welcome this subject. Bookmarked this page, will return for extra. data science course in jaipur

    ReplyDelete
  28. Wonderful blog found to be very impressive to come across such an awesome blog. I should really appreciate the blogger for the efforts they have put in to develop such an amazing content for all the curious readers who are very keen of being updated across every corner. Ultimately, this is an awesome experience for the readers. Anyways, thanks a lot and keep sharing the content in future too.

    Data Science Course in Bhilai

    ReplyDelete
  29. Impressive blog to be honest definitely this post will inspire many more upcoming aspirants. Eventually, this makes the participants to experience and innovate themselves through knowledge wise by visiting this kind of a blog. Once again excellent job keep inspiring with your cool stuff.

    Data Science Training in Bhilai

    ReplyDelete
  30. Extremely overall quite fascinating post. I was searching for this sort of data and delighted in perusing this one. Continue posting. A debt of gratitude is in order for sharing. python course in delhi

    ReplyDelete
  31. Extremely overall quite fascinating post. I was searching for this sort of data and delighted in perusing this one. Continue posting. A debt of gratitude is in order for sharing. cloud computing course in bangalore

    ReplyDelete
  32. 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

    ReplyDelete