MongoDB (from humongous) is a free and open-source cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemas. MongoDB is developed by MongoDB Inc. and is free and open-source, published under a combination of the GNU Affero General Public License and the Apache License. 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.
A record in MongoDB is a document, which is a data structure composed of field and value pairs. MongoDB documents are similar to JSON objects. The values of fields may include other documents, arrays, and arrays of documents. Following is the example of MongoDB document
Following are some advantages of using document database
- Documents correspond to native data types in many programming languages.
- Embedded documents and arrays reduce need for expensive joins.
- Dynamic schema supports fluent Polymorphism.
- MongoDB provides high performance data persistence.
- MongoDB supports a rich query language to support read and write operations.
- Extremely faster than RDBMS
- It is easy to use and lightweight.
- MongoDB is schema less. It is a document database in which one collection holds different documents.
- Structure of a single object is clear in MongoDB.
- There are no complex joins in MongoDB.
- Uses internal memory for storing the (windowed) working set, enabling faster access of data.
- MongoDB is easy to scale.
- Conversion/mapping of application objects to database objects not needed.
- Big and complex data
- Mobile and social infrastructure
- Content management and delivery
- User data management
- Data hub