MongoDB是一个基于文档的通用分布式数据库,专为现代应用程序开发人员和云时代而构建。没有数据库可以更高效地使用。
Products
Solutions
Customers
Resources
Learn
What is MongoDB?
Contact
Search
Sign In
Try Free
CLOUD
MongoDB Atlas
Fully managed cloud database
MongoDB Stitch
Serverless platform
MongoDB Charts
Native visualization for MongoDB data
Cloud Migration
Move to the cloud with minimal downtime
SOFTWARE
MongoDB Server
Database software
MongoDB Mobile
Mobile embedded version of MongoDB
MongoDB Compass
GUI for MongoDB
Ops Manager
Management platform for MongoDB
ANALYTICS
MongoDB Charts
Native visualization for MongoDB data
MongoDB Connector for BI
View MongoDB data in SQL-based BI tools
MongoDB Connector for Spark
Spark processing on MongoDB data
SERVICES
Consulting
Help from the experts
Training
Knowledge for your team
Customer Success
Guidance for our customers
DocumentationGuides to all of our products
UniversityLearn MongoDB from MongoDB
MongoDB is a general purpose, document-based, distributed database built for modern application developers and for the cloud era. No database is more productive to use.
Try MongoDB free in the cloud!
Used by millions of developers to power the world's most innovative products and services
View customer stories
THE DOCUMENT MODEL
MongoDB is a document database, which means it stores data in JSON-like documents. We believe this is the most natural way to think about data, and is much more expressive and powerful than the traditional row/column model.
{
"_id": "5cf0029caff5056591b0ce7d",
"firstname": "Jane",
"lastname": "Wu",
"address": {
"street": "1 Circle Rd",
"city": "Los Angeles",
"state": "CA",
"zip": "90404"
},
"hobbies": ["surfing", "coding"]
}
The most natural and productive way to work with data.
Supports arrays and nested objects as values.
Allows for flexible and dynamic schemas.
> db.users.find({ "address.zip" : "90404" })
{ "_id": "5cf0029caff5056591b0ce7d", "firstname": "Jane", "lastname": "Wu", "address":{}}
{ "_id": "507f1f77bcf86cd799439011", "firstname": "Jon", "lastname": "Davis", "address":{}}
{ "_id": "5349b4ddd2781d08c09890f3", "firstname": "Jim", "lastname": "White", "address":{}}
{ "_id": "5bf142459b72e12b2b1b2cd", "firstname": "Jeff", "lastname": "Taylor", "address":{}}
{ "_id": "5cf003283b23d04a40d5f88a", "firstname": "Jerry", "lastname": "Miller", "address":{}}
{ "_id": "5bf142459b72e12b2b1b2cd", "firstname": "Jai", "lastname": "Williams", "address":{}}
{ "_id": "5cf0036deaa1742dd225ea35", "firstname": "Jess", "lastname": "Johnson", "address":{}}
{ "_id": "54495ad94c934721ede76d90", "firstname": "Jill", "lastname": "Brown", "address":{}}
{ "_id": "566eb3c704c7b31facbb0007", "firstname": "Janet", "lastname": "Jones", "address":{}}
{ "_id": "5a999cc461d36489a27f2563", "firstname": "Jan", "lastname": "Smith", "address":{}}
Rich and expressive query language that allows you to filter and sort by any field, no matter how nested it may be within a document.
Support for aggregations and other modern use-cases such as geo-based search, graph search, and text search.
Queries are themselves JSON, and thus easily composable. No more concatenating strings to dynamically generate SQL queries.
session.start_transaction()
order = { line_items : [ { item : 5, quantity: 6 } ] }
db.orders.insertOne( order, session=session );
for x in order.line_items:
db.inventory.update(
{ _id : x.item } ,
{ $inc : { number : -1 * x.qty } },
session=session
)
session.commit_transaction()
Full ACID transactions.
Support for joins in queries.
Two types of relationships instead of one: reference and embedded.
MADE FOR THE CLOUD
MongoDB Atlas is the global cloud database for modern applications that is distributed and secure by default and available as a fully managed service on AWS, Azure, and Google Cloud. Learn more →
Fully Automated
Provision, scale, and manage complex, highly available, multi-node clusters with just a few clicks or simple API calls.
Learn more →
Global Clusters
Create globally distributed clusters that provide low-latency read and write data access to application users anywhere in the world.
Learn more →
Backup
Ensure your data is always backed up with customizable schedules and retention policies. Easily restore data when needed.
Learn more →
Monitoring & Alerts
Visualize, monitor, and alert on over 80 metrics that track your cluster's health, or integrate with third-party monitoring solutions.
Learn more →
Serverless Triggers
Trigger custom functions based on database events to implement dynamic, real-time application behavior.
Learn more →
Best-In-Class Security
Easily implement security best practices such as SSL, encryption at rest, network peering, and firewalling.
Learn more →
Launch a new cluster or migrate to MongoDB Atlas with zero downtime.
A RICH PLATFORM
MongoDB is a true data platform with a comprehensive suite of tools to make working with data remarkably easy for everyone, from developers to analysts to data scientists.
The fastest way to create visualizations of MongoDB data.
Built for the document model.
Visualize live data from any of your MongoDB instances. Available on MongoDB Atlas (in beta).
Learn more →
Allow any BI tool that can speak the MySQL protocol to work with your MongoDB data.
Leverage the BI tools your organization already uses.
Perform federated analytics, combining data from MongoDB and other databases.
Learn more →
Search, visualize, and work with your data through an intuitive GUI.
Manipulate your data with a powerful visual editing tool.
Understand performance issues with visual explain plans and manage your indices.
Learn more →
Launch a new cluster or migrate to MongoDB Atlas with zero downtime.
Resources
NoSQL Database Explained
MongoDB Architecture Guide
MongoDB Enterprise Advanced
MongoDB Atlas
MongoDB Stitch
MongoDB Engineering Blog
Education & Support
View Course Catalog
Certification
MongoDB Manual
Installation
FAQ
Popular Topics
Document Databases
What is MongoDB?
Everything you need to build and run applications in the cloud
Making HIPAA Compliant Applications with MongoDB
MongoDB Cloud Manager
MongoDB Atlas
About
MongoDB, Inc.
Leadership
Careers
Contact Us
Legal Notices
Security Information
Office Locations
Code of Conduct
Follow Us
Github
Youtube
Slack
StackOverflow
© 2019 MongoDB, Inc.
Mongo, MongoDB, and the MongoDB leaf logo are registered trademarks of MongoDB, Inc.
Get MongoDB Email Updates
https://www.mongodb.com/