MongoDB
MongoDB
MongoDB is a cross-platform document-oriented NoSQL database program. Classified as a database management system, it uses JSON-like documents with optional schemas. MongoDB is developed by MongoDB Inc. and is available under a combination of the Server Side Public License (SSPL) and the Apache License.
MongoDB is built for scalability, high performance, and high availability, scaling from single-server deployments to large, complex multi-site architectures. It supports sharding, replication, and indexing, as well as aggregation and geospatial queries. The database is often used in web applications, real-time analytics, and content management systems.
Features
- Document model: Data is stored in flexible, JSON-like documents, meaning fields can vary between documents and data structure can be evolved over time.
- Ad-hoc queries: MongoDB supports field, range, and regular expression queries, as well as queries that return specific fields.
- Indexing: Any field in a document can be indexed, including secondary, compound, text, geospatial, and hashed indexes.
- Replication: MongoDB provides high availability with replica sets, which consist of two or more copies of the data.
- Sharding: Horizontal scaling is achieved by distributing data across multiple servers.
- Aggregation framework: A pipeline-based system for data processing, similar to MapReduce.