基础了解
1 | 对应关系 -> https://docs.mongodb.com/manual/reference/sql-comparison/ |
基本查询操作
写在一起中间无换行表示同一个效果
1 | // db.people.insertOne( {//插入并创建表 |
查询
1 | 查询 |
更新
1 | 更新 |
数组
1 | 数组 |
增删改查
1 | 增删改查 |
索引创建
1 | 索引创建 |
索引管理
1 | 索引管理 |
GridFS 分布式文件系统
1 | GridFS 分布式文件系统 |
聚合管道
1 | 聚合管道 Aggregation Pipeline Stages -> https://docs.mongodb.com/manual/reference/operator/aggregation-pipeline/ |
mapReduce
1 | mapReduce 重量级聚合 -> mapReduce -> map -> reduce -> finalize -> out |