Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

MongoDB Introduction

What is MongoDB?

MongoDB is a document-oriented database in which data is stored as JSON-like documents.

MongoDB is designed to meet the needs of large data volumes, high performance, and flexibility.

MongoDB uses collections to organize documents, and each document is composed of key-value pairs.

MongoDB stores data as a document whose data structure consists of key-value (key=>value) pairs. A document is similar to a JSON object, and field values can contain other documents, arrays, and arrays of documents:


Main Features


History

Version Publish date Feature description
1.0 August 2009 More indexes per collection
Faster index creation
1.2 December 2009 Map/Reduce
 存储的 JavaScript 函数       

 可配置的 fsync 时间       

 几个小特性和修复 |

| 1.4 | March 2010 | Production-ready sharding | | 1.6 | August 2010 | Replica sets
IPv6 support | | 1.8 | March 2011 | | | 2.0 | September 2011 | | | 2.2 | August 2012 | Enhanced geospatial support
Switch to the V8 JavaScript engine | | 2.4 | March 2013 | Security enhancements
Text search (beta)
Hashed index
Aggregation enhancements
Text search integration | | 2.6 | April 8, 2014 | Query engine improvements
New write operation protocol
Security enhancements
WiredTiger storage engine support
Pluggable storage engine API | | 3.0 | March 3, 2015 | SCRAM-SHA-1 authentication
Improved explain functionality
MongoDB Ops Manager
Enhanced replica set elections
WiredTiger storage engine by default | | 3.2 | December 8, 2015 | Configuration servers as replica sets
Read concern
Switch from V8 to SpiderMonkey
Linearizable read concern | | 3.4 | November 29, 2016 | Views
Collation | | 3.6 | November 2017 | | | 4.0 | June 2018 | Transactions | | 4.2 | August 2019 | | | 4.4 | July 2020 | | | 4.4.5 | April 2021 | | | 4.4.6 | May 2021 | Future-proof versioned API | | 5.0 | July 13, 2021 | Client-side field level encryption
Live resharding
Time series support | | 6.0 | July 2022 | | | 7.0 | August 15, 2023 | |


MongoDB download

You can download the installation package from the official MongoDB website at:https://www.mongodb.com/try/download/community。

MongoDB supports the following platforms:


Language support

MongoDB has the following official drivers:


MongoDB tools

There are several management tools available for MongoDB.

Monitoring

MongoDB provides the network and system monitoring tool Munin, which is applied to MongoDB as a plugin.

Gangila is a high-performance system monitoring tool for MongoDB, which is applied to MongoDB as a plugin.

Cacti is an open-source GUI-based tool for viewing CPU load and network bandwidth utilization; it also provides a plugin for monitoring MongoDB.

GUI


MongoDB application cases

The following lists some real-world applications of MongoDB by companies: