Last Updated on
Welcome to MongoDB tutorial! This tutorial will include MongoDB details from the very beginners level to the advanced level. I hope you are familiar with basic OOPS and RDBMS concepts. If you are new to these technologies, you are advised to get familiar with these concepts and then come back to this MongoDB tutorial. I have tried to make it very easier and clear to understand. I hope at the end of this tutorial you will have enough understanding about MongoDB. So, now without wasting further time, let’s proceed with the MongoDB tutorial.
Introduction to MongoDB Tutorial
MongoDB has rapidly grown to become an ideal choice of databases for the number of reasons. MongoDB is an open source, document-oriented, NoSQL database It provides high performance, high availability and automatic scalability. It also helps in data modeling and data management of huge sets of data in an enterprise application. MongoDB. Another good thing about MongoDB is that it is a cross-platform database which means that it can be installed across different platforms like Windows, Linux etc.
MongoDB is available under General Public license for free and it is also available under Commercial license from the manufacturer.
What is NoSQL database?
This type of Database is used to refer a non-SQL or non-relational database. In Simple terms,
NoSQL = Non SQL or Not only SQL
This provides a mechanism for storage and retrieval of data other than tabular relations model used in relational databases. Here, we do not use tables for storing data. It is generally used to store large data set and real-time web applications. There are many advantages of NO-SQL databases such as – Query language support, fast performance, and scalability.
There are four types of No-SQL Database Types:
- Document databases pair each key with a complex data structure known as a document. Documents can contain many different key-value pairs, or key-array pairs, or even nested documents.
- Graph Databases are used to store information about networks of data, such as social connections. Graph stores include Neo4J and Giraph.
- Key-value Databases are the simplest NoSQL databases. Every single item in the database is stored as an attribute name (or ‘key’), together with its value. Examples of key-value stores are Riak and Berkeley DB. Some key-value stores, such as Redis, allow each value to have a type, such as ‘integer’, which adds functionality.
- Wide-column stores such as Cassandra and HBase are optimized for queries over large datasets, and store columns of data together, instead of rows.
What is Document Oriented Database?
A document-oriented database is a database designed for storing, retrieving, and managing document-oriented, or semi-structured data (XML, JSON, BSON and so on). This database comes under NoSQL databases.
According to Wikipedia:
“Document-oriented databases are inherently a subclass of the key-value store, another NoSQL database concept. The difference lies in the way the data is processed; in a key-value store the data is considered to be inherently opaque to the database, whereas a document-oriented system relies on internal structure in the document in order to extract metadata that the database engine uses for further optimization. Although the difference is often moot due to tools in the systems, conceptually the document-store is designed to offer a richer experience with modern programming techniques.”
Similarly, MongoDB is a collection-oriented, schema-free document database. Data is grouped into sets that are called ‘collections’. Each collection has a unique name in the database and can contain different types of objects. Every object is also called document or a list of key-value pairs. The value can be of three types – a primitive value, an array of documents or a list of key-value pairs. MongoDB’s documents are encoded in a JSON-like format, called BSON, which makes storage easy and is also lightweight, fast and traversable. MongoDB uses Mongo server and Mongo shell commands to fetch records or the information from the database (i.e. collections).
History of MongoDB
MongoDB was developed back in the year 2007 by Eliot Horowitz and Dwight Merriman. It was developed by a NewYork based organization named 10gen This name of the database was derived from the word humongous to support the idea of processing a large amount of data. It was initially developed as a PAAS (Platform As A Service). In 2009, MongoDB was made as an open source project, while the company offered commercial support services. Many companies started using MongoDB for its amazing features. In 2013, the company was officially named to MongoDB Inc
Where Can MongoDB be used?
MongoDB can be used in any of the large-scale applications. Nowadays, All the modern applications require big data, fast features development, easy access, flexible deployment and the older database systems not enough competent, so the MongoDB is the perfect choice for such requirements. You can easily download and install MongoDB on Windows & Mac. Few areas where MongoDB is ideal are:
- Big Data
- User Data Management
- Mobile and Social Infrastructure
- Content Management and Delivery
- Data Hub
There are a number of big and notable organizations which are using MongoDB databases for most of their business applications such as – Adobe, LinkedIn, SAP, eBay, and McAfee etc.
Also Read: Top 10 MongoDB Features
I hope you like this article on Introduction to MongoDB Tutorial. In upcoming MongoDB tutorials, you will be learning more about MongoDB. Don’t Forget To Share It with your friends and subscribe to our Email newsletter for more such updates. If you have any questions regarding this MongoDB tutorial overview, please feel free to ask in the comments section below 🙂
Latest posts by Mohit Arora (see all)
- MongoDB Operators Tutorial – What are Different Operators Available? - October 5, 2019
- MongoDB Projection Tutorial : Return Specific Fields From Query - March 9, 2019
- MongoDB Index Tutorial – Create Index & MongoDB Index Types - July 6, 2018