Resources for Advanced R notes
To deploy our MongoDB instances, we choose to use the official Docker images: MongoDB 3.2
By inspecting into the image, we can easily find that the entry point is: /entrypoint.sh
.
We need a data volume for better data persistency:
docker run --name mongo1-data -v /data/db busybox
- 简介
- 基本概念
- 面向文档
- db和index
- 基本操作
- CRUD
- 索引管理
- 基本概念
- 高级话题
- 聚合框架简介
- Map-reduce简介
To create an index, the most easy way is just to put a document to the specified index. The index is created with the default settings, and new fields are added to the type mapping by using dynamic mapping.
If one wants to apply more control over the process, he needs the following API:
PUT /my_index