MongoDB is a cross-platform, document-oriented NOSQL database that provides, high performance, high availability, and easy scalability. MongoDB works on the concept of collection and document.
A MongoDB database is a set of collections. Each collection can have one or more documents. 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.
The advantages of using documents are:
- Documents correspond to native data types in many programming languages.
- Embedded documents and arrays reduce need for expensive joins.
- Dynamic schema supports fluent polymorphism.
- high availability
- Easy scalability.
- Open Source
- Rich Query Support
- Flexible Schema or schema less design
- JSON Support