The Common DB that we use to store Data is SQL DB, Oracle DB. Any relational database has a typical schema design that shows number of tables and the relationship between these tables. While in MongoDB there is no concept of relationship.
MongoDB is a cross-platform, document oriented database that provides high performance, high availability, and easy scalability. MongoDB works on concept of collection and document. It is an open-source document database and leading NoSQL database.
Database: Database is a physical container for collections. Each database gets its own set of files on the file system. A single MongoDB server typically has multiple databases.
Collection: Collection is a group of MongoDB documents. It is equivalent of an RDBMS table. A collection exists within a single database. Collections do not enforce a schema. Documents within a collection can have different fields. Typically, all documents in a collection are of similar or related purpose.
Document: A document is a set of key-value pairs. Documents have dynamic schema. Dynamic schema means that documents in the same collection do not need to have the same set of fields or structure, and common fields in a collection’s documents may hold different types of data.
Main purpose to use MongoDB is speed and its simplicity because mostly databases are too much slow to fetch data and PHP needs to wait for databases most of the time and web development is impossible without database so if you want to work fast with database, MongoDB is best option you have.
The collection object should be used to perform basic operations to manipulate its information. For instance, if you want to store information about a person you use code like this:
Let’s see one example of Contact form-
Contact form contains contact information of user like user contact number. If user have multiple contact numbers like residential, mobile number, company number and even if you want to store more information like this,then you need to take relational table for same and if you move to relational table, you need to apply Join query to retrieve information of user in our traditional database.Whereas in MongoDB everything is stored in document so there is no need of JOIN operation.Everything stored in MongoDB is in one document. All numbers are associated in same record without JOINs and if you would like to include a collection of contact information of a user, you can simply create an embedded doc in MongoDB.
Below given table shows the relationship of RDBMS terminology with MongoDB
|Table Join||Embedded Documents|
|Primary Key||Primary Key (Default key_id provided by mongodb itself)|
|Database Server and Client|
Advantages of MongoDB over RDBMS:
Why should use MongoDB:
Where should use MongoDB?
Career options with MongoDB
Once you know this skill set, your demand will increase in the market. Lot of web application and e-commerce websites have migrated to Mongo DB. As it is open source so help is easily available on the internet. Many developers have started adopting it. MongoDB hires techies from Oracle and Teradata. It’s advisable to know this skill as lot of companies like Sapient, Infosys and Accenture are hiring MongoDB experts.
Connect with us
Like us on Facebook
7 Goodbye Email and Subject Line Examples ...
2014 Holiday List of Hewlett Packard (HP) ...
You Never Wanted to Join BPO after Your Engineering Degree ...
How to Relaunch Your Career After a Career Break ...
7 Reasons to Celebrate this International Women's Day ...
Amadeus Labs Bangalore - Holiday List 2016 ...
Accenture Salary and Variable Pay Calculation ...
10 College Projects for Computer Science Students ...
Off-Campus Walkin Interview Experience in Xerox ...
Dow Chemical Campus Placement Process and Interview Experience ...