> For the complete documentation index, see [llms.txt](https://docs.bashschool.in/v1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bashschool.in/v1/javascript/mongodb.md).

# MongoDB

MongoDB is an open-source, document-oriented NoSQL database system. It stores data in flexible, JSON-like documents with dynamic schemas, making it easier to store and manage unstructured or semi-structured data. This approach differs from traditional relational databases, which store data in rigid, tabular structures.

<figure><img src="https://images.unsplash.com/photo-1658204238967-3a81a063d162?crop=entropy&#x26;cs=srgb&#x26;fm=jpg&#x26;ixid=M3wxOTcwMjR8MHwxfHNlYXJjaHwyfHxNT05HT0RCfGVufDB8fHx8MTcxNjAwOTQ5MHww&#x26;ixlib=rb-4.0.3&#x26;q=85" alt="" width="188"><figcaption></figcaption></figure>

#### Key Features of MongoDB

* **Document-oriented data model**: Data is stored in flexible, JSON-like documents with dynamic schemas.
* **Scalability and high performance**: MongoDB is designed to scale horizontally across multiple servers for high throughput and availability.
* **High availability and replication**: MongoDB supports replication, allowing data to be replicated across multiple servers for high availability and fault tolerance.
* **Rich query language**: MongoDB provides a rich query language for querying and filtering data.
* **Indexing and aggregation**: MongoDB supports indexing for efficient querying and provides powerful aggregation capabilities for data processing.
* **Sharding for horizontal scaling**: MongoDB allows for horizontal scaling by partitioning data across multiple shards (servers).

####
