MongoDB is a document database designed to facilitate development and scaling. This manual introduces the key concepts of MongoDB, presents a query language, provides operational and administrative considerations and procedures, and provides a comprehensive reference section.
MongoDB offers both a Community and an Enterprise version of the database:
- MongoDB Community is a source and free edition of MongoDB available.
- MongoDB Enterprise is available as part of the MongoDB Enterprise Advanced subscription and includes comprehensive support for MongoDB deployment. MongoDB Enterprise also adds enterprise features such as LDAP and Kerberos support, on-disk encryption, and auditing.
Document Database
MongoDB records are documents. This is a data structure that consists of field-value pairs. MongoDB documents are similar to JSON objects. Field values can include other documents, arrays, and arrays of documents.
The advantages of using documents are:
- Documents (or objects) correspond to native data types in many programming languages.
- Embedded documents and arrays reduce the need for expensive joins.
- Dynamic schemas support fluent polymorphism.
Key Features
High Performance
MongoDB provides high-performance data persistence. In particular,
- Support for embedded data models reduces I / O activity on the database system.
- Indexes support faster queries and can include keys from embedded documents and arrays.
Rich Query Language
MongoDB supports a rich query language to support read and write operations (CRUD) as well as:
High Availability
MongoDB’s replication facility, called replica set, provides:
- automatic failover and
- data redundancy.
A replica set is a group of MongoDB servers that maintain the same data set, providing redundancy and increasing data availability.
Support for Multiple Storage Engines
MongoDB supports multiple storage engines:
- WiredTiger Storage Engine (including support for Encryption at Rest)
- In-Memory Storage Engine
- MMAPv1 Storage Engine (Deprecated in MongoDB 4.0)
In addition, MongoDB provides a pluggable storage engine API that allows third parties to develop storage engines for MongoDB.
Comments
Post a Comment