MongoDB Note

来源:互联网 发布:h5唤醒淘宝app 编辑:程序博客网 时间:2024/04/29 09:45

Reference: MongoDB in Action

1. Secondary Index

Secondary indexes in MongoDB are implemented as B-trees. Because MongoDB and most RDBMSs use the same data structure for their indexes, advice for managing indexes in both of these systems is compatible.


2. Scaling

MongoDB has been designed to make horizontal scaling manageable. It does so via a range-based partitioning mechanism, known asauto-sharding, which automatically manages the distribution of data across nodes.


3. Again, C++

MongoDB is written in C++ and actively developed by 10gen.


4. The JavaScript Shell

The MongoDB command shell is a JavaScript-based tool for administering the database and manipulating data. The shell has many of the same powers as the MySQL shell, the primary difference being that SQL isn't used. Instead, most commands are issued using JavaScript expressions.


5. Why MongoDB?

According to its creators, MongoDB has been designed to combine the best features of key-value stores and relational databases.Key-value stores, because of their simplicity, are extremely fast and relatively easy to scale.

In terms of use cases, MongoDB is well suited as a primary data store for web applications, for analytics and logging applications, and for any application requiring a medium-grade cache.


6. Database Families