MongoDB

MongoDB是一个开源文档数据库,可提供高性能、高可用性和自动缩放。(MongoDB is an open-source document database that provides high performance, high availability, and automatic scaling.)

Github stars Tracking Chart

MongoDB是一个开源文档数据库,可提供高性能、高可用性和自动缩放。

文件数据库
MongoDB中的一个记录是一个文档,它是一个由字段和值对组成的数据结构。 MongoDB文档类似于JSON对象。字段的值可能包括其他文档,数组和文档数组。
MongoDB文件。
使用文档的优点是:
  • 文档(即对象)对应于许多编程语言中的原生数据类型。
  • 嵌入式文档和数组减少了对昂贵连接的需求。
  • 动态模式支持流畅的多态。
主要特征
高性能 -- MongoDB提供高性能的数据持久性。尤其是,
  • 支持嵌入式数据模型可减少数据库系统上的I/O活动。
  • 索引支持更快的查询,并且可以包括来自嵌入式文档和数组的密钥。
丰富的查询语言
MongoDB支持丰富的查询语言来支持读写操作(CRUD)以及:
  • 数据汇总
  • 文本搜索和地理空间查询。
高可用性
MongoDB的复制工具,称为副本集,提供:
  • 自动故障转移和数据冗余
  • 复制集是一组MongoDB服务器,它们保持相同的数据集,提供冗余和增加数据可用性。
水平可扩展性
MongoDB提供了可扩展性,作为其核心功能的一部分:
  • 分片通过一组机器分发数据。
  • MongoDB 3.4支持基于分片键创建数据区域。在平衡的集群中,MongoDB将区域覆盖的读写操作只引导到区域内的分片。有关详细信息,请参阅“区域”手册页。
支持多存储引擎
MongoDB支持多种存储引擎,如:
  • WiredTiger存储引擎
  • 和MMAPv1存储引擎。

此外,MongoDB还提供可插拔存储引擎API,允许第三方为MongoDB开发存储引擎。

Overview

Name With Ownermongodb/mongo
Primary LanguageC++
Program languagePython (Language Count: 15)
Platform
License:Other
Release Count1288
Last Release Namer7.0.9-rc0 (Posted on 2024-04-11 16:04:43)
First Release Namer0.0.3 (Posted on 2008-06-07 09:28:52)
Created At2009-01-15 16:15:18
Pushed At2024-04-14 17:57:43
Last Commit At2024-04-14 13:51:26
Stargazers Count25.4k
Watchers Count1.2k
Fork Count5.5k
Commits Count80.4k
Has Issues Enabled
Issues Count0
Issue Open Count0
Pull Requests Count125
Pull Requests Open Count83
Pull Requests Close Count1363
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

MongoDB README

Welcome to MongoDB!

COMPONENTS

mongod - The database server.
mongos - Sharding router.
mongo - The database shell (uses interactive javascript).

UTILITIES

install_compass - Installs MongoDB Compass for your platform.

BUILDING

See docs/building.md.

RUNNING

For command line options invoke:

$ ./mongod --help

To run a single server database:

$ sudo mkdir -p /data/db
$ ./mongod
$
$ # The mongo javascript shell connects to localhost and test database by default:
$ ./mongo
> help

INSTALLING COMPASS

You can install compass using the install_compass script packaged with MongoDB:

$ ./install_compass

This will download the appropriate MongoDB Compass package for your platform
and install it.

DRIVERS

Client drivers for most programming languages are available at
https://docs.mongodb.com/manual/applications/drivers/. Use the shell
("mongo") for administrative tasks.

BUG REPORTS

See https://github.com/mongodb/mongo/wiki/Submit-Bug-Reports.

PACKAGING

Packages are created dynamically by the package.py script located in the
buildscripts directory. This will generate RPM and Debian packages.

DOCUMENTATION

https://docs.mongodb.com/manual/

CLOUD HOSTED MONGODB

https://www.mongodb.com/cloud/atlas

MAIL LISTS

https://groups.google.com/forum/#!forum/mongodb-user

A forum for technical questions about using MongoDB.

https://groups.google.com/forum/#!forum/mongodb-dev

A forum for technical questions about building and developing MongoDB.

LEARN MONGODB

https://university.mongodb.com/

LICENSE

MongoDB is free and the source is available. Versions released prior to
October 16, 2018 are published under the AGPL. All versions released after
October 16, 2018, including patch fixes for prior versions, are published
under the Server Side Public License (SSPL) v1. See individual files for
details.

To the top