Mongodb 简明教程

MongoDB - Advantages

任何关系数据库中都有一个典型的架构设计,用于显示表格数量以及这些表格之间的关系。而在 MongoDB 中,关系的概念不存在。

Any relational database has a typical schema design that shows number of tables and the relationship between these tables. While in MongoDB, there is no concept of relationship.

Advantages of MongoDB over RDBMS

  1. Schema less − MongoDB is a document database in which one collection holds different documents. Number of fields, content and size of the document can differ from one document to another.

  2. Structure of a single object is clear.

  3. No complex joins.

  4. Deep query-ability. MongoDB supports dynamic queries on documents using a document-based query language that’s nearly as powerful as SQL.

  5. Tuning.

  6. Ease of scale-out − MongoDB is easy to scale.

  7. Conversion/mapping of application objects to database objects not needed.

  8. Uses internal memory for storing the (windowed) working set, enabling faster access of data.

Why Use MongoDB?

  1. Document Oriented Storage − Data is stored in the form of JSON style documents.

  2. Index on any attribute

  3. Replication and high availability

  4. Auto-Sharding

  5. Rich queries

  6. Fast in-place updates

  7. Professional support by MongoDB

Where to Use MongoDB?

  1. Big Data

  2. Content Management and Delivery

  3. Mobile and Social Infrastructure

  4. User Data Management

  5. Data Hub