What is MongoDB?

MongoDB, developed by MongoDB Inc., is a cross-platform database program. It is categorized as a NoSQL database program which stores data in JSON-like documents.

A document is a set of key-value pairs defined by a schema which defines how the data is structured and organized in a database. A group of documents makes up a collection, and documents within the same collection can have different schema. This is referred to as dynamic schema.

The collections are stored physically in a MongoDB database.

{
_id: ObjectId(7ef12a67d21c)
username: 'john@educative.io',
password: 'password'
}

MongoDB, a distributed database at its core, is known to provide high performance, scalability, and flexibility in querying and indexing data. It is easy to integrate with applications as the document model can map to objects in the code. It provides drivers for major languages and there is also a lot of professional support available.

The MongoDB Community Edition is free and open-source while the MongoDB Enterprise Edition is for commercial purposes and has more advanced features.

Some of the prominent users of MongoDB are Google, Facebook, Lyft, Adobe, etc.

Copyright ©2024 Educative, Inc. All rights reserved